236 instantiations of ProjectCollection
Microsoft.Build (3)
Construction\Solution\SolutionProjectGenerator.cs (1)
1043new ProjectCollection(),
Definition\ProjectCollection.cs (2)
306/// This constructor disables target output logging, so TerminalLogger and other loggers may not work well. Prefer <see cref="ProjectCollection(IDictionary{string, string}, IEnumerable{ILogger}, IEnumerable{ForwardingLoggerRecord}, ToolsetDefinitionLocations, int, bool, bool, bool, bool, bool)"/> instead to control this behavior. 462var local = new ProjectCollection(null, null, null, ToolsetDefinitionLocations.Default,
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
2335using var projectCollection = new ProjectCollection(
Microsoft.Build.Engine.OM.UnitTests (86)
Construction\ProjectRootElement_Tests.cs (7)
524using ProjectCollection projectCollection = new ProjectCollection(); 1029using var collection = new ProjectCollection(); 1100using var collection = new ProjectCollection(); 1288using (var projectCollection = new ProjectCollection()) 1916using var collection = new ProjectCollection(); 1932using var projectCollection = new ProjectCollection(); 1950using var collection = new ProjectCollection();
Construction\ProjectTargetElement_Tests.cs (1)
356using ProjectCollection collection = new ProjectCollection();
Definition\Project_Tests.cs (33)
135using ProjectCollection collection = new ProjectCollection(); 163using ProjectCollection collection = new ProjectCollection(); 278Project project = (new ProjectCollection()).LoadProject(reader); 371using var collection = new ProjectCollection(); 388Project project = new Project(xml, null, null, new ProjectCollection(), ProjectLoadSettings.IgnoreMissingImports); 403using ProjectCollection collection = new ProjectCollection(); 433using ProjectCollection collection = new ProjectCollection(); 469using ProjectCollection collection = new ProjectCollection(); 506using ProjectCollection collection = new ProjectCollection(); 990using ProjectCollection collection = new ProjectCollection(initial, null, ToolsetDefinitionLocations.ConfigurationFile); 1231using var collection = new ProjectCollection(); 1261using var collection = new ProjectCollection(); 1289using var collection = new ProjectCollection(); 1321using var collection = new ProjectCollection(projectCollectionGlobalProperties); 1443using (var projectCollection = new ProjectCollection()) 1508using (var projectCollection = new ProjectCollection()) 1594using (var projectCollection = new ProjectCollection()) 2422Project project = new Project(globalProperties, null, new ProjectCollection()); 2441ProjectCollection collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None); 2465ProjectCollection collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None); 2535ProjectCollection collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None); 3571using (var projectCollection = new ProjectCollection()) 3841using (var projectCollection = new ProjectCollection()) 3893using (ProjectCollection collection = new ProjectCollection()) 3942using (ProjectCollection collection = new ProjectCollection()) 3986using (ProjectCollection collection = new ProjectCollection()) 4033using (ProjectCollection collection = new ProjectCollection()) 4073using (ProjectCollection collection = new ProjectCollection()) 4116using (ProjectCollection collection = new ProjectCollection()) 4159using (ProjectCollection collection = new ProjectCollection()) 4197using (ProjectCollection collection = new ProjectCollection()) 4262using ProjectCollection collection = new ProjectCollection(); 4305using ProjectCollection collection = new();
Definition\ProjectCollection_Tests.cs (36)
124using ProjectCollection collection = new ProjectCollection(); 166using var collection = new ProjectCollection(); 197using ProjectCollection collection = new ProjectCollection(); 228using ProjectCollection collection = new ProjectCollection(); 251using var collection = new ProjectCollection(); 267using var collection = new ProjectCollection(); 281using var collection = new ProjectCollection(); 325using var collection = new ProjectCollection(); 346using ProjectCollection collection1 = new ProjectCollection(); 352using ProjectCollection collection2 = new ProjectCollection(); 568using ProjectCollection collection = new ProjectCollection(); 585using var collection = new ProjectCollection(); 612using var collection = new ProjectCollection(); 634using var collection = new ProjectCollection(); 679using var collection = new ProjectCollection(); 838using ProjectCollection collection = new ProjectCollection(); 878using var collection = new ProjectCollection(); 921using var collection = new ProjectCollection(); 951using var collection = new ProjectCollection(); 971using var collection = new ProjectCollection(); 995using var collection = new ProjectCollection(); 1029using var collection = new ProjectCollection(); 1051using var collection = new ProjectCollection(); 1091using var collection = new ProjectCollection(); 1111using var collection = new ProjectCollection(null, null, ToolsetDefinitionLocations.Registry); 1145using var collection = new ProjectCollection(); 1174using var collection = new ProjectCollection(); 1266using var collection = new ProjectCollection(); 1275using var collection2 = new ProjectCollection(); 1284using var collection3 = new ProjectCollection(); 1293using var collection4 = new ProjectCollection(); 1302using var collection5 = new ProjectCollection(); 1312using var collection6 = new ProjectCollection(); 1320using var collection7 = new ProjectCollection(); 1332using var collection = new ProjectCollection(); 1391using var collection = new ProjectCollection();
Definition\ProjectItem_Tests.cs (5)
831using ProjectCollection projectCollection = new ProjectCollection(); 959options.ProjectCollection = new ProjectCollection(); 1150using (var projectCollection = new ProjectCollection()) 1170using (var projectCollection = new ProjectCollection()) 3745using (var projectCollection = new ProjectCollection())
Instance\ProjectInstance_Tests.cs (3)
416using var pc = new ProjectCollection(); 452using var pc = new ProjectCollection(); 494using var pc = new ProjectCollection();
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
157this.Collection = new ProjectCollection();
Microsoft.Build.Engine.UnitTests (111)
BackEnd\BuildManager_Logging_Tests.cs (1)
72_projectCollection = new ProjectCollection();
BackEnd\BuildManager_Tests.cs (6)
84_projectCollection = new ProjectCollection(globalProperties: null, _parameters.Loggers, ToolsetDefinitionLocations.Default); 343using var projectCollection = new ProjectCollection(); 895using var projectCollection = new ProjectCollection(); 2041using var projectCollection2 = new ProjectCollection(); 2100using var projectCollection = new ProjectCollection(); 3732using (var collection = new ProjectCollection())
BackEnd\BuildRequestConfiguration_Tests.cs (6)
277using var collection = new ProjectCollection(); 355using var collection = new ProjectCollection(); 460using var collection = new ProjectCollection(); 588using var collection = new ProjectCollection(); 626using var collection = new ProjectCollection(); 658using var collection = new ProjectCollection();
BackEnd\MSBuild_Tests.cs (3)
1559using ProjectCollection pc = new ProjectCollection(null, new List<ILogger> { logger }, null, ToolsetDefinitionLocations.Default, 2, false); 2017using var collection = new ProjectCollection(); 2086using var collection = new ProjectCollection(
BackEnd\ProjectTelemetry_Tests.cs (1)
173using var projectCollection = new ProjectCollection();
BackEnd\SdkResultOutOfProc_Tests.cs (1)
51_projectCollection = new ProjectCollection();
BackEnd\TargetEntry_Tests.cs (1)
751using ProjectCollection collection = new ProjectCollection();
BackEnd\TaskBuilder_Tests.cs (1)
133ProjectCollection collection = new ProjectCollection();
BinaryLogger_Tests.cs (2)
127using (ProjectCollection collection = new()) 214using (ProjectCollection collection = new())
ChangeWaves_Tests.cs (1)
59using ProjectCollection collection = new ProjectCollection();
Construction\SolutionProjectGenerator_Tests.cs (2)
2012using ProjectCollection collection = new ProjectCollection(); 2375using ProjectCollection collection = new ProjectCollection();
Definition\Project_Internal_Tests.cs (1)
41using ProjectCollection collection = new ProjectCollection();
Definition\Toolset_Tests.cs (12)
26Toolset t = new Toolset(null, "x", new ProjectCollection(), null); 35Toolset t = new Toolset("x", null, new ProjectCollection(), null); 44Toolset t = new Toolset(String.Empty, "x", new ProjectCollection(), null); 82using var collection = new ProjectCollection(); 192using ProjectCollection projectCollection = new ProjectCollection(); 220using ProjectCollection projectCollection = new ProjectCollection(); 248using ProjectCollection projectCollection = new ProjectCollection(globalProperties); 270using ProjectCollection projectCollection = new ProjectCollection(); 292using ProjectCollection projectCollection = new ProjectCollection(); 320using ProjectCollection projectCollection = new ProjectCollection(globalProperties); 436using ProjectCollection projectCollection = new ProjectCollection(globalProperties); 489using ProjectCollection projectCollection = new ProjectCollection(globalPropertiesForProjectCollection);
Definition\ToolsetConfigurationReader_Tests.cs (1)
664using var collection = new ProjectCollection();
Definition\ToolsVersion_Tests.cs (27)
32using ProjectCollection e = new ProjectCollection(); 35using var collection = new ProjectCollection(); 77using ProjectCollection e = new ProjectCollection(); 78using var collection = new ProjectCollection(); 97using ProjectCollection e = new ProjectCollection(); 98using var collection = new ProjectCollection(); 116using ProjectCollection e = new ProjectCollection(); 117using var collection = new ProjectCollection(); 136using ProjectCollection e = new ProjectCollection(); 137using var collection = new ProjectCollection(); 156using var collection = new ProjectCollection(); 189using ProjectCollection p = new ProjectCollection(); 195using var colleciton = new ProjectCollection(); 214using ProjectCollection p = new ProjectCollection(); 235using ProjectCollection p = new ProjectCollection(); 301using ProjectCollection p = new ProjectCollection(); 338using ProjectCollection p = new ProjectCollection(); 374using ProjectCollection p = new ProjectCollection(); 404ProjectCollection p = new ProjectCollection(); 436using ProjectCollection p = new ProjectCollection(); 543using ProjectCollection p = new ProjectCollection(); 582using ProjectCollection p = new ProjectCollection(); 623using ProjectCollection p = new ProjectCollection(); 693using ProjectCollection p = new ProjectCollection(); 779using ProjectCollection p = new ProjectCollection(); 890using ProjectCollection p = new ProjectCollection(); 923using var collection = new ProjectCollection();
EscapingInProjects_Tests.cs (1)
647using var collection = new ProjectCollection();
Evaluation\Evaluator_Tests.cs (26)
65using ProjectCollection collection = new(new Dictionary<string, string>(), [logger], ToolsetDefinitionLocations.Default); 549using ProjectCollection pc = new ProjectCollection(); 592using ProjectCollection pc = new ProjectCollection(); 637using ProjectCollection pc = new ProjectCollection(); 680using ProjectCollection pc = new ProjectCollection(); 726using ProjectCollection pc = new ProjectCollection(); 770using ProjectCollection pc = new ProjectCollection(); 816using ProjectCollection pc = new ProjectCollection(); 955using ProjectCollection pc = new ProjectCollection(); 1040using ProjectCollection pc = new ProjectCollection(); 1102ProjectCollection pc = new ProjectCollection(); 2476using var collection = new ProjectCollection(); 2510using var collection = new ProjectCollection(); 2528using var collection = new ProjectCollection(); 2586using var collection = new ProjectCollection(); 2605using var collection = new ProjectCollection(); 2661using var collection = new ProjectCollection(); 2680using var collection = new ProjectCollection(); 2718using var collection = new ProjectCollection(); 2737using var collection = new ProjectCollection(); 3135using var collection = new ProjectCollection(); 4356using var collection = new ProjectCollection(); 4718using var collection = new ProjectCollection( 5046using ProjectCollection pc = new ProjectCollection(); 5087using ProjectCollection pc = new(); 5149ProjectCollection projectCollection = new ProjectCollection(globalProperties);
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (4)
28using var collection = new ProjectCollection(); 983projColln = new ProjectCollection(ToolsetDefinitionLocations.ConfigurationFile); 991projColln = new ProjectCollection(globalProperties, loggers: null, ToolsetDefinitionLocations.ConfigurationFile); 1058using var xmlReader = new ProjectCollection();
Evaluation\ProjectCollection_Tests.cs (2)
17using var collectionWithDefaultCache = new ProjectCollection(); 25using var collectionWithSimpleCache = new ProjectCollection();
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
28using var projectCollection = new ProjectCollection(); 55using var projectCollection = new ProjectCollection(ToolsetDefinitionLocations.ConfigurationFile);
EvaluationProfiler_Tests.cs (1)
277using (var projectCollection = new ProjectCollection())
FixPathOnUnix_Tests.cs (1)
43using var projColln = new ProjectCollection();
Instance\ProjectInstance_Internal_Tests.cs (6)
299using var projectCollection = new ProjectCollection(); 320using var collection = new ProjectCollection(); 354using var collection = new ProjectCollection(); 382using var collection = new ProjectCollection(); 423using var collection = new ProjectCollection(projectCollectionGlobalProperties); 857using ProjectCollection projectCollection = new ProjectCollection();
Utilities_Tests.cs (2)
303using var colletionX = new ProjectCollection(); 304using var colletionY = new ProjectCollection();
Microsoft.Build.Tasks.UnitTests (11)
AssignLinkMetadata_Tests.cs (1)
176using var collection = new ProjectCollection();
Exec_Tests.cs (2)
971using var collection = new ProjectCollection( 1028using var collection = new ProjectCollection(
ResolveSDKReference_Tests.cs (5)
3810using ProjectCollection pc = new ProjectCollection(); 3953using ProjectCollection pc = new ProjectCollection(); 4062using ProjectCollection pc = new ProjectCollection(); 4159using ProjectCollection pc = new ProjectCollection(); 4328using ProjectCollection pc = new ProjectCollection();
WriteLinesToFile_Tests.cs (3)
430using (var collection = new ProjectCollection( 491using (var collection = new ProjectCollection( 574using (var collection = new ProjectCollection(
Microsoft.Build.UnitTests.Shared (10)
EngineTestEnvironment.cs (2)
208using (ProjectCollection projectCollection = new ProjectCollection()) 269Collection = new ProjectCollection();
MockEngine.cs (1)
40private readonly ProjectCollection _projectCollection = new ProjectCollection();
ObjectModelHelpers.cs (7)
139using (var collection = new ProjectCollection()) 667collection ?? new ProjectCollection(), 691return CreateInMemoryProject(new ProjectCollection(), xml, loggers); 772using ProjectCollection collection = new(); 800using ProjectCollection collection = new(); 983ProjectCollection projectCollection = new ProjectCollection(); 1362projectCollection = new ProjectCollection(null, null, null, ToolsetDefinitionLocations.Default,
Microsoft.Build.Utilities.UnitTests (4)
MuxLogger_Tests.cs (2)
93using ProjectCollection projectCollection = new ProjectCollection(); 103using var collection = new ProjectCollection();
ToolLocationHelper_Tests.cs (2)
3577using ProjectCollection pc = new ProjectCollection(); 3649using ProjectCollection pc = new ProjectCollection();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Build\ProjectBuildManager.cs (3)
156var projectCollection = new MSB.Evaluation.ProjectCollection( 184var projectCollection = new MSB.Evaluation.ProjectCollection( 244_batchBuildProjectCollection = new MSB.Evaluation.ProjectCollection(allProperties, loggers: [], MSB.Evaluation.ToolsetDefinitionLocations.Default);
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
86var proj = Project.FromFile(VersionsPropsPath, new Build.Definition.ProjectOptions() { ProjectCollection = new ProjectCollection() });
MSBuild (2)
XMake.cs (2)
824using (ProjectCollection collection = new(globalProperties, loggers, ToolsetDefinitionLocations.Default)) 1416projectCollection = new ProjectCollection(
MSBuild.Benchmarks (3)
DefiningProjectModifiersBenchmark.cs (2)
47using (var pc = new ProjectCollection()) 65using (var pc = new ProjectCollection())
ItemSpecModifiersCachingBenchmark.cs (1)
47using var projectCollection = new ProjectCollection();
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
75_privateCollection = new ProjectCollection();
629 references to ProjectCollection
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
127var project = ProjectCollection.GlobalProjectCollection.LoadProject(
Microsoft.Build (124)
BackEnd\BuildManager\BuildManager.cs (5)
1143_buildTelemetry.BuildEngineVersion = ProjectCollection.Version; 1144_buildTelemetry.BuildEngineDisplayVersion = ProjectCollection.DisplayVersion; 1250ProjectCollection.Version?.ToString(), 1272BuildEngineVersion = ProjectCollection.Version?.ToString(), 2160ProjectCollection.GlobalProjectCollection,
BackEnd\BuildManager\BuildParameters.cs (1)
251public BuildParameters(ProjectCollection projectCollection)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
321SdkResolverContext context = new SdkResolverContext(buildEngineLogger, projectPath, solutionPath, ProjectCollection.Version, interactive, isRunningInVisualStudio)
BackEnd\Node\OutOfProcNode.cs (2)
754ProjectCollection.GlobalProjectCollection.RemoveAllToolsets(); 758ProjectCollection.GlobalProjectCollection.AddToolset(toolSet);
Construction\ProjectRootElement.cs (22)
401public string EscapedFullPath => _escapedFullPath ?? (_escapedFullPath = ProjectCollection.Escape(FullPath)); 751return Create(ProjectCollection.GlobalProjectCollection, Project.DefaultNewProjectTemplateOptions); 760return Create(ProjectCollection.GlobalProjectCollection, projectFileOptions); 767public static ProjectRootElement Create(ProjectCollection projectCollection) 773/// Initialize an in-memory, empty ProjectRootElement instance that can be saved later using the specified <see cref="ProjectCollection"/> and <see cref="NewProjectFileOptions"/>. 775public static ProjectRootElement Create(ProjectCollection projectCollection, NewProjectFileOptions projectFileOptions) 788return Create(path, ProjectCollection.GlobalProjectCollection, Project.DefaultNewProjectTemplateOptions); 797return Create(path, ProjectCollection.GlobalProjectCollection, newProjectFileOptions); 804public static ProjectRootElement Create(string path, ProjectCollection projectCollection) 813public static ProjectRootElement Create(string path, ProjectCollection projectCollection, NewProjectFileOptions newProjectFileOptions) 833return Create(xmlReader, ProjectCollection.GlobalProjectCollection, preserveFormatting: false); 841public static ProjectRootElement Create(XmlReader xmlReader, ProjectCollection projectCollection) 851public static ProjectRootElement Create(XmlReader xmlReader, ProjectCollection projectCollection, bool preserveFormatting) 866return Open(path, ProjectCollection.GlobalProjectCollection); 874public static ProjectRootElement Open(string path, ProjectCollection projectCollection) 884public static ProjectRootElement Open(string path, ProjectCollection projectCollection, bool? preserveFormatting) 908return TryOpen(path, ProjectCollection.GlobalProjectCollection); 916/// <param name="projectCollection">The <see cref="ProjectCollection"/> to load the project into.</param> 922public static ProjectRootElement TryOpen(string path, ProjectCollection projectCollection) 932/// <param name="projectCollection">The <see cref="ProjectCollection"/> to load the project into.</param> 941public static ProjectRootElement TryOpen(string path, ProjectCollection projectCollection, bool? preserveFormatting) 1787return new ProjectRootElement(document, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
Construction\Solution\SolutionProjectGenerator.cs (1)
22using ProjectCollection = Microsoft.Build.Evaluation.ProjectCollection;
Definition\Project.cs (26)
115internal Project(ProjectCollection projectCollection, ProjectLink link) 140: this(ProjectRootElement.Create(ProjectCollection.GlobalProjectCollection, newProjectFileOptions)) 149public Project(ProjectCollection projectCollection) 159public Project(ProjectCollection projectCollection, NewProjectFileOptions newProjectFileOptions) 172public Project(IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection) 186public Project(IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, NewProjectFileOptions newProjectFileOptions) 215: this(xml, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection) 230public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection) 247public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 265public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 270private Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, 309: this(xmlReader, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection) 324public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection) 341public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 359public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 364private Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, 402: this(projectFile, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection) 418public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection) 436public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 455public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 460private Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, 506options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection, 525options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection, 544options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection, 581public ProjectCollection ProjectCollection { get; } 1979private ProjectCollection ProjectCollection => Owner.ProjectCollection;
Definition\ProjectCollection.cs (4)
101private static ProjectCollection s_globalProjectCollection; 454public static ProjectCollection GlobalProjectCollection 462var local = new ProjectCollection(null, null, null, ToolsetDefinitionLocations.Default, 495var versionInfo = FileVersionInfo.GetVersionInfo(typeof(ProjectCollection).GetAssemblyPath());
Definition\ProjectCollectionChangedEventArgs.cs (9)
9/// Properties or other mutable state associated with a <see cref="ProjectCollection"/>. 14/// The <see cref="ProjectCollection.DefaultToolsVersion"/> property changed. 34/// The <see cref="ProjectCollection.IsBuildEnabled"/> property changed. 39/// The <see cref="ProjectCollection.OnlyLogCriticalEvents"/> property changed. 44/// The <see cref="ProjectCollection.HostServices"/> property changed. 49/// The <see cref="ProjectCollection.DisableMarkDirty"/> property changed. 54/// The <see cref="ProjectCollection.SkipEvaluation"/> property changed. 61/// Event arguments for the <see cref="ProjectCollection.ProjectCollectionChanged"/> event. 74/// Gets the nature of the change made to the <see cref="ProjectCollection"/>.
Definition\ProjectOptions.cs (2)
34/// The <see cref="ProjectCollection"/> the project is added to. Default is <see cref="ProjectCollection.GlobalProjectCollection"/>. 36public ProjectCollection ProjectCollection { get; set; }
Definition\Toolset.cs (4)
160public Toolset(string toolsVersion, string toolsPath, ProjectCollection projectCollection, string msbuildOverrideTasksPath) 176public Toolset(string toolsVersion, string toolsPath, IDictionary<string, string> buildProperties, ProjectCollection projectCollection, string msbuildOverrideTasksPath) 193public Toolset(string toolsVersion, string toolsPath, IDictionary<string, string> buildProperties, ProjectCollection projectCollection, IDictionary<string, SubToolset> subToolsets, string msbuildOverrideTasksPath) 294internal Toolset(string toolsVersion, string toolsPath, PropertyDictionary<ProjectPropertyInstance> buildProperties, ProjectCollection projectCollection, DirectoryGetFiles getFiles, LoadXmlFromPath loadXmlFromPath, string msbuildOverrideTasksPath, DirectoryExists directoryExists)
Evaluation\Evaluator.cs (2)
1134private static readonly string CachedFileVersion = ProjectCollection.Version.ToString(); 1152SetBuiltInProperty(ReservedPropertyNames.semanticVersion, ProjectCollection.DisplayVersion);
Evaluation\ProjectChangedEventArgs.cs (1)
10/// Event arguments for the <see cref="ProjectCollection.ProjectChanged"/> event.
Evaluation\ProjectXmlChangedEventArgs.cs (1)
14/// Event arguments for the <see cref="ProjectCollection.ProjectXmlChanged"/> event.
Graph\GraphBuilder.cs (3)
48private readonly ProjectCollection _projectCollection; 66ProjectCollection projectCollection, 645ProjectCollection projectCollection)
Graph\ProjectGraph.cs (19)
38/// <param name="projectCollection">The <see cref="ProjectCollection" /> context for parsing.</param> 58ProjectCollection projectCollection); 116: this(new ProjectGraphEntryPoint(entryProjectFile).AsEnumerable(), ProjectCollection.GlobalProjectCollection, null) 129: this(ProjectGraphEntryPoint.CreateEnumerable(entryProjectFiles), ProjectCollection.GlobalProjectCollection, null) 145public ProjectGraph(string entryProjectFile, ProjectCollection projectCollection) 162public ProjectGraph(IEnumerable<string> entryProjectFiles, ProjectCollection projectCollection) 188public ProjectGraph(string entryProjectFile, ProjectCollection projectCollection, ProjectInstanceFactoryFunc projectInstanceFactory) 206: this(new ProjectGraphEntryPoint(entryProjectFile, globalProperties).AsEnumerable(), ProjectCollection.GlobalProjectCollection, null) 223: this(ProjectGraphEntryPoint.CreateEnumerable(entryProjectFiles, globalProperties), ProjectCollection.GlobalProjectCollection, null) 243public ProjectGraph(string entryProjectFile, IDictionary<string, string> globalProperties, ProjectCollection projectCollection) 264public ProjectGraph(IEnumerable<string> entryProjectFiles, IDictionary<string, string> globalProperties, ProjectCollection projectCollection) 277: this(entryPoint.AsEnumerable(), ProjectCollection.GlobalProjectCollection, null) 289: this(entryPoints, ProjectCollection.GlobalProjectCollection, null) 304public ProjectGraph(ProjectGraphEntryPoint entryPoint, ProjectCollection projectCollection) 335ProjectCollection projectCollection, 375ProjectCollection projectCollection, 419ProjectCollection projectCollection, 838ProjectCollection projectCollection) 852ProjectCollection projectCollection,
Graph\ProjectInterpretation.cs (1)
77public IEnumerable<ReferenceInfo> GetReferences(ProjectGraphNode projectGraphNode, ProjectCollection projectCollection, ProjectGraph.ProjectInstanceFactoryFunc projectInstanceFactory)
Instance\ProjectInstance.cs (13)
227: this(projectFile, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection) 243public ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection) 261public ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection) 278internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, EvaluationContext context, bool interactive = false) 301private ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, 332: this(xml, null, null, ProjectCollection.GlobalProjectCollection) 348public ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection) 367public ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection) 543private ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, 619internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, int visualStudioVersionFromSolution, ProjectCollection projectCollection, ISdkResolverService sdkResolverService, int submissionId) 634internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ILoggingService loggingService, int visualStudioVersionFromSolution, ProjectCollection projectCollection, ISdkResolverService sdkResolverService, int submissionId) 926options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection, 945options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection,
Logging\ReusableLogger.cs (1)
16/// <see cref="Evaluation.ProjectCollection"/>/<see cref="Evaluation.Project"/> _and_
ObjectModelRemoting\ExternalProjectsProvider.cs (2)
27public virtual void Disconnected(ProjectCollection collection) { } 36public static void SetExternalProjectsProvider(ProjectCollection collection, ExternalProjectsProvider link)
ObjectModelRemoting\LinkedObjectFactory.cs (4)
33private LinkedObjectsFactory(ProjectCollection collection) 42public static LinkedObjectsFactory Get(ProjectCollection collection) 68public ProjectCollection Collection { get; } 73public static IReadOnlyCollection<Project> GetLocalProjects(ProjectCollection collection, string projectFile = null)
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
2335using var projectCollection = new ProjectCollection( 3007ProjectCollection.DisplayVersion, NativeMethodsShared.FrameworkName);
Microsoft.Build.Engine.OM.UnitTests (188)
Construction\ProjectFormatting_Tests.cs (14)
35ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 112ProjectCollection.GlobalProjectCollection, 148ProjectCollection.GlobalProjectCollection, 184ProjectCollection.GlobalProjectCollection, 215ProjectCollection.GlobalProjectCollection, 245ProjectCollection.GlobalProjectCollection, 279ProjectCollection.GlobalProjectCollection, 318ProjectCollection.GlobalProjectCollection, 361ProjectCollection.GlobalProjectCollection, 388ProjectCollection.GlobalProjectCollection, 415ProjectRootElement xml = ProjectRootElement.Open(file, ProjectCollection.GlobalProjectCollection, 443ProjectCollection.GlobalProjectCollection, 470ProjectRootElement xml = ProjectRootElement.Open(file, ProjectCollection.GlobalProjectCollection, 693var project = new Project(ProjectRootElement.Open(file, ProjectCollection.GlobalProjectCollection));
Construction\ProjectItemGroupElement_tests.cs (1)
196using ProjectRootElementFromString projectRootElementFromString = new(content, ProjectCollection.GlobalProjectCollection, true);
Construction\ProjectMetadataElement_Tests.cs (12)
558ProjectCollection.GlobalProjectCollection, 602ProjectCollection.GlobalProjectCollection, 676ProjectCollection.GlobalProjectCollection, 719ProjectCollection.GlobalProjectCollection, 805ProjectCollection.GlobalProjectCollection, 868ProjectCollection.GlobalProjectCollection, 937ProjectCollection.GlobalProjectCollection, 980ProjectCollection.GlobalProjectCollection, 1052ProjectCollection.GlobalProjectCollection, 1092ProjectCollection.GlobalProjectCollection, 1163ProjectCollection.GlobalProjectCollection, 1210ProjectCollection.GlobalProjectCollection,
Construction\ProjectRootElement_Tests.cs (11)
20using ProjectCollection = Microsoft.Build.Evaluation.ProjectCollection; 524using ProjectCollection projectCollection = new ProjectCollection(); 1029using var collection = new ProjectCollection(); 1100using var collection = new ProjectCollection(); 1288using (var projectCollection = new ProjectCollection()) 1590var projectCollection1 = env.CreateProjectCollection().Collection; 1591var projectCollection2 = env.CreateProjectCollection().Collection; 1730var projectCollection = env.CreateProjectCollection().Collection; 1916using var collection = new ProjectCollection(); 1932using var projectCollection = new ProjectCollection(); 1950using var collection = new ProjectCollection();
Construction\ProjectTargetElement_Tests.cs (1)
356using ProjectCollection collection = new ProjectCollection();
Construction\WhiteSpacePreservation_Tests.cs (1)
473var projectElement = ProjectRootElement.Open(file, ProjectCollection.GlobalProjectCollection, true);
Definition\DefinitionEditing_Tests.cs (6)
690ProjectCollection.Escape(paths[0]), 691ProjectCollection.Escape(paths[1])); 808ProjectCollection.Escape(paths[0]), 809ProjectCollection.Escape(paths[1])); 1111ProjectCollection.Escape(Path.Combine(directory, "i2.xxx"))); 1408ProjectCollection.Escape(Path.Combine(directory, "i2.xxx")));
Definition\Project_Tests.cs (41)
53ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 61ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 62ProjectCollection.GlobalProjectCollection.Count.ShouldBe(0); 64IDictionary<string, string> globalProperties = ProjectCollection.GlobalProjectCollection.GlobalProperties; 67ProjectCollection.GlobalProjectCollection.RemoveGlobalProperty(propertyName); 70ProjectCollection.GlobalProjectCollection.GlobalProperties.ShouldBeEmpty(); 135using ProjectCollection collection = new ProjectCollection(); 163using ProjectCollection collection = new ProjectCollection(); 371using var collection = new ProjectCollection(); 403using ProjectCollection collection = new ProjectCollection(); 433using ProjectCollection collection = new ProjectCollection(); 469using ProjectCollection collection = new ProjectCollection(); 506using ProjectCollection collection = new ProjectCollection(); 990using ProjectCollection collection = new ProjectCollection(initial, null, ToolsetDefinitionLocations.ConfigurationFile); 1231using var collection = new ProjectCollection(); 1261using var collection = new ProjectCollection(); 1289using var collection = new ProjectCollection(); 1321using var collection = new ProjectCollection(projectCollectionGlobalProperties); 1443using (var projectCollection = new ProjectCollection()) 1508using (var projectCollection = new ProjectCollection()) 1594using (var projectCollection = new ProjectCollection()) 2057ProjectCollection.GlobalProjectCollection.RegisterLogger(mockLogger); 2441ProjectCollection collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None); 2465ProjectCollection collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None); 2535ProjectCollection collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None); 3251var projectCollection = env.CreateProjectCollection().Collection; 3279var projectCollection = env.CreateProjectCollection().Collection; 3571using (var projectCollection = new ProjectCollection()) 3765var projectCollection = env.CreateProjectCollection().Collection; 3841using (var projectCollection = new ProjectCollection()) 3861var projectCollection = env.CreateProjectCollection().Collection; 3893using (ProjectCollection collection = new ProjectCollection()) 3942using (ProjectCollection collection = new ProjectCollection()) 3986using (ProjectCollection collection = new ProjectCollection()) 4033using (ProjectCollection collection = new ProjectCollection()) 4073using (ProjectCollection collection = new ProjectCollection()) 4116using (ProjectCollection collection = new ProjectCollection()) 4159using (ProjectCollection collection = new ProjectCollection()) 4197using (ProjectCollection collection = new ProjectCollection()) 4262using ProjectCollection collection = new ProjectCollection(); 4305using ProjectCollection collection = new();
Definition\ProjectCollection_Tests.cs (90)
36ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 44ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 45Assert.Equal(0, ProjectCollection.GlobalProjectCollection.Count); 47IDictionary<string, string> globalProperties = ProjectCollection.GlobalProjectCollection.GlobalProperties; 50ProjectCollection.GlobalProjectCollection.RemoveGlobalProperty(propertyName); 53Assert.Empty(ProjectCollection.GlobalProjectCollection.GlobalProperties); 72Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject(path); 96Assert.Equal(0, ProjectCollection.GlobalProjectCollection.Count); 101Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject(path); 124using ProjectCollection collection = new ProjectCollection(); 150Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\x"); 166using var collection = new ProjectCollection(); 197using ProjectCollection collection = new ProjectCollection(); 228using ProjectCollection collection = new ProjectCollection(); 251using var collection = new ProjectCollection(); 267using var collection = new ProjectCollection(); 281using var collection = new ProjectCollection(); 302Assert.Equal(0, ProjectCollection.GlobalProjectCollection.Count); 304ProjectCollection.GlobalProjectCollection.LoadProject(path); 306Assert.Equal(1, ProjectCollection.GlobalProjectCollection.Count); 325using var collection = new ProjectCollection(); 346using ProjectCollection collection1 = new ProjectCollection(); 352using ProjectCollection collection2 = new ProjectCollection(); 390ProjectCollection.GlobalProjectCollection.SetGlobalProperty("Configuration", "Debug"); 397ProjectCollection.GlobalProjectCollection.LoadProject("c:\\1", globals, null); 399Assert.Equal(1, ProjectCollection.GlobalProjectCollection.Count); 425Assert.True(ReferenceEquals(project1, ProjectCollection.GlobalProjectCollection.LoadProject(projectDirectory, globalProperties1, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 426Assert.True(ReferenceEquals(project2, ProjectCollection.GlobalProjectCollection.LoadProject(projectDirectory, globalProperties2, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 428List<Project> projects = Helpers.MakeList(ProjectCollection.GlobalProjectCollection.LoadedProjects); 431Assert.Equal(2, ProjectCollection.GlobalProjectCollection.Count); 447ProjectCollection.GlobalProjectCollection.SetGlobalProperty("Configuration", "Debug"); 458Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\1", project2Globals, null); 464ProjectCollection.GlobalProjectCollection.SetGlobalProperty("Platform", "X64"); 473ProjectCollection.GlobalProjectCollection.SetGlobalProperty("Configuration", "Debug2"); 474ProjectCollection.GlobalProjectCollection.SetGlobalProperty("Platform", "X86"); 480ProjectCollection.GlobalProjectCollection.SetGlobalProperty("MyProperty", "MyValue2"); 513Assert.True(ReferenceEquals(project1, ProjectCollection.GlobalProjectCollection.LoadProject("c:\\1", null, "2.0"))); 514Assert.True(ReferenceEquals(project2, ProjectCollection.GlobalProjectCollection.LoadProject("c:\\1", null, ObjectModelHelpers.MSBuildDefaultToolsVersion))); 534Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null); 556Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null); 568using ProjectCollection collection = new ProjectCollection(); 585using var collection = new ProjectCollection(); 612using var collection = new ProjectCollection(); 634using var collection = new ProjectCollection(); 679using var collection = new ProjectCollection(); 700Assert.Equal(1, ProjectCollection.GlobalProjectCollection.Count); 702ProjectCollection.GlobalProjectCollection.UnloadProject(project); // should not throw 704Assert.Equal(0, ProjectCollection.GlobalProjectCollection.Count); 705Assert.Empty(Helpers.MakeList(ProjectCollection.GlobalProjectCollection.LoadedProjects)); 718ProjectCollection.GlobalProjectCollection.UnloadProject(project); 719ProjectCollection.GlobalProjectCollection.UnloadProject(xml); 726ProjectCollection.GlobalProjectCollection.LoadProject(xml.FullPath); 745ProjectCollection.GlobalProjectCollection.UnloadProject(project.Xml); 767ProjectCollection.GlobalProjectCollection.UnloadProject(importProject); 772ProjectCollection.GlobalProjectCollection.UnloadProject(importedXml); 792Assert.Equal(1, ProjectCollection.GlobalProjectCollection.Count); 794Assert.True(ReferenceEquals(project, Helpers.MakeList(ProjectCollection.GlobalProjectCollection.LoadedProjects)[0])); 796ProjectCollection.GlobalProjectCollection.UnloadProject(project); // should not throw 798Assert.Equal(0, ProjectCollection.GlobalProjectCollection.Count); 811ProjectCollection.GlobalProjectCollection.SetGlobalProperty("Configuration", "Debug"); 838using ProjectCollection collection = new ProjectCollection(); 878using var collection = new ProjectCollection(); 921using var collection = new ProjectCollection(); 951using var collection = new ProjectCollection(); 971using var collection = new ProjectCollection(); 995using var collection = new ProjectCollection(); 1019ProjectCollection.GlobalProjectCollection.AddToolset(null); 1029using var collection = new ProjectCollection(); 1051using var collection = new ProjectCollection(); 1063ProjectCollection.GlobalProjectCollection.RemoveToolset(null); 1075ProjectCollection.GlobalProjectCollection.RemoveToolset(String.Empty); 1091using var collection = new ProjectCollection(); 1111using var collection = new ProjectCollection(null, null, ToolsetDefinitionLocations.Registry); 1123ProjectCollection.GlobalProjectCollection.DefaultToolsVersion = String.Empty; 1135ProjectCollection.GlobalProjectCollection.DefaultToolsVersion = "nonexistent"; 1145using var collection = new ProjectCollection(); 1174using var collection = new ProjectCollection(); 1266using var collection = new ProjectCollection(); 1275using var collection2 = new ProjectCollection(); 1284using var collection3 = new ProjectCollection(); 1293using var collection4 = new ProjectCollection(); 1302using var collection5 = new ProjectCollection(); 1312using var collection6 = new ProjectCollection(); 1320using var collection7 = new ProjectCollection(); 1332using var collection = new ProjectCollection(); 1391using var collection = new ProjectCollection(); 1453ProjectCollection.Version.Major.ShouldBe(expectedVersion.Major); 1454ProjectCollection.Version.Minor.ShouldBe(expectedVersion.Minor); 1481private static void VerifyProjectCollectionEvents(ProjectCollection collection, bool expectEventRaised, string propertyValue) 1498Assert.Equal(ProjectCollection.Unescape(propertyValue), property.EvaluatedValue);
Definition\ProjectItem_Tests.cs (4)
831using ProjectCollection projectCollection = new ProjectCollection(); 1150using (var projectCollection = new ProjectCollection()) 1170using (var projectCollection = new ProjectCollection()) 3745using (var projectCollection = new ProjectCollection())
Definition\ProjectProperty_Tests.cs (1)
193Project project = new Project(globalProperties, null, ProjectCollection.GlobalProjectCollection);
Instance\ProjectInstance_Tests.cs (4)
416using var pc = new ProjectCollection(); 452using var pc = new ProjectCollection(); 494using var pc = new ProjectCollection(); 1028using ProjectFromString projectFromString = new(content, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, ProjectCollection.GlobalProjectCollection);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (1)
468public static void VerifyProjectCollectionLinks(this ProjectCollection collection, string path, int expectedLocal, int expectedLinks)
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
181public ProjectCollection Collection { get; }
Microsoft.Build.Engine.UnitTests (241)
BackEnd\BuildManager_Logging_Tests.cs (1)
58private readonly ProjectCollection _projectCollection;
BackEnd\BuildManager_Tests.cs (13)
57private readonly ProjectCollection _projectCollection; 343using var projectCollection = new ProjectCollection(); 895using var projectCollection = new ProjectCollection(); 2041using var projectCollection2 = new ProjectCollection(); 2100using var projectCollection = new ProjectCollection(); 3130new BuildParameters(ProjectCollection.GlobalProjectCollection) 3208new BuildParameters(ProjectCollection.GlobalProjectCollection) 3293new BuildParameters(ProjectCollection.GlobalProjectCollection) 3619private ProjectInstance CreateProjectInstance(string contents, string toolsVersion, ProjectCollection projectCollection, bool deleteTempProject) 3628private ProjectGraph CreateProjectGraph(string contents, ProjectCollection projectCollection) 3639private Project CreateProject(string contents, string toolsVersion, ProjectCollection projectCollection, bool deleteTempProject) 3661private static ProjectInstance GenerateDummyProjects(string shutdownProjectDirectory, int parallelProjectCount, ProjectCollection projectCollection) 3732using (var collection = new ProjectCollection())
BackEnd\BuildRequestConfiguration_Tests.cs (7)
277using var collection = new ProjectCollection(); 355using var collection = new ProjectCollection(); 460using var collection = new ProjectCollection(); 556var projectCollection = _env.CreateProjectCollection().Collection; 588using var collection = new ProjectCollection(); 626using var collection = new ProjectCollection(); 658using var collection = new ProjectCollection();
BackEnd\ConfigurationMetadata_Tests.cs (1)
27ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
BackEnd\LoggingService_Tests.cs (11)
337LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true); 354LoggerDescription configurableDescription = CreateLoggerDescription(configurableClassName, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true); 355LoggerDescription distributedDescription = CreateLoggerDescription(distributedClassName, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true); 391LoggerDescription configurableDescriptionA = CreateLoggerDescription(configurableClassNameA, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true); 392LoggerDescription configurableDescriptionB = CreateLoggerDescription(configurableClassNameB, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true); 436LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true); 464LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true); 529LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true); 552loggerDescriptions.Add(CreateLoggerDescription(configurableClassName, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true)); 553loggerDescriptions.Add(CreateLoggerDescription(distributedClassName, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true)); 614LoggerDescription description = CreateLoggerDescription(className, typeof(ProjectCollection).GetTypeInfo().Assembly.FullName, true);
BackEnd\MSBuild_Tests.cs (5)
28ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 33ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 1559using ProjectCollection pc = new ProjectCollection(null, new List<ILogger> { logger }, null, ToolsetDefinitionLocations.Default, 2, false); 2017using var collection = new ProjectCollection(); 2086using var collection = new ProjectCollection(
BackEnd\ProjectTelemetry_Tests.cs (1)
173using var projectCollection = new ProjectCollection();
BackEnd\SdkResultOutOfProc_Tests.cs (2)
40private readonly ProjectCollection _projectCollection; 197private ProjectInstance CreateProjectInstance(string projectPath, string toolsVersion, ProjectCollection projectCollection)
BackEnd\TargetEntry_Tests.cs (1)
751using ProjectCollection collection = new ProjectCollection();
BackEnd\TargetUpToDateChecker_Tests.cs (2)
38ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 628ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
BackEnd\TaskBuilder_Tests.cs (1)
133ProjectCollection collection = new ProjectCollection();
BackEnd\TaskRegistry_Tests.cs (2)
2047? new TaskRegistry(toolset, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache) 2048: new TaskRegistry(ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
BinaryLogger_Tests.cs (2)
127using (ProjectCollection collection = new()) 214using (ProjectCollection collection = new())
ChangeWaves_Tests.cs (1)
59using ProjectCollection collection = new ProjectCollection();
Construction\ProjectRootElement_Tests.cs (1)
130var projectRootElement = ProjectRootElement.CreateEphemeral(ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
Construction\SolutionFilter_Tests.cs (2)
39ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 127ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection;
Construction\SolutionProjectGenerator_Tests.cs (10)
23using ProjectCollection = Microsoft.Build.Evaluation.ProjectCollection; 54ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 478Toolset t = ProjectCollection.GlobalProjectCollection.GetToolset(instances[0].ToolsVersion); 1963Assert.Empty(ProjectCollection.GlobalProjectCollection.LoadedProjects); 1967Assert.Empty(ProjectCollection.GlobalProjectCollection.LoadedProjects); 1986ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 2012using ProjectCollection collection = new ProjectCollection(); 2024Assert.Empty(ProjectCollection.GlobalProjectCollection.LoadedProjects); 2030Assert.Empty(ProjectCollection.GlobalProjectCollection.LoadedProjects); 2375using ProjectCollection collection = new ProjectCollection();
Definition\Project_Internal_Tests.cs (6)
41using ProjectCollection collection = new ProjectCollection(); 95Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null); 235var projectCollection = env.CreateProjectCollection().Collection; 272ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection; 300ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection; 328ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection;
Definition\ProjectEvaluationContext_Tests.cs (5)
104var projectCollection = _env.CreateProjectCollection().Collection; 146var projectCollection = _env.CreateProjectCollection().Collection; 201var collection = _env.CreateProjectCollection().Collection; 241var collection = _env.CreateProjectCollection().Collection; 986var collection = _env.CreateProjectCollection().Collection;
Definition\Toolset_Tests.cs (10)
82using var collection = new ProjectCollection(); 169Toolset t = ProjectCollection.GlobalProjectCollection.GetToolset("4.0"); 192using ProjectCollection projectCollection = new ProjectCollection(); 220using ProjectCollection projectCollection = new ProjectCollection(); 248using ProjectCollection projectCollection = new ProjectCollection(globalProperties); 270using ProjectCollection projectCollection = new ProjectCollection(); 292using ProjectCollection projectCollection = new ProjectCollection(); 320using ProjectCollection projectCollection = new ProjectCollection(globalProperties); 436using ProjectCollection projectCollection = new ProjectCollection(globalProperties); 489using ProjectCollection projectCollection = new ProjectCollection(globalPropertiesForProjectCollection);
Definition\ToolsetConfigurationReader_Tests.cs (1)
664using var collection = new ProjectCollection();
Definition\ToolsVersion_Tests.cs (31)
32using ProjectCollection e = new ProjectCollection(); 35using var collection = new ProjectCollection(); 77using ProjectCollection e = new ProjectCollection(); 78using var collection = new ProjectCollection(); 97using ProjectCollection e = new ProjectCollection(); 98using var collection = new ProjectCollection(); 116using ProjectCollection e = new ProjectCollection(); 117using var collection = new ProjectCollection(); 136using ProjectCollection e = new ProjectCollection(); 137using var collection = new ProjectCollection(); 156using var collection = new ProjectCollection(); 168TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache); 189using ProjectCollection p = new ProjectCollection(); 195using var colleciton = new ProjectCollection(); 198TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache); 214using ProjectCollection p = new ProjectCollection(); 221TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache); 235using ProjectCollection p = new ProjectCollection(); 301using ProjectCollection p = new ProjectCollection(); 338using ProjectCollection p = new ProjectCollection(); 374using ProjectCollection p = new ProjectCollection(); 404ProjectCollection p = new ProjectCollection(); 436using ProjectCollection p = new ProjectCollection(); 543using ProjectCollection p = new ProjectCollection(); 582using ProjectCollection p = new ProjectCollection(); 623using ProjectCollection p = new ProjectCollection(); 693using ProjectCollection p = new ProjectCollection(); 779using ProjectCollection p = new ProjectCollection(); 890using ProjectCollection p = new ProjectCollection(); 923using var collection = new ProjectCollection(); 936TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
EscapingInProjects_Tests.cs (2)
79ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 647using var collection = new ProjectCollection();
Evaluation\EvaluationLogging_Tests.cs (3)
28ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 37ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 75var collection = env.CreateProjectCollection().Collection;
Evaluation\Evaluator_Tests.cs (44)
40ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 49ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 65using ProjectCollection collection = new(new Dictionary<string, string>(), [logger], ToolsetDefinitionLocations.Default); 549using ProjectCollection pc = new ProjectCollection(); 592using ProjectCollection pc = new ProjectCollection(); 637using ProjectCollection pc = new ProjectCollection(); 680using ProjectCollection pc = new ProjectCollection(); 726using ProjectCollection pc = new ProjectCollection(); 770using ProjectCollection pc = new ProjectCollection(); 816using ProjectCollection pc = new ProjectCollection(); 955using ProjectCollection pc = new ProjectCollection(); 1040using ProjectCollection pc = new ProjectCollection(); 1102ProjectCollection pc = new ProjectCollection(); 1397ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 2476using var collection = new ProjectCollection(); 2510using var collection = new ProjectCollection(); 2528using var collection = new ProjectCollection(); 2586using var collection = new ProjectCollection(); 2605using var collection = new ProjectCollection(); 2661using var collection = new ProjectCollection(); 2680using var collection = new ProjectCollection(); 2718using var collection = new ProjectCollection(); 2737using var collection = new ProjectCollection(); 2781msbuildFileVersionProperty.ShouldBe(ProjectCollection.Version.ToString()); 2782ProjectCollection.Version.ToString().ShouldStartWith(msbuildVersionProperty, 2785msbuildSemanticVersionProperty.ShouldBe(ProjectCollection.DisplayVersion); 2786ProjectCollection.DisplayVersion.ShouldStartWith(msbuildVersionProperty, 3135using var collection = new ProjectCollection(); 3885using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */); 3940using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */); 3992using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */); 4044using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */); 4103using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */); 4161using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no project collection global properties */); 4221using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no project collection global properties */); 4273using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no project collection global properties */); 4320using ProjectCollection fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no project collection global properties */); 4356using var collection = new ProjectCollection(); 4718using var collection = new ProjectCollection( 5006using ProjectCollection fakeProjectCollection = 5046using ProjectCollection pc = new ProjectCollection(); 5087using ProjectCollection pc = new(); 5147private ProjectCollection GetProjectCollectionWithFakeToolset(IDictionary<string, string> globalProperties) 5149ProjectCollection projectCollection = new ProjectCollection(globalProperties);
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (15)
28using var collection = new ProjectCollection(); 54using var projColln = GetProjectCollection(); 304using var projColln = GetProjectCollection(); 407using var projColln = GetProjectCollection(); 499using var projColln = GetProjectCollection(); 576using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 637using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 707using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 772using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 831using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 867using var projectCollection = GetProjectCollection(); 923using var projColln = GetProjectCollection(); 974private ProjectCollection GetProjectCollection(IDictionary<string, string> globalProperties = null) 976ProjectCollection projColln; 1058using var xmlReader = new ProjectCollection();
Evaluation\ItemEvaluation_Tests.cs (2)
31ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 40ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
Evaluation\Preprocessor_Tests.cs (1)
37ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
Evaluation\ProjectCollection_Tests.cs (2)
17using var collectionWithDefaultCache = new ProjectCollection(); 25using var collectionWithSimpleCache = new ProjectCollection();
Evaluation\ProjectRootElementCache_Tests.cs (8)
29ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 39ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 51ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get("c:\\foo", (p, c) => null, true, false); 62ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get("c:\\foo", (p, c) => ProjectRootElement.Create("c:\\bar"), true, false); 73ProjectRootElement projectRootElement2 = ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get(rootedPath, (p, c) => { throw new InvalidOperationException(); }, true, false); 90projectRootElement = ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.Get(projectPath, (p, c) => { throw new InvalidOperationException(); }, true, false); 94ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.DiscardStrongReferences(); 98Assert.Null(ProjectCollection.GlobalProjectCollection.ProjectRootElementCache.TryGet(projectPath));
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
366var pc = _env.CreateProjectCollection().Collection; 475ProjectCollection projectCollection = _env.CreateProjectCollection().Collection;
Evaluation\SdkResultEvaluation_Tests.cs (1)
27private ProjectCollection _projectCollection;
Evaluation\SimpleProjectRootElementCache_Tests.cs (2)
20ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 26ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
28using var projectCollection = new ProjectCollection(); 55using var projectCollection = new ProjectCollection(ToolsetDefinitionLocations.ConfigurationFile);
EvaluationProfiler_Tests.cs (2)
277using (var projectCollection = new ProjectCollection()) 300private Project CreateProject(string contents, string toolsVersion, ProjectCollection projectCollection)
FixPathOnUnix_Tests.cs (1)
43using var projColln = new ProjectCollection();
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
428ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection;
Graph\ProjectGraph_Tests.cs (3)
107ProjectCollection.GlobalProjectCollection, 209ProjectCollection.GlobalProjectCollection, 360var collection = _env.CreateProjectCollection().Collection;
Graph\ResultCacheBasedBuilds_Tests.cs (1)
303var collection = _env.CreateProjectCollection().Collection;
Instance\HostServices_Tests.cs (7)
31ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 407ProjectCollection.GlobalProjectCollection.HostServices = hostServices; 412ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 426ProjectCollection.GlobalProjectCollection.HostServices = hostServices; 432ProjectCollection.GlobalProjectCollection.UnloadProject(project1); 436ProjectCollection.GlobalProjectCollection.UnloadProject(project2); 507ProjectCollection.GlobalProjectCollection.LoadProject(
Instance\ProjectInstance_Internal_Tests.cs (16)
286using ProjectRootElementFromString projectRootElementFromString = new("<Project></Project>", ProjectCollection.GlobalProjectCollection, false, false); 299using var projectCollection = new ProjectCollection(); 320using var collection = new ProjectCollection(); 354using var collection = new ProjectCollection(); 382using var collection = new ProjectCollection(); 423using var collection = new ProjectCollection(projectCollectionGlobalProperties); 700public delegate ProjectInstance ProjectInstanceFactory(string file, ProjectRootElement xml, ProjectCollection collection); 764var projectCollection = env.CreateProjectCollection().Collection; 857using ProjectCollection projectCollection = new ProjectCollection(); 891ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection; 919ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().Collection; 956private static ProjectInstance GetProjectInstance(string content, HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null) 966using ProjectFromString projectFromString = new(content, globalProperties, toolsVersion ?? ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection ?? ProjectCollection.GlobalProjectCollection); 993private static ProjectInstance GetSampleProjectInstance(HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null) 1026private static void CreateMockToolsetIfNotExists(string toolsVersion, ProjectCollection projectCollection) 1028ProjectCollection pc = projectCollection;
InstanceFromRemote\FakeProjectItemDictionary.cs (1)
82var factory = LinkedObjectsFactory.Get(ProjectCollection.GlobalProjectCollection);
InstanceFromRemote\FakeProjectLink.cs (1)
69public override string ToolsVersion => ProjectCollection.GlobalProjectCollection.DefaultToolsVersion;
InstanceFromRemote\FakeProjectLinkWithQuickItemLookUp.cs (1)
34var factory = LinkedObjectsFactory.Get(ProjectCollection.GlobalProjectCollection);
InstanceFromRemote\ProjectInstance_FromImmutableProjectLink_Tests.cs (4)
25var project = new Project(ProjectCollection.GlobalProjectCollection, projectLink); 43var project = new Project(ProjectCollection.GlobalProjectCollection, projectLink); 64var project = new Project(ProjectCollection.GlobalProjectCollection, projectLink); 99var project = new Project(ProjectCollection.GlobalProjectCollection, projectLink);
Utilities_Tests.cs (3)
12using ProjectCollection = Microsoft.Build.Evaluation.ProjectCollection; 303using var colletionX = new ProjectCollection(); 304using var colletionY = new ProjectCollection();
Microsoft.Build.Tasks.UnitTests (17)
AssignLinkMetadata_Tests.cs (1)
176using var collection = new ProjectCollection();
CallTarget_Tests.cs (2)
21ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 26ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
CreateProperty_Tests.cs (2)
16ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 21ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
Exec_Tests.cs (2)
971using var collection = new ProjectCollection( 1028using var collection = new ProjectCollection(
MSBuild_Tests.cs (2)
28ProjectCollection.GlobalProjectCollection.UnloadAllProjects(); 33ProjectCollection.GlobalProjectCollection.UnloadAllProjects();
ResolveSDKReference_Tests.cs (5)
3810using ProjectCollection pc = new ProjectCollection(); 3953using ProjectCollection pc = new ProjectCollection(); 4062using ProjectCollection pc = new ProjectCollection(); 4159using ProjectCollection pc = new ProjectCollection(); 4328using ProjectCollection pc = new ProjectCollection();
WriteLinesToFile_Tests.cs (3)
430using (var collection = new ProjectCollection( 491using (var collection = new ProjectCollection( 574using (var collection = new ProjectCollection(
Microsoft.Build.UnitTests.Shared (23)
EngineTestEnvironment.cs (2)
208using (ProjectCollection projectCollection = new ProjectCollection()) 265public ProjectCollection Collection { get; }
MockEngine.cs (1)
40private readonly ProjectCollection _projectCollection = new ProjectCollection();
MockLogger.cs (2)
15using ProjectCollection = Microsoft.Build.Evaluation.ProjectCollection; 447typeof(ProjectCollection).GetTypeInfo().Assembly));
ObjectModelHelpers.cs (11)
136public static void AssertItemEvaluationFromGenericItemEvaluator(Func<string, ProjectCollection, IList<ITestItem>> itemEvaluator, [StringSyntax(StringSyntaxAttribute.Xml)] string projectContents, string[] inputFiles, string[] expectedInclude, bool makeExpectedIncludeAbsolute = false, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false) 139using (var collection = new ProjectCollection()) 661public static ProjectRootElement CreateInMemoryProjectRootElement([StringSyntax(StringSyntaxAttribute.Xml)] string projectContents, ProjectCollection collection = null, bool preserveFormatting = true) 702public static Project CreateInMemoryProject(ProjectCollection projectCollection, string xml, params ILogger[] loggers) 716ProjectCollection projectCollection, 772using ProjectCollection collection = new(); 800using ProjectCollection collection = new(); 983ProjectCollection projectCollection = new ProjectCollection(); 1357var projectCollection = ProjectCollection.GlobalProjectCollection; 1760ProjectCollection projectCollection = null,
ProjectFromString.cs (7)
27: this(s, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection) 31public ProjectFromString(string s, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection collection, ProjectLoadSettings loadSettings = ProjectLoadSettings.Default) 36public ProjectFromString(string s, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) 55: this(s, ProjectCollection.GlobalProjectCollection) 59public ProjectRootElementFromString(string s, ProjectCollection projectCollection) 64public ProjectRootElementFromString(string s, ProjectCollection projectCollection, bool preserveFormatting) 71public ProjectRootElementFromString(string s, ProjectCollection projectCollection, bool isExplicitlyLoaded, bool preserveFormatting)
Microsoft.Build.Utilities.UnitTests (11)
MuxLogger_Tests.cs (7)
56BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 93using ProjectCollection projectCollection = new ProjectCollection(); 103using var collection = new ProjectCollection(); 151BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 205BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 260BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection); 309BuildParameters parameters = new BuildParameters(ProjectCollection.GlobalProjectCollection);
ToolLocationHelper_Tests.cs (4)
688string tv12path = Path.Combine(ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).ToolsPath, Constants.MSBuildExecutableName); 710var toolsPath32 = ProjectCollection.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).Properties["MSBuildToolsPath32"]; 3577using ProjectCollection pc = new ProjectCollection(); 3649using ProjectCollection pc = new ProjectCollection();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Build\ProjectBuildManager.cs (5)
64private MSB.Evaluation.ProjectCollection? _batchBuildProjectCollection; 86string path, MSB.Evaluation.ProjectCollection? projectCollection, CancellationToken cancellationToken) 112string path, Stream readStream, MSB.Evaluation.ProjectCollection? projectCollection, DiagnosticLog log) 156var projectCollection = new MSB.Evaluation.ProjectCollection( 184var projectCollection = new MSB.Evaluation.ProjectCollection(
MSBuild (10)
XMake.cs (10)
824using (ProjectCollection collection = new(globalProperties, loggers, ToolsetDefinitionLocations.Default)) 1114ProjectCollection.Version?.ToString(), 1336ProjectCollection projectCollection = null; 1750private static bool PrintTargets(string projectFile, string toolsVersion, Dictionary<string, string> globalProperties, TextWriter targetsWriter, ProjectCollection projectCollection) 1799ProjectCollection.DisplayVersion), 3664Assembly engineAssembly = typeof(ProjectCollection).GetTypeInfo().Assembly; 3723Assembly engineAssembly = typeof(ProjectCollection).GetTypeInfo().Assembly; 4176Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage", ProjectCollection.DisplayVersion, NativeMethods.FrameworkName)); 4220Console.WriteLine(ProjectCollection.Version.ToString()); 4224Console.Write(ProjectCollection.Version.ToString());
MSBuild.Benchmarks (3)
DefiningProjectModifiersBenchmark.cs (2)
47using (var pc = new ProjectCollection()) 65using (var pc = new ProjectCollection())
ItemSpecModifiersCachingBenchmark.cs (1)
47using var projectCollection = new ProjectCollection();
Roslyn.Compilers.Extension (3)
CompilerPackage.cs (3)
55Microsoft.Build.Evaluation.ProjectCollection.GlobalProjectCollection.DisableMarkDirty = true; 56Microsoft.Build.Evaluation.ProjectCollection.GlobalProjectCollection.SetGlobalProperty("RoslynHive", RoslynHive); 60Microsoft.Build.Evaluation.ProjectCollection.GlobalProjectCollection.DisableMarkDirty = false;
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
55private ProjectCollection _privateCollection;