Exemplo n.º 1
0
        public virtual void MergeInto(Configuration result)
        {
            if (ApplyDefaults.HasValue)
            {
                result.ApplyDefaults = ApplyDefaults;
            }
            if (IncludeDependencies.HasValue)
            {
                result.IncludeDependencies = IncludeDependencies;
            }
            if (UseSymbols.HasValue)
            {
                result.UseSymbols = UseSymbols;
            }
            if (UseThreads.HasValue)
            {
                result.UseThreads = UseThreads;
            }
            if (UseDefaultProxies.HasValue)
            {
                result.UseDefaultProxies = UseDefaultProxies;
            }

            if (FrameworkVersion.HasValue)
            {
                result.FrameworkVersion = FrameworkVersion;
            }
            if (GenerateSkeletonsForStubbedAssemblies.HasValue)
            {
                result.GenerateSkeletonsForStubbedAssemblies = GenerateSkeletonsForStubbedAssemblies;
            }
            if (GenerateContentManifest.HasValue)
            {
                result.GenerateContentManifest = GenerateContentManifest;
            }
            if (RunBugChecks.HasValue)
            {
                result.RunBugChecks = RunBugChecks;
            }
            if (TuneGarbageCollection.HasValue)
            {
                result.TuneGarbageCollection = TuneGarbageCollection;
            }

            if (FilenameEscapeRegex != null)
            {
                result.FilenameEscapeRegex = FilenameEscapeRegex;
            }
            if (AssemblyCollectionName != null)
            {
                result.AssemblyCollectionName = AssemblyCollectionName;
            }
            if (EmitterFactoryName != null)
            {
                result.EmitterFactoryName = EmitterFactoryName;
            }

            Assemblies.MergeInto(result.Assemblies);
            CodeGenerator.MergeInto(result.CodeGenerator);
        }
Exemplo n.º 2
0
        protected void MergeInto(Configuration result)
        {
            if (ApplyDefaults.HasValue)
            {
                result.ApplyDefaults = ApplyDefaults;
            }
            if (IncludeDependencies.HasValue)
            {
                result.IncludeDependencies = IncludeDependencies;
            }
            if (UseSymbols.HasValue)
            {
                result.UseSymbols = UseSymbols;
            }
            if (UseThreads.HasValue)
            {
                result.UseThreads = UseThreads;
            }
            if (UseDefaultProxies.HasValue)
            {
                result.UseDefaultProxies = UseDefaultProxies;
            }

            if (FrameworkVersion.HasValue)
            {
                result.FrameworkVersion = FrameworkVersion;
            }
            if (GenerateSkeletonsForStubbedAssemblies.HasValue)
            {
                result.GenerateSkeletonsForStubbedAssemblies = GenerateSkeletonsForStubbedAssemblies;
            }
            if (GenerateContentManifest.HasValue)
            {
                result.GenerateContentManifest = GenerateContentManifest;
            }
            if (RunBugChecks.HasValue)
            {
                result.RunBugChecks = RunBugChecks;
            }

            Assemblies.MergeInto(result.Assemblies);
            Optimizer.MergeInto(result.Optimizer);
        }
Exemplo n.º 3
0
        public virtual void MergeInto(Configuration result)
        {
            if (ApplyDefaults.HasValue)
            {
                result.ApplyDefaults = ApplyDefaults;
            }
            if (IncludeDependencies.HasValue)
            {
                result.IncludeDependencies = IncludeDependencies;
            }
            if (UseSymbols.HasValue)
            {
                result.UseSymbols = UseSymbols;
            }
            if (UseThreads.HasValue)
            {
                result.UseThreads = UseThreads;
            }
            if (UseDefaultProxies.HasValue)
            {
                result.UseDefaultProxies = UseDefaultProxies;
            }

            if (FrameworkVersion.HasValue)
            {
                result.FrameworkVersion = FrameworkVersion;
            }
            if (GenerateSkeletonsForStubbedAssemblies.HasValue)
            {
                result.GenerateSkeletonsForStubbedAssemblies = GenerateSkeletonsForStubbedAssemblies;
            }
            if (GenerateContentManifest.HasValue)
            {
                result.GenerateContentManifest = GenerateContentManifest;
            }
            if (SkipManifestCreation.HasValue)
            {
                result.SkipManifestCreation = SkipManifestCreation;
            }
            if (RunBugChecks.HasValue)
            {
                result.RunBugChecks = RunBugChecks;
            }
            if (TuneGarbageCollection.HasValue)
            {
                result.TuneGarbageCollection = TuneGarbageCollection;
            }

            if (FilenameEscapeRegex != null)
            {
                result.FilenameEscapeRegex = FilenameEscapeRegex;
            }
            if (AssemblyCollectionName != null)
            {
                result.AssemblyCollectionName = AssemblyCollectionName;
            }

            if (BuildSourceMap != null)
            {
                result.BuildSourceMap = BuildSourceMap;
            }

            if (InlineAssemblyReferences != null)
            {
                result.InlineAssemblyReferences = InlineAssemblyReferences;
            }

            foreach (var kvp in FilenameReplaceRegexes)
            {
                result.FilenameReplaceRegexes[kvp.Key] = kvp.Value;
            }

            foreach (var emitterFactory in EmitterFactories)
            {
                result.EmitterFactories.Add(emitterFactory);
            }

            Assemblies.MergeInto(result.Assemblies);
            CodeGenerator.MergeInto(result.CodeGenerator);
        }