private static CompilationSettings GetCompilationSettings( ICompilerOptionsProvider compilerOptionsProvider, ProjectContext projectContext) { return compilerOptionsProvider.GetCompilerOptions(projectContext.Name, projectContext.TargetFramework, projectContext.Configuration) .ToCompilationSettings(projectContext.TargetFramework); }
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)); }