Ejemplo n.º 1
0
 public DiagnosticsMessage([NotNull] IList <ICompilationMessage> diagnostics, FrameworkData frameworkData)
 {
     Diagnostics = diagnostics;
     Errors      = diagnostics.Where(msg => msg.Severity == CompilationMessageSeverity.Error).ToList();
     Warnings    = diagnostics.Where(msg => msg.Severity == CompilationMessageSeverity.Warning).ToList();
     Framework   = frameworkData;
 }
 public FrameworkProject(Project project, FrameworkData frameworkData)
 {
     Project = project;
     Framework = frameworkData.FrameworkName;
     FriendlyName = frameworkData.FriendlyName;
     ShortName = frameworkData.ShortName;
     ProjectId = ProjectId.CreateNewId();
     //            Documents = new Dictionary<string, DocumentId>();
     FileReferences = new Dictionary<string, MetadataReference>();
     RawReferences = new Dictionary<string, MetadataReference>();
     ProjectReferences = new Dictionary<string, ProjectId>(StringComparer.OrdinalIgnoreCase);
     ProjectDependeees = new Dictionary<string, ProjectId>(StringComparer.OrdinalIgnoreCase);
     PendingProjectReferences = new List<ProjectId>();
 }