Ejemplo n.º 1
0
 private static CompilationSettings GetCompilationSettings(
     ICompilerOptionsProvider compilerOptionsProvider,
     ProjectContext projectContext)
 {
     return compilerOptionsProvider.GetCompilerOptions(projectContext.Name,
                                                       projectContext.TargetFramework,
                                                       projectContext.Configuration)
                                   .ToCompilationSettings(projectContext.TargetFramework);
 }
Ejemplo n.º 2
0
 public CompilationContext(CSharpCompilation compilation,
                           Project project,
                           FrameworkName targetFramework,
                           string configuration)
 {
     Compilation = compilation;
     Diagnostics = new List<Diagnostic>();
     Project = project;
     ProjectContext = new ProjectContext(project, targetFramework, configuration);
     _resources = new Lazy<IList<ResourceDescription>>(() => GetResources(this));
 }