Exemplo n.º 1
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------

        public RoslynTypeFactoryBackend(bool debugMode, string assemblyNamePrefix, string generatedSourceDirectory, string compiledAssemblyDirectory)
        {
            _debugMode                 = debugMode;
            _assemblyNamePrefix        = assemblyNamePrefix;
            _generatedSourceDirectory  = generatedSourceDirectory;
            _compiledAssemblyDirectory = compiledAssemblyDirectory;

            _referenceCache     = new ReferenceCache();
            _compiledAssemblies = new List <Assembly>();

            _referenceCache.IncludePrerequisiteAssemblyReferences();
            _productAssemblyIndex = 1000 * Interlocked.Increment(ref _s_productAssemblyIndexSeed);
        }
Exemplo n.º 2
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------

        public AssemblyCompiler(ReferenceCache referenceCache)
        {
            _referenceCache = referenceCache;
        }