216 instantiations of ProjectCollection
Microsoft.Build (2)
Construction\Solution\SolutionProjectGenerator.cs (1)
1004
new
ProjectCollection
(),
Definition\ProjectCollection.cs (1)
434
var local = new
ProjectCollection
(null, null, null, ToolsetDefinitionLocations.Default,
Microsoft.Build.Engine.OM.UnitTests (85)
Construction\ProjectRootElement_Tests.cs (7)
527
using ProjectCollection projectCollection = new
ProjectCollection
();
1032
using var collection = new
ProjectCollection
();
1103
using var collection = new
ProjectCollection
();
1291
using (var projectCollection = new
ProjectCollection
())
1919
using var collection = new
ProjectCollection
();
1935
using var projectCollection = new
ProjectCollection
();
1953
using var collection = new
ProjectCollection
();
Construction\ProjectTargetElement_Tests.cs (1)
357
using ProjectCollection collection = new
ProjectCollection
();
Definition\Project_Tests.cs (32)
136
using ProjectCollection collection = new
ProjectCollection
();
164
using ProjectCollection collection = new
ProjectCollection
();
279
Project project = (new
ProjectCollection
()).LoadProject(reader);
372
using var collection = new
ProjectCollection
();
389
Project project = new Project(xml, null, null, new
ProjectCollection
(), ProjectLoadSettings.IgnoreMissingImports);
404
using ProjectCollection collection = new
ProjectCollection
();
434
using ProjectCollection collection = new
ProjectCollection
();
470
using ProjectCollection collection = new
ProjectCollection
();
507
using ProjectCollection collection = new
ProjectCollection
();
991
using ProjectCollection collection = new
ProjectCollection
(initial, null, ToolsetDefinitionLocations.ConfigurationFile);
1232
using var collection = new
ProjectCollection
();
1262
using var collection = new
ProjectCollection
();
1290
using var collection = new
ProjectCollection
();
1322
using var collection = new
ProjectCollection
(projectCollectionGlobalProperties);
1444
using (var projectCollection = new
ProjectCollection
())
1509
using (var projectCollection = new
ProjectCollection
())
1595
using (var projectCollection = new
ProjectCollection
())
2423
Project project = new Project(globalProperties, null, new
ProjectCollection
());
2442
ProjectCollection collection = new
ProjectCollection
(globalProperties, loggers, ToolsetDefinitionLocations.None);
2466
ProjectCollection collection = new
ProjectCollection
(globalProperties, loggers, ToolsetDefinitionLocations.None);
2536
ProjectCollection collection = new
ProjectCollection
(globalProperties, loggers, ToolsetDefinitionLocations.None);
3572
using (var projectCollection = new
ProjectCollection
())
3842
using (var projectCollection = new
ProjectCollection
())
3894
using (ProjectCollection collection = new
ProjectCollection
())
3943
using (ProjectCollection collection = new
ProjectCollection
())
3987
using (ProjectCollection collection = new
ProjectCollection
())
4034
using (ProjectCollection collection = new
ProjectCollection
())
4074
using (ProjectCollection collection = new
ProjectCollection
())
4117
using (ProjectCollection collection = new
ProjectCollection
())
4160
using (ProjectCollection collection = new
ProjectCollection
())
4198
using (ProjectCollection collection = new
ProjectCollection
())
4263
using ProjectCollection collection = new
ProjectCollection
();
Definition\ProjectCollection_Tests.cs (36)
124
using ProjectCollection collection = new
ProjectCollection
();
166
using var collection = new
ProjectCollection
();
197
using ProjectCollection collection = new
ProjectCollection
();
228
using ProjectCollection collection = new
ProjectCollection
();
251
using var collection = new
ProjectCollection
();
267
using var collection = new
ProjectCollection
();
281
using var collection = new
ProjectCollection
();
325
using var collection = new
ProjectCollection
();
346
using ProjectCollection collection1 = new
ProjectCollection
();
352
using ProjectCollection collection2 = new
ProjectCollection
();
568
using ProjectCollection collection = new
ProjectCollection
();
585
using var collection = new
ProjectCollection
();
612
using var collection = new
ProjectCollection
();
634
using var collection = new
ProjectCollection
();
679
using var collection = new
ProjectCollection
();
838
using ProjectCollection collection = new
ProjectCollection
();
878
using var collection = new
ProjectCollection
();
921
using var collection = new
ProjectCollection
();
951
using var collection = new
ProjectCollection
();
971
using var collection = new
ProjectCollection
();
995
using var collection = new
ProjectCollection
();
1029
using var collection = new
ProjectCollection
();
1051
using var collection = new
ProjectCollection
();
1091
using var collection = new
ProjectCollection
();
1111
using var collection = new
ProjectCollection
(null, null, ToolsetDefinitionLocations.Registry);
1145
using var collection = new
ProjectCollection
();
1174
using var collection = new
ProjectCollection
();
1266
using var collection = new
ProjectCollection
();
1275
using var collection2 = new
ProjectCollection
();
1284
using var collection3 = new
ProjectCollection
();
1293
using var collection4 = new
ProjectCollection
();
1302
using var collection5 = new
ProjectCollection
();
1312
using var collection6 = new
ProjectCollection
();
1320
using var collection7 = new
ProjectCollection
();
1332
using var collection = new
ProjectCollection
();
1391
using var collection = new
ProjectCollection
();
Definition\ProjectItem_Tests.cs (5)
833
using ProjectCollection projectCollection = new
ProjectCollection
();
961
options.ProjectCollection = new
ProjectCollection
();
1152
using (var projectCollection = new
ProjectCollection
())
1172
using (var projectCollection = new
ProjectCollection
())
3747
using (var projectCollection = new
ProjectCollection
())
Instance\ProjectInstance_Tests.cs (3)
418
using var pc = new
ProjectCollection
();
454
using var pc = new
ProjectCollection
();
496
using var pc = new
ProjectCollection
();
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
159
this.Collection = new
ProjectCollection
();
Microsoft.Build.Engine.UnitTests (104)
BackEnd\BuildManager_Logging_Tests.cs (1)
76
_projectCollection = new
ProjectCollection
();
BackEnd\BuildManager_Tests.cs (6)
85
_projectCollection = new
ProjectCollection
(globalProperties: null, _parameters.Loggers, ToolsetDefinitionLocations.Default);
344
using var projectCollection = new
ProjectCollection
();
896
using var projectCollection = new
ProjectCollection
();
2041
using var projectCollection2 = new
ProjectCollection
();
2100
using var projectCollection = new
ProjectCollection
();
3689
using (var collection = new
ProjectCollection
())
BackEnd\BuildRequestConfiguration_Tests.cs (3)
278
using var collection = new
ProjectCollection
();
356
using var collection = new
ProjectCollection
();
461
using var collection = new
ProjectCollection
();
BackEnd\MSBuild_Tests.cs (1)
1558
using ProjectCollection pc = new
ProjectCollection
(null, new List<ILogger> { logger }, null, ToolsetDefinitionLocations.Default, 2, false);
BackEnd\SdkResultOutOfProc_Tests.cs (1)
65
_projectCollection = new
ProjectCollection
();
BackEnd\TargetEntry_Tests.cs (1)
856
using ProjectCollection collection = new
ProjectCollection
();
BackEnd\TaskBuilder_Tests.cs (1)
147
ProjectCollection collection = new
ProjectCollection
();
BinaryLogger_Tests.cs (2)
122
using (ProjectCollection collection =
new
())
218
using (ProjectCollection collection =
new
())
ChangeWaves_Tests.cs (1)
61
using ProjectCollection collection = new
ProjectCollection
();
Construction\SolutionProjectGenerator_Tests.cs (2)
1946
using ProjectCollection collection = new
ProjectCollection
();
2299
using ProjectCollection collection = new
ProjectCollection
();
Definition\Project_Internal_Tests.cs (1)
42
using ProjectCollection collection = new
ProjectCollection
();
Definition\Toolset_Tests.cs (12)
28
Toolset t = new Toolset(null, "x", new
ProjectCollection
(), null);
37
Toolset t = new Toolset("x", null, new
ProjectCollection
(), null);
46
Toolset t = new Toolset(String.Empty, "x", new
ProjectCollection
(), null);
84
using var collection = new
ProjectCollection
();
198
using ProjectCollection projectCollection = new
ProjectCollection
();
232
using ProjectCollection projectCollection = new
ProjectCollection
();
266
using ProjectCollection projectCollection = new
ProjectCollection
(globalProperties);
288
using ProjectCollection projectCollection = new
ProjectCollection
();
310
using ProjectCollection projectCollection = new
ProjectCollection
();
338
using ProjectCollection projectCollection = new
ProjectCollection
(globalProperties);
454
using ProjectCollection projectCollection = new
ProjectCollection
(globalProperties);
507
using ProjectCollection projectCollection = new
ProjectCollection
(globalPropertiesForProjectCollection);
Definition\ToolsetConfigurationReader_Tests.cs (1)
665
using var collection = new
ProjectCollection
();
Definition\ToolsVersion_Tests.cs (27)
34
using ProjectCollection e = new
ProjectCollection
();
37
using var collection = new
ProjectCollection
();
79
using ProjectCollection e = new
ProjectCollection
();
80
using var collection = new
ProjectCollection
();
99
using ProjectCollection e = new
ProjectCollection
();
100
using var collection = new
ProjectCollection
();
118
using ProjectCollection e = new
ProjectCollection
();
119
using var collection = new
ProjectCollection
();
138
using ProjectCollection e = new
ProjectCollection
();
139
using var collection = new
ProjectCollection
();
158
using var collection = new
ProjectCollection
();
191
using ProjectCollection p = new
ProjectCollection
();
197
using var colleciton = new
ProjectCollection
();
216
using ProjectCollection p = new
ProjectCollection
();
237
using ProjectCollection p = new
ProjectCollection
();
303
using ProjectCollection p = new
ProjectCollection
();
340
using ProjectCollection p = new
ProjectCollection
();
376
using ProjectCollection p = new
ProjectCollection
();
406
ProjectCollection p = new
ProjectCollection
();
438
using ProjectCollection p = new
ProjectCollection
();
545
using ProjectCollection p = new
ProjectCollection
();
584
using ProjectCollection p = new
ProjectCollection
();
625
using ProjectCollection p = new
ProjectCollection
();
695
using ProjectCollection p = new
ProjectCollection
();
781
using ProjectCollection p = new
ProjectCollection
();
892
using ProjectCollection p = new
ProjectCollection
();
925
using var collection = new
ProjectCollection
();
EscapingInProjects_Tests.cs (1)
649
using var collection = new
ProjectCollection
();
Evaluation\Evaluator_Tests.cs (25)
514
using ProjectCollection pc = new
ProjectCollection
();
557
using ProjectCollection pc = new
ProjectCollection
();
602
using ProjectCollection pc = new
ProjectCollection
();
645
using ProjectCollection pc = new
ProjectCollection
();
691
using ProjectCollection pc = new
ProjectCollection
();
735
using ProjectCollection pc = new
ProjectCollection
();
781
using ProjectCollection pc = new
ProjectCollection
();
920
using ProjectCollection pc = new
ProjectCollection
();
1005
using ProjectCollection pc = new
ProjectCollection
();
1067
ProjectCollection pc = new
ProjectCollection
();
2441
using var collection = new
ProjectCollection
();
2475
using var collection = new
ProjectCollection
();
2493
using var collection = new
ProjectCollection
();
2551
using var collection = new
ProjectCollection
();
2570
using var collection = new
ProjectCollection
();
2626
using var collection = new
ProjectCollection
();
2645
using var collection = new
ProjectCollection
();
2683
using var collection = new
ProjectCollection
();
2702
using var collection = new
ProjectCollection
();
3100
using var collection = new
ProjectCollection
();
4333
using var collection = new
ProjectCollection
();
4695
using var collection = new
ProjectCollection
(
5023
using ProjectCollection pc = new
ProjectCollection
();
5064
using ProjectCollection pc =
new
();
5126
ProjectCollection projectCollection = new
ProjectCollection
(globalProperties);
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (4)
28
using var collection = new
ProjectCollection
();
983
projColln = new
ProjectCollection
(ToolsetDefinitionLocations.ConfigurationFile);
991
projColln = new
ProjectCollection
(globalProperties, loggers: null, ToolsetDefinitionLocations.ConfigurationFile);
1058
using var xmlReader = new
ProjectCollection
();
Evaluation\ProjectCollection_Tests.cs (2)
17
using var collectionWithDefaultCache = new
ProjectCollection
();
25
using var collectionWithSimpleCache = new
ProjectCollection
();
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
29
using var projectCollection = new
ProjectCollection
();
56
using var projectCollection = new
ProjectCollection
(ToolsetDefinitionLocations.ConfigurationFile);
EvaluationProfiler_Tests.cs (1)
279
using (var projectCollection = new
ProjectCollection
())
FixPathOnUnix_Tests.cs (1)
44
using var projColln = new
ProjectCollection
();
Instance\ProjectInstance_Internal_Tests.cs (6)
301
using var projectCollection = new
ProjectCollection
();
322
using var collection = new
ProjectCollection
();
356
using var collection = new
ProjectCollection
();
384
using var collection = new
ProjectCollection
();
425
using var collection = new
ProjectCollection
(projectCollectionGlobalProperties);
859
using ProjectCollection projectCollection = new
ProjectCollection
();
Utilities_Tests.cs (2)
315
using var colletionX = new
ProjectCollection
();
316
using var colletionY = new
ProjectCollection
();
Microsoft.Build.Tasks.UnitTests (8)
AssignLinkMetadata_Tests.cs (1)
177
using var collection = new
ProjectCollection
();
Exec_Tests.cs (2)
951
using var collection = new
ProjectCollection
(
1008
using var collection = new
ProjectCollection
(
ResolveSDKReference_Tests.cs (5)
3811
using ProjectCollection pc = new
ProjectCollection
();
3954
using ProjectCollection pc = new
ProjectCollection
();
4063
using ProjectCollection pc = new
ProjectCollection
();
4160
using ProjectCollection pc = new
ProjectCollection
();
4329
using ProjectCollection pc = new
ProjectCollection
();
Microsoft.Build.UnitTests.Shared (9)
EngineTestEnvironment.cs (2)
217
using (ProjectCollection projectCollection = new
ProjectCollection
())
278
Collection = new
ProjectCollection
();
MockEngine.cs (1)
40
private readonly ProjectCollection _projectCollection = new
ProjectCollection
();
ObjectModelHelpers.cs (6)
142
using (var collection = new
ProjectCollection
())
670
collection ?? new
ProjectCollection
(),
694
return CreateInMemoryProject(new
ProjectCollection
(), xml, loggers);
775
using ProjectCollection collection =
new
();
803
using ProjectCollection collection =
new
();
986
ProjectCollection projectCollection = new
ProjectCollection
();
Microsoft.Build.Utilities.UnitTests (4)
MuxLogger_Tests.cs (2)
95
using ProjectCollection projectCollection = new
ProjectCollection
();
105
using var collection = new
ProjectCollection
();
ToolLocationHelper_Tests.cs (2)
3584
using ProjectCollection pc = new
ProjectCollection
();
3656
using ProjectCollection pc = new
ProjectCollection
();
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
91
var proj = Project.FromFile(VersionsPropsPath, new Build.Definition.ProjectOptions() { ProjectCollection = new
ProjectCollection
() });
MSBuild (2)
XMake.cs (2)
836
using (ProjectCollection collection =
new
(globalProperties, loggers, ToolsetDefinitionLocations.Default))
1385
projectCollection = new
ProjectCollection
(
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
75
_privateCollection = new
ProjectCollection
();
600 references to ProjectCollection
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
127
var project =
ProjectCollection
.GlobalProjectCollection.LoadProject(
Microsoft.Build (123)
BackEnd\BuildManager\BuildManager.cs (3)
1050
_buildTelemetry.Version =
ProjectCollection
.Version;
1051
_buildTelemetry.DisplayVersion =
ProjectCollection
.DisplayVersion;
1895
ProjectCollection
.GlobalProjectCollection,
BackEnd\BuildManager\BuildParameters.cs (1)
241
public BuildParameters(
ProjectCollection
projectCollection)
BackEnd\Components\Logging\LoggingService.cs (2)
1791
while (log is
ProjectCollection
.ReusableLogger reusableLogger)
1837
var innerLogger = (logger is
ProjectCollection
.ReusableLogger reusableLogger) ? reusableLogger.OriginalLogger : logger;
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
311
SdkResolverContext context = new SdkResolverContext(buildEngineLogger, projectPath, solutionPath,
ProjectCollection
.Version, interactive, isRunningInVisualStudio)
BackEnd\Node\OutOfProcNode.cs (2)
736
ProjectCollection
.GlobalProjectCollection.RemoveAllToolsets();
740
ProjectCollection
.GlobalProjectCollection.AddToolset(toolSet);
Construction\ProjectRootElement.cs (22)
383
public string EscapedFullPath => _escapedFullPath ?? (_escapedFullPath =
ProjectCollection
.Escape(FullPath));
721
return Create(
ProjectCollection
.GlobalProjectCollection, Project.DefaultNewProjectTemplateOptions);
730
return Create(
ProjectCollection
.GlobalProjectCollection, projectFileOptions);
737
public static ProjectRootElement Create(
ProjectCollection
projectCollection)
743
/// Initialize an in-memory, empty ProjectRootElement instance that can be saved later using the specified <see cref="
ProjectCollection
"/> and <see cref="NewProjectFileOptions"/>.
745
public static ProjectRootElement Create(
ProjectCollection
projectCollection, NewProjectFileOptions projectFileOptions)
758
return Create(path,
ProjectCollection
.GlobalProjectCollection, Project.DefaultNewProjectTemplateOptions);
767
return Create(path,
ProjectCollection
.GlobalProjectCollection, newProjectFileOptions);
774
public static ProjectRootElement Create(string path,
ProjectCollection
projectCollection)
783
public static ProjectRootElement Create(string path,
ProjectCollection
projectCollection, NewProjectFileOptions newProjectFileOptions)
803
return Create(xmlReader,
ProjectCollection
.GlobalProjectCollection, preserveFormatting: false);
811
public static ProjectRootElement Create(XmlReader xmlReader,
ProjectCollection
projectCollection)
821
public static ProjectRootElement Create(XmlReader xmlReader,
ProjectCollection
projectCollection, bool preserveFormatting)
836
return Open(path,
ProjectCollection
.GlobalProjectCollection);
844
public static ProjectRootElement Open(string path,
ProjectCollection
projectCollection)
854
public static ProjectRootElement Open(string path,
ProjectCollection
projectCollection, bool? preserveFormatting)
878
return TryOpen(path,
ProjectCollection
.GlobalProjectCollection);
886
/// <param name="projectCollection">The <see cref="
ProjectCollection
"/> to load the project into.</param>
892
public static ProjectRootElement TryOpen(string path,
ProjectCollection
projectCollection)
902
/// <param name="projectCollection">The <see cref="
ProjectCollection
"/> to load the project into.</param>
911
public static ProjectRootElement TryOpen(string path,
ProjectCollection
projectCollection, bool? preserveFormatting)
1757
return new ProjectRootElement(document,
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache);
Construction\Solution\SolutionProjectGenerator.cs (1)
22
using ProjectCollection = Microsoft.Build.Evaluation.
ProjectCollection
;
Definition\Project.cs (26)
109
internal Project(
ProjectCollection
projectCollection, ProjectLink link)
134
: this(ProjectRootElement.Create(
ProjectCollection
.GlobalProjectCollection, newProjectFileOptions))
143
public Project(
ProjectCollection
projectCollection)
153
public Project(
ProjectCollection
projectCollection, NewProjectFileOptions newProjectFileOptions)
166
public Project(IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection)
180
public Project(IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection, NewProjectFileOptions newProjectFileOptions)
209
: this(xml, globalProperties, toolsVersion,
ProjectCollection
.GlobalProjectCollection)
224
public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection)
241
public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings)
259
public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings)
264
private Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings,
303
: this(xmlReader, globalProperties, toolsVersion,
ProjectCollection
.GlobalProjectCollection)
318
public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection)
335
public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings)
353
public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings)
358
private Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings,
396
: this(projectFile, globalProperties, toolsVersion,
ProjectCollection
.GlobalProjectCollection)
412
public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection)
430
public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings)
449
public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings)
454
private Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings,
500
options.ProjectCollection ??
ProjectCollection
.GlobalProjectCollection,
519
options.ProjectCollection ??
ProjectCollection
.GlobalProjectCollection,
538
options.ProjectCollection ??
ProjectCollection
.GlobalProjectCollection,
575
public
ProjectCollection
ProjectCollection { get; }
1973
private
ProjectCollection
ProjectCollection => Owner.ProjectCollection;
Definition\ProjectCollection.cs (4)
100
private static
ProjectCollection
s_globalProjectCollection;
301
/// <param name="useAsynchronousLogging">If set to true, asynchronous logging will be used. <see cref="
ProjectCollection
.Dispose()"/> has to called to clear resources used by async logging.</param>
426
public static
ProjectCollection
GlobalProjectCollection
434
var
local = new ProjectCollection(null, null, null, ToolsetDefinitionLocations.Default,
Definition\ProjectCollectionChangedEventArgs.cs (9)
11
/// Properties or other mutable state associated with a <see cref="
ProjectCollection
"/>.
16
/// The <see cref="
ProjectCollection
.DefaultToolsVersion"/> property changed.
36
/// The <see cref="
ProjectCollection
.IsBuildEnabled"/> property changed.
41
/// The <see cref="
ProjectCollection
.OnlyLogCriticalEvents"/> property changed.
46
/// The <see cref="
ProjectCollection
.HostServices"/> property changed.
51
/// The <see cref="
ProjectCollection
.DisableMarkDirty"/> property changed.
56
/// The <see cref="
ProjectCollection
.SkipEvaluation"/> property changed.
62
/// Event arguments for the <see cref="
ProjectCollection
.ProjectCollectionChanged"/> event.
75
/// 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"/>.
36
public
ProjectCollection
ProjectCollection { get; set; }
Definition\Toolset.cs (4)
216
public Toolset(string toolsVersion, string toolsPath,
ProjectCollection
projectCollection, string msbuildOverrideTasksPath)
232
public Toolset(string toolsVersion, string toolsPath, IDictionary<string, string> buildProperties,
ProjectCollection
projectCollection, string msbuildOverrideTasksPath)
249
public Toolset(string toolsVersion, string toolsPath, IDictionary<string, string> buildProperties,
ProjectCollection
projectCollection, IDictionary<string, SubToolset> subToolsets, string msbuildOverrideTasksPath)
349
internal Toolset(string toolsVersion, string toolsPath, PropertyDictionary<ProjectPropertyInstance> buildProperties,
ProjectCollection
projectCollection, DirectoryGetFiles getFiles, LoadXmlFromPath loadXmlFromPath, string msbuildOverrideTasksPath, DirectoryExists directoryExists)
Evaluation\Evaluator.cs (2)
1121
private static readonly string CachedFileVersion =
ProjectCollection
.Version.ToString();
1139
SetBuiltInProperty(ReservedPropertyNames.semanticVersion,
ProjectCollection
.DisplayVersion);
Evaluation\ProjectChangedEventArgs.cs (1)
12
/// 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)
47
private readonly
ProjectCollection
_projectCollection;
57
ProjectCollection
projectCollection,
598
ProjectCollection
projectCollection)
Graph\ProjectGraph.cs (19)
38
/// <param name="projectCollection">The <see cref="
ProjectCollection
" /> context for parsing.</param>
58
ProjectCollection
projectCollection);
116
: this(new ProjectGraphEntryPoint(entryProjectFile).AsEnumerable(),
ProjectCollection
.GlobalProjectCollection, null)
129
: this(ProjectGraphEntryPoint.CreateEnumerable(entryProjectFiles),
ProjectCollection
.GlobalProjectCollection, null)
145
public ProjectGraph(string entryProjectFile,
ProjectCollection
projectCollection)
162
public ProjectGraph(IEnumerable<string> entryProjectFiles,
ProjectCollection
projectCollection)
188
public 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)
243
public ProjectGraph(string entryProjectFile, IDictionary<string, string> globalProperties,
ProjectCollection
projectCollection)
264
public ProjectGraph(IEnumerable<string> entryProjectFiles, IDictionary<string, string> globalProperties,
ProjectCollection
projectCollection)
277
: this(entryPoint.AsEnumerable(),
ProjectCollection
.GlobalProjectCollection, null)
289
: this(entryPoints,
ProjectCollection
.GlobalProjectCollection, null)
304
public ProjectGraph(ProjectGraphEntryPoint entryPoint,
ProjectCollection
projectCollection)
335
ProjectCollection
projectCollection,
375
ProjectCollection
projectCollection,
419
ProjectCollection
projectCollection,
838
ProjectCollection
projectCollection)
852
ProjectCollection
projectCollection,
Graph\ProjectInterpretation.cs (1)
77
public IEnumerable<ReferenceInfo> GetReferences(ProjectGraphNode projectGraphNode,
ProjectCollection
projectCollection, ProjectGraph.ProjectInstanceFactoryFunc projectInstanceFactory)
Instance\ProjectInstance.cs (13)
220
: this(projectFile, globalProperties, toolsVersion,
ProjectCollection
.GlobalProjectCollection)
236
public ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection)
254
public ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection)
271
internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection, EvaluationContext context, bool interactive = false)
294
private ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection,
325
: this(xml, null, null,
ProjectCollection
.GlobalProjectCollection)
341
public ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
projectCollection)
360
public ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection)
512
private ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection,
587
internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, int visualStudioVersionFromSolution,
ProjectCollection
projectCollection, ISdkResolverService sdkResolverService, int submissionId)
602
internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ILoggingService loggingService, int visualStudioVersionFromSolution,
ProjectCollection
projectCollection, ISdkResolverService sdkResolverService, int submissionId)
866
options.ProjectCollection ??
ProjectCollection
.GlobalProjectCollection,
885
options.ProjectCollection ??
ProjectCollection
.GlobalProjectCollection,
ObjectModelRemoting\ExternalProjectsProvider.cs (2)
29
public virtual void Disconnected(
ProjectCollection
collection) { }
38
public static void SetExternalProjectsProvider(
ProjectCollection
collection, ExternalProjectsProvider link)
ObjectModelRemoting\LinkedObjectFactory.cs (4)
33
private LinkedObjectsFactory(
ProjectCollection
collection)
42
public static LinkedObjectsFactory Get(
ProjectCollection
collection)
68
public
ProjectCollection
Collection { get; }
73
public static IReadOnlyCollection<Project> GetLocalProjects(
ProjectCollection
collection, string projectFile = null)
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
2662
ProjectCollection
.DisplayVersion, NativeMethodsShared.FrameworkName);
Microsoft.Build.Engine.OM.UnitTests (186)
Construction\ProjectFormatting_Tests.cs (14)
36
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
113
ProjectCollection
.GlobalProjectCollection,
149
ProjectCollection
.GlobalProjectCollection,
185
ProjectCollection
.GlobalProjectCollection,
216
ProjectCollection
.GlobalProjectCollection,
246
ProjectCollection
.GlobalProjectCollection,
280
ProjectCollection
.GlobalProjectCollection,
319
ProjectCollection
.GlobalProjectCollection,
362
ProjectCollection
.GlobalProjectCollection,
389
ProjectCollection
.GlobalProjectCollection,
416
ProjectRootElement xml = ProjectRootElement.Open(file,
ProjectCollection
.GlobalProjectCollection,
444
ProjectCollection
.GlobalProjectCollection,
471
ProjectRootElement xml = ProjectRootElement.Open(file,
ProjectCollection
.GlobalProjectCollection,
694
var project = new Project(ProjectRootElement.Open(file,
ProjectCollection
.GlobalProjectCollection));
Construction\ProjectMetadataElement_Tests.cs (12)
559
ProjectCollection
.GlobalProjectCollection,
603
ProjectCollection
.GlobalProjectCollection,
677
ProjectCollection
.GlobalProjectCollection,
720
ProjectCollection
.GlobalProjectCollection,
806
ProjectCollection
.GlobalProjectCollection,
869
ProjectCollection
.GlobalProjectCollection,
938
ProjectCollection
.GlobalProjectCollection,
981
ProjectCollection
.GlobalProjectCollection,
1053
ProjectCollection
.GlobalProjectCollection,
1093
ProjectCollection
.GlobalProjectCollection,
1164
ProjectCollection
.GlobalProjectCollection,
1211
ProjectCollection
.GlobalProjectCollection,
Construction\ProjectRootElement_Tests.cs (11)
21
using ProjectCollection = Microsoft.Build.Evaluation.
ProjectCollection
;
527
using
ProjectCollection
projectCollection = new ProjectCollection();
1032
using
var
collection = new ProjectCollection();
1103
using
var
collection = new ProjectCollection();
1291
using (
var
projectCollection = new ProjectCollection())
1593
var
projectCollection1 = env.CreateProjectCollection().Collection;
1594
var
projectCollection2 = env.CreateProjectCollection().Collection;
1733
var
projectCollection = env.CreateProjectCollection().Collection;
1919
using
var
collection = new ProjectCollection();
1935
using
var
projectCollection = new ProjectCollection();
1953
using
var
collection = new ProjectCollection();
Construction\ProjectTargetElement_Tests.cs (1)
357
using
ProjectCollection
collection = new ProjectCollection();
Construction\WhiteSpacePreservation_Tests.cs (1)
472
var projectElement = ProjectRootElement.Open(file,
ProjectCollection
.GlobalProjectCollection, true);
Definition\DefinitionEditing_Tests.cs (6)
692
ProjectCollection
.Escape(paths[0]),
693
ProjectCollection
.Escape(paths[1]));
810
ProjectCollection
.Escape(paths[0]),
811
ProjectCollection
.Escape(paths[1]));
1113
ProjectCollection
.Escape(Path.Combine(directory, "i2.xxx")));
1410
ProjectCollection
.Escape(Path.Combine(directory, "i2.xxx")));
Definition\Project_Tests.cs (40)
54
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
62
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
63
ProjectCollection
.GlobalProjectCollection.Count.ShouldBe(0);
65
IDictionary<string, string> globalProperties =
ProjectCollection
.GlobalProjectCollection.GlobalProperties;
68
ProjectCollection
.GlobalProjectCollection.RemoveGlobalProperty(propertyName);
71
ProjectCollection
.GlobalProjectCollection.GlobalProperties.ShouldBeEmpty();
136
using
ProjectCollection
collection = new ProjectCollection();
164
using
ProjectCollection
collection = new ProjectCollection();
372
using
var
collection = new ProjectCollection();
404
using
ProjectCollection
collection = new ProjectCollection();
434
using
ProjectCollection
collection = new ProjectCollection();
470
using
ProjectCollection
collection = new ProjectCollection();
507
using
ProjectCollection
collection = new ProjectCollection();
991
using
ProjectCollection
collection = new ProjectCollection(initial, null, ToolsetDefinitionLocations.ConfigurationFile);
1232
using
var
collection = new ProjectCollection();
1262
using
var
collection = new ProjectCollection();
1290
using
var
collection = new ProjectCollection();
1322
using
var
collection = new ProjectCollection(projectCollectionGlobalProperties);
1444
using (
var
projectCollection = new ProjectCollection())
1509
using (
var
projectCollection = new ProjectCollection())
1595
using (
var
projectCollection = new ProjectCollection())
2058
ProjectCollection
.GlobalProjectCollection.RegisterLogger(mockLogger);
2442
ProjectCollection
collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None);
2466
ProjectCollection
collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None);
2536
ProjectCollection
collection = new ProjectCollection(globalProperties, loggers, ToolsetDefinitionLocations.None);
3252
var
projectCollection = env.CreateProjectCollection().Collection;
3280
var
projectCollection = env.CreateProjectCollection().Collection;
3572
using (
var
projectCollection = new ProjectCollection())
3766
var
projectCollection = env.CreateProjectCollection().Collection;
3842
using (
var
projectCollection = new ProjectCollection())
3862
var
projectCollection = env.CreateProjectCollection().Collection;
3894
using (
ProjectCollection
collection = new ProjectCollection())
3943
using (
ProjectCollection
collection = new ProjectCollection())
3987
using (
ProjectCollection
collection = new ProjectCollection())
4034
using (
ProjectCollection
collection = new ProjectCollection())
4074
using (
ProjectCollection
collection = new ProjectCollection())
4117
using (
ProjectCollection
collection = new ProjectCollection())
4160
using (
ProjectCollection
collection = new ProjectCollection())
4198
using (
ProjectCollection
collection = new ProjectCollection())
4263
using
ProjectCollection
collection = new ProjectCollection();
Definition\ProjectCollection_Tests.cs (90)
36
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
44
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
45
Assert.Equal(0,
ProjectCollection
.GlobalProjectCollection.Count);
47
IDictionary<string, string> globalProperties =
ProjectCollection
.GlobalProjectCollection.GlobalProperties;
50
ProjectCollection
.GlobalProjectCollection.RemoveGlobalProperty(propertyName);
53
Assert.Empty(
ProjectCollection
.GlobalProjectCollection.GlobalProperties);
72
Project project2 =
ProjectCollection
.GlobalProjectCollection.LoadProject(path);
96
Assert.Equal(0,
ProjectCollection
.GlobalProjectCollection.Count);
101
Project project2 =
ProjectCollection
.GlobalProjectCollection.LoadProject(path);
124
using
ProjectCollection
collection = new ProjectCollection();
150
Project project2 =
ProjectCollection
.GlobalProjectCollection.LoadProject("c:\\x");
166
using
var
collection = new ProjectCollection();
197
using
ProjectCollection
collection = new ProjectCollection();
228
using
ProjectCollection
collection = new ProjectCollection();
251
using
var
collection = new ProjectCollection();
267
using
var
collection = new ProjectCollection();
281
using
var
collection = new ProjectCollection();
302
Assert.Equal(0,
ProjectCollection
.GlobalProjectCollection.Count);
304
ProjectCollection
.GlobalProjectCollection.LoadProject(path);
306
Assert.Equal(1,
ProjectCollection
.GlobalProjectCollection.Count);
325
using
var
collection = new ProjectCollection();
346
using
ProjectCollection
collection1 = new ProjectCollection();
352
using
ProjectCollection
collection2 = new ProjectCollection();
390
ProjectCollection
.GlobalProjectCollection.SetGlobalProperty("Configuration", "Debug");
397
ProjectCollection
.GlobalProjectCollection.LoadProject("c:\\1", globals, null);
399
Assert.Equal(1,
ProjectCollection
.GlobalProjectCollection.Count);
425
Assert.True(ReferenceEquals(project1,
ProjectCollection
.GlobalProjectCollection.LoadProject(projectDirectory, globalProperties1, ObjectModelHelpers.MSBuildDefaultToolsVersion)));
426
Assert.True(ReferenceEquals(project2,
ProjectCollection
.GlobalProjectCollection.LoadProject(projectDirectory, globalProperties2, ObjectModelHelpers.MSBuildDefaultToolsVersion)));
428
List<Project> projects = Helpers.MakeList(
ProjectCollection
.GlobalProjectCollection.LoadedProjects);
431
Assert.Equal(2,
ProjectCollection
.GlobalProjectCollection.Count);
447
ProjectCollection
.GlobalProjectCollection.SetGlobalProperty("Configuration", "Debug");
458
Project project2 =
ProjectCollection
.GlobalProjectCollection.LoadProject("c:\\1", project2Globals, null);
464
ProjectCollection
.GlobalProjectCollection.SetGlobalProperty("Platform", "X64");
473
ProjectCollection
.GlobalProjectCollection.SetGlobalProperty("Configuration", "Debug2");
474
ProjectCollection
.GlobalProjectCollection.SetGlobalProperty("Platform", "X86");
480
ProjectCollection
.GlobalProjectCollection.SetGlobalProperty("MyProperty", "MyValue2");
513
Assert.True(ReferenceEquals(project1,
ProjectCollection
.GlobalProjectCollection.LoadProject("c:\\1", null, "2.0")));
514
Assert.True(ReferenceEquals(project2,
ProjectCollection
.GlobalProjectCollection.LoadProject("c:\\1", null, ObjectModelHelpers.MSBuildDefaultToolsVersion)));
534
Project project2 =
ProjectCollection
.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null);
556
Project project2 =
ProjectCollection
.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null);
568
using
ProjectCollection
collection = new ProjectCollection();
585
using
var
collection = new ProjectCollection();
612
using
var
collection = new ProjectCollection();
634
using
var
collection = new ProjectCollection();
679
using
var
collection = new ProjectCollection();
700
Assert.Equal(1,
ProjectCollection
.GlobalProjectCollection.Count);
702
ProjectCollection
.GlobalProjectCollection.UnloadProject(project); // should not throw
704
Assert.Equal(0,
ProjectCollection
.GlobalProjectCollection.Count);
705
Assert.Empty(Helpers.MakeList(
ProjectCollection
.GlobalProjectCollection.LoadedProjects));
718
ProjectCollection
.GlobalProjectCollection.UnloadProject(project);
719
ProjectCollection
.GlobalProjectCollection.UnloadProject(xml);
726
ProjectCollection
.GlobalProjectCollection.LoadProject(xml.FullPath);
745
ProjectCollection
.GlobalProjectCollection.UnloadProject(project.Xml);
767
ProjectCollection
.GlobalProjectCollection.UnloadProject(importProject);
772
ProjectCollection
.GlobalProjectCollection.UnloadProject(importedXml);
792
Assert.Equal(1,
ProjectCollection
.GlobalProjectCollection.Count);
794
Assert.True(ReferenceEquals(project, Helpers.MakeList(
ProjectCollection
.GlobalProjectCollection.LoadedProjects)[0]));
796
ProjectCollection
.GlobalProjectCollection.UnloadProject(project); // should not throw
798
Assert.Equal(0,
ProjectCollection
.GlobalProjectCollection.Count);
811
ProjectCollection
.GlobalProjectCollection.SetGlobalProperty("Configuration", "Debug");
838
using
ProjectCollection
collection = new ProjectCollection();
878
using
var
collection = new ProjectCollection();
921
using
var
collection = new ProjectCollection();
951
using
var
collection = new ProjectCollection();
971
using
var
collection = new ProjectCollection();
995
using
var
collection = new ProjectCollection();
1019
ProjectCollection
.GlobalProjectCollection.AddToolset(null);
1029
using
var
collection = new ProjectCollection();
1051
using
var
collection = new ProjectCollection();
1063
ProjectCollection
.GlobalProjectCollection.RemoveToolset(null);
1075
ProjectCollection
.GlobalProjectCollection.RemoveToolset(String.Empty);
1091
using
var
collection = new ProjectCollection();
1111
using
var
collection = new ProjectCollection(null, null, ToolsetDefinitionLocations.Registry);
1123
ProjectCollection
.GlobalProjectCollection.DefaultToolsVersion = String.Empty;
1135
ProjectCollection
.GlobalProjectCollection.DefaultToolsVersion = "nonexistent";
1145
using
var
collection = new ProjectCollection();
1174
using
var
collection = new ProjectCollection();
1266
using
var
collection = new ProjectCollection();
1275
using
var
collection2 = new ProjectCollection();
1284
using
var
collection3 = new ProjectCollection();
1293
using
var
collection4 = new ProjectCollection();
1302
using
var
collection5 = new ProjectCollection();
1312
using
var
collection6 = new ProjectCollection();
1320
using
var
collection7 = new ProjectCollection();
1332
using
var
collection = new ProjectCollection();
1391
using
var
collection = new ProjectCollection();
1453
ProjectCollection
.Version.Major.ShouldBe(expectedVersion.Major);
1454
ProjectCollection
.Version.Minor.ShouldBe(expectedVersion.Minor);
1481
private static void VerifyProjectCollectionEvents(
ProjectCollection
collection, bool expectEventRaised, string propertyValue)
1498
Assert.Equal(
ProjectCollection
.Unescape(propertyValue), property.EvaluatedValue);
Definition\ProjectItem_Tests.cs (4)
833
using
ProjectCollection
projectCollection = new ProjectCollection();
1152
using (
var
projectCollection = new ProjectCollection())
1172
using (
var
projectCollection = new ProjectCollection())
3747
using (
var
projectCollection = new ProjectCollection())
Definition\ProjectProperty_Tests.cs (1)
194
Project project = new Project(globalProperties, null,
ProjectCollection
.GlobalProjectCollection);
Instance\ProjectInstance_Tests.cs (4)
418
using
var
pc = new ProjectCollection();
454
using
var
pc = new ProjectCollection();
496
using
var
pc = new ProjectCollection();
1030
using ProjectFromString projectFromString = new(content, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion,
ProjectCollection
.GlobalProjectCollection);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (1)
469
public static void VerifyProjectCollectionLinks(this
ProjectCollection
collection, string path, int expectedLocal, int expectedLinks)
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
183
public
ProjectCollection
Collection { get; }
Microsoft.Build.Engine.UnitTests (227)
BackEnd\BuildManager_Logging_Tests.cs (1)
60
private readonly
ProjectCollection
_projectCollection;
BackEnd\BuildManager_Tests.cs (13)
58
private readonly
ProjectCollection
_projectCollection;
344
using
var
projectCollection = new ProjectCollection();
896
using
var
projectCollection = new ProjectCollection();
2041
using
var
projectCollection2 = new ProjectCollection();
2100
using
var
projectCollection = new ProjectCollection();
3130
new BuildParameters(
ProjectCollection
.GlobalProjectCollection)
3208
new BuildParameters(
ProjectCollection
.GlobalProjectCollection)
3293
new BuildParameters(
ProjectCollection
.GlobalProjectCollection)
3576
private ProjectInstance CreateProjectInstance(string contents, string toolsVersion,
ProjectCollection
projectCollection, bool deleteTempProject)
3585
private ProjectGraph CreateProjectGraph(string contents,
ProjectCollection
projectCollection)
3596
private Project CreateProject(string contents, string toolsVersion,
ProjectCollection
projectCollection, bool deleteTempProject)
3618
private static ProjectInstance GenerateDummyProjects(string shutdownProjectDirectory, int parallelProjectCount,
ProjectCollection
projectCollection)
3689
using (
var
collection = new ProjectCollection())
BackEnd\BuildRequestConfiguration_Tests.cs (4)
278
using
var
collection = new ProjectCollection();
356
using
var
collection = new ProjectCollection();
461
using
var
collection = new ProjectCollection();
557
var
projectCollection = _env.CreateProjectCollection().Collection;
BackEnd\ConfigurationMetadata_Tests.cs (1)
29
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
BackEnd\LoggingService_Tests.cs (11)
338
LoggerDescription description = CreateLoggerDescription(className, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
355
LoggerDescription configurableDescription = CreateLoggerDescription(configurableClassName, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
356
LoggerDescription distributedDescription = CreateLoggerDescription(distributedClassName, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
392
LoggerDescription configurableDescriptionA = CreateLoggerDescription(configurableClassNameA, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
393
LoggerDescription configurableDescriptionB = CreateLoggerDescription(configurableClassNameB, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
437
LoggerDescription description = CreateLoggerDescription(className, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
465
LoggerDescription description = CreateLoggerDescription(className, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
530
LoggerDescription description = CreateLoggerDescription(className, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
553
loggerDescriptions.Add(CreateLoggerDescription(configurableClassName, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true));
554
loggerDescriptions.Add(CreateLoggerDescription(distributedClassName, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true));
615
LoggerDescription description = CreateLoggerDescription(className, typeof(
ProjectCollection
).GetTypeInfo().Assembly.FullName, true);
BackEnd\MSBuild_Tests.cs (3)
27
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
32
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
1558
using
ProjectCollection
pc = new ProjectCollection(null, new List<ILogger> { logger }, null, ToolsetDefinitionLocations.Default, 2, false);
BackEnd\SdkResultOutOfProc_Tests.cs (2)
46
private readonly
ProjectCollection
_projectCollection;
211
private ProjectInstance CreateProjectInstance(string projectPath, string toolsVersion,
ProjectCollection
projectCollection)
BackEnd\TargetEntry_Tests.cs (1)
856
using
ProjectCollection
collection = new ProjectCollection();
BackEnd\TargetUpToDateChecker_Tests.cs (2)
40
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
629
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
BackEnd\TaskBuilder_Tests.cs (1)
147
ProjectCollection
collection = new ProjectCollection();
BackEnd\TaskRegistry_Tests.cs (2)
2183
? new TaskRegistry(toolset,
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache)
2184
: new TaskRegistry(
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache);
BinaryLogger_Tests.cs (2)
122
using (
ProjectCollection
collection = new())
218
using (
ProjectCollection
collection = new())
ChangeWaves_Tests.cs (1)
61
using
ProjectCollection
collection = new ProjectCollection();
Construction\SolutionFilter_Tests.cs (2)
40
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
128
ProjectCollection
projectCollection = testEnvironment.CreateProjectCollection().Collection;
Construction\SolutionProjectGenerator_Tests.cs (10)
24
using ProjectCollection = Microsoft.Build.Evaluation.
ProjectCollection
;
55
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
442
Toolset t =
ProjectCollection
.GlobalProjectCollection.GetToolset(instances[0].ToolsVersion);
1898
Assert.Empty(
ProjectCollection
.GlobalProjectCollection.LoadedProjects);
1902
Assert.Empty(
ProjectCollection
.GlobalProjectCollection.LoadedProjects);
1920
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
1946
using
ProjectCollection
collection = new ProjectCollection();
1955
Assert.Empty(
ProjectCollection
.GlobalProjectCollection.LoadedProjects);
1960
Assert.Empty(
ProjectCollection
.GlobalProjectCollection.LoadedProjects);
2299
using
ProjectCollection
collection = new ProjectCollection();
Definition\Project_Internal_Tests.cs (6)
42
using
ProjectCollection
collection = new ProjectCollection();
96
Project project2 =
ProjectCollection
.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null);
236
var
projectCollection = env.CreateProjectCollection().Collection;
273
ProjectCollection
projectCollection = testEnvironment.CreateProjectCollection().Collection;
301
ProjectCollection
projectCollection = testEnvironment.CreateProjectCollection().Collection;
329
ProjectCollection
projectCollection = testEnvironment.CreateProjectCollection().Collection;
Definition\ProjectEvaluationContext_Tests.cs (5)
104
var
projectCollection = _env.CreateProjectCollection().Collection;
146
var
projectCollection = _env.CreateProjectCollection().Collection;
201
var
collection = _env.CreateProjectCollection().Collection;
241
var
collection = _env.CreateProjectCollection().Collection;
986
var
collection = _env.CreateProjectCollection().Collection;
Definition\Toolset_Tests.cs (10)
84
using
var
collection = new ProjectCollection();
171
Toolset t =
ProjectCollection
.GlobalProjectCollection.GetToolset("4.0");
198
using
ProjectCollection
projectCollection = new ProjectCollection();
232
using
ProjectCollection
projectCollection = new ProjectCollection();
266
using
ProjectCollection
projectCollection = new ProjectCollection(globalProperties);
288
using
ProjectCollection
projectCollection = new ProjectCollection();
310
using
ProjectCollection
projectCollection = new ProjectCollection();
338
using
ProjectCollection
projectCollection = new ProjectCollection(globalProperties);
454
using
ProjectCollection
projectCollection = new ProjectCollection(globalProperties);
507
using
ProjectCollection
projectCollection = new ProjectCollection(globalPropertiesForProjectCollection);
Definition\ToolsetConfigurationReader_Tests.cs (1)
665
using
var
collection = new ProjectCollection();
Definition\ToolsVersion_Tests.cs (31)
34
using
ProjectCollection
e = new ProjectCollection();
37
using
var
collection = new ProjectCollection();
79
using
ProjectCollection
e = new ProjectCollection();
80
using
var
collection = new ProjectCollection();
99
using
ProjectCollection
e = new ProjectCollection();
100
using
var
collection = new ProjectCollection();
118
using
ProjectCollection
e = new ProjectCollection();
119
using
var
collection = new ProjectCollection();
138
using
ProjectCollection
e = new ProjectCollection();
139
using
var
collection = new ProjectCollection();
158
using
var
collection = new ProjectCollection();
170
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext,
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache);
191
using
ProjectCollection
p = new ProjectCollection();
197
using
var
colleciton = new ProjectCollection();
200
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext,
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache);
216
using
ProjectCollection
p = new ProjectCollection();
223
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext,
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache);
237
using
ProjectCollection
p = new ProjectCollection();
303
using
ProjectCollection
p = new ProjectCollection();
340
using
ProjectCollection
p = new ProjectCollection();
376
using
ProjectCollection
p = new ProjectCollection();
406
ProjectCollection
p = new ProjectCollection();
438
using
ProjectCollection
p = new ProjectCollection();
545
using
ProjectCollection
p = new ProjectCollection();
584
using
ProjectCollection
p = new ProjectCollection();
625
using
ProjectCollection
p = new ProjectCollection();
695
using
ProjectCollection
p = new ProjectCollection();
781
using
ProjectCollection
p = new ProjectCollection();
892
using
ProjectCollection
p = new ProjectCollection();
925
using
var
collection = new ProjectCollection();
938
TaskRegistry taskRegistry = (TaskRegistry)t.GetTaskRegistry(loggingContext,
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache);
EscapingInProjects_Tests.cs (2)
81
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
649
using
var
collection = new ProjectCollection();
Evaluation\EvaluationLogging_Tests.cs (3)
28
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
37
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
75
var
collection = env.CreateProjectCollection().Collection;
Evaluation\Evaluator_Tests.cs (44)
40
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
49
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
65
using
ProjectCollection
collection = new(new Dictionary<string, string>(), [logger], ToolsetDefinitionLocations.Default);
514
using
ProjectCollection
pc = new ProjectCollection();
557
using
ProjectCollection
pc = new ProjectCollection();
602
using
ProjectCollection
pc = new ProjectCollection();
645
using
ProjectCollection
pc = new ProjectCollection();
691
using
ProjectCollection
pc = new ProjectCollection();
735
using
ProjectCollection
pc = new ProjectCollection();
781
using
ProjectCollection
pc = new ProjectCollection();
920
using
ProjectCollection
pc = new ProjectCollection();
1005
using
ProjectCollection
pc = new ProjectCollection();
1067
ProjectCollection
pc = new ProjectCollection();
1362
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
2441
using
var
collection = new ProjectCollection();
2475
using
var
collection = new ProjectCollection();
2493
using
var
collection = new ProjectCollection();
2551
using
var
collection = new ProjectCollection();
2570
using
var
collection = new ProjectCollection();
2626
using
var
collection = new ProjectCollection();
2645
using
var
collection = new ProjectCollection();
2683
using
var
collection = new ProjectCollection();
2702
using
var
collection = new ProjectCollection();
2746
msbuildFileVersionProperty.ShouldBe(
ProjectCollection
.Version.ToString());
2747
ProjectCollection
.Version.ToString().ShouldStartWith(msbuildVersionProperty,
2750
msbuildSemanticVersionProperty.ShouldBe(
ProjectCollection
.DisplayVersion);
2751
ProjectCollection
.DisplayVersion.ShouldStartWith(msbuildVersionProperty,
3100
using
var
collection = new ProjectCollection();
3851
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */);
3917
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */);
3969
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */);
4021
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */);
4080
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no global properties */);
4138
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no project collection global properties */);
4198
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no project collection global properties */);
4250
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no project collection global properties */);
4297
using
ProjectCollection
fakeProjectCollection = GetProjectCollectionWithFakeToolset(null /* no project collection global properties */);
4333
using
var
collection = new ProjectCollection();
4695
using
var
collection = new ProjectCollection(
4983
using
ProjectCollection
fakeProjectCollection =
5023
using
ProjectCollection
pc = new ProjectCollection();
5064
using
ProjectCollection
pc = new();
5124
private
ProjectCollection
GetProjectCollectionWithFakeToolset(IDictionary<string, string> globalProperties)
5126
ProjectCollection
projectCollection = new ProjectCollection(globalProperties);
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (15)
28
using
var
collection = new ProjectCollection();
54
using
var
projColln = GetProjectCollection();
304
using
var
projColln = GetProjectCollection();
407
using
var
projColln = GetProjectCollection();
499
using
var
projColln = GetProjectCollection();
576
using
var
projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 });
637
using
var
projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 });
707
using
var
projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 });
772
using
var
projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 });
831
using
var
projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 });
867
using
var
projectCollection = GetProjectCollection();
923
using
var
projColln = GetProjectCollection();
974
private
ProjectCollection
GetProjectCollection(IDictionary<string, string> globalProperties = null)
976
ProjectCollection
projColln;
1058
using
var
xmlReader = new ProjectCollection();
Evaluation\ItemEvaluation_Tests.cs (2)
30
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
39
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
Evaluation\Preprocessor_Tests.cs (1)
37
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
Evaluation\ProjectCollection_Tests.cs (2)
17
using
var
collectionWithDefaultCache = new ProjectCollection();
25
using
var
collectionWithSimpleCache = new ProjectCollection();
Evaluation\ProjectRootElementCache_Tests.cs (8)
30
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
40
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
52
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache.Get("c:\\foo", (p, c) => null, true, false);
63
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache.Get("c:\\foo", (p, c) => ProjectRootElement.Create("c:\\bar"), true, false);
74
ProjectRootElement projectRootElement2 =
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache.Get(rootedPath, (p, c) => { throw new InvalidOperationException(); }, true, false);
91
projectRootElement =
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache.Get(projectPath, (p, c) => { throw new InvalidOperationException(); }, true, false);
95
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache.DiscardStrongReferences();
99
Assert.Null(
ProjectCollection
.GlobalProjectCollection.ProjectRootElementCache.TryGet(projectPath));
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
366
var
pc = _env.CreateProjectCollection().Collection;
475
ProjectCollection
projectCollection = _env.CreateProjectCollection().Collection;
Evaluation\SdkResultEvaluation_Tests.cs (1)
27
private
ProjectCollection
_projectCollection;
Evaluation\SimpleProjectRootElementCache_Tests.cs (2)
21
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
27
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
29
using
var
projectCollection = new ProjectCollection();
56
using
var
projectCollection = new ProjectCollection(ToolsetDefinitionLocations.ConfigurationFile);
EvaluationProfiler_Tests.cs (2)
279
using (
var
projectCollection = new ProjectCollection())
302
private Project CreateProject(string contents, string toolsVersion,
ProjectCollection
projectCollection)
FixPathOnUnix_Tests.cs (1)
44
using
var
projColln = new ProjectCollection();
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
439
ProjectCollection
projectCollection = testEnvironment.CreateProjectCollection().Collection;
Graph\ProjectGraph_Tests.cs (3)
107
ProjectCollection
.GlobalProjectCollection,
209
ProjectCollection
.GlobalProjectCollection,
360
var
collection = _env.CreateProjectCollection().Collection;
Graph\ResultCacheBasedBuilds_Tests.cs (1)
305
var
collection = _env.CreateProjectCollection().Collection;
Instance\HostServices_Tests.cs (7)
32
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
408
ProjectCollection
.GlobalProjectCollection.HostServices = hostServices;
413
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
427
ProjectCollection
.GlobalProjectCollection.HostServices = hostServices;
433
ProjectCollection
.GlobalProjectCollection.UnloadProject(project1);
437
ProjectCollection
.GlobalProjectCollection.UnloadProject(project2);
508
ProjectCollection
.GlobalProjectCollection.LoadProject(
Instance\ProjectInstance_Internal_Tests.cs (16)
288
using ProjectRootElementFromString projectRootElementFromString = new("<Project></Project>",
ProjectCollection
.GlobalProjectCollection, false, false);
301
using
var
projectCollection = new ProjectCollection();
322
using
var
collection = new ProjectCollection();
356
using
var
collection = new ProjectCollection();
384
using
var
collection = new ProjectCollection();
425
using
var
collection = new ProjectCollection(projectCollectionGlobalProperties);
702
public delegate ProjectInstance ProjectInstanceFactory(string file, ProjectRootElement xml,
ProjectCollection
collection);
766
var
projectCollection = env.CreateProjectCollection().Collection;
859
using
ProjectCollection
projectCollection = new ProjectCollection();
893
ProjectCollection
projectCollection = testEnvironment.CreateProjectCollection().Collection;
921
ProjectCollection
projectCollection = testEnvironment.CreateProjectCollection().Collection;
958
private static ProjectInstance GetProjectInstance(string content, HostServices hostServices, IDictionary<string, string> globalProperties,
ProjectCollection
projectCollection, string toolsVersion = null)
968
using ProjectFromString projectFromString = new(content, globalProperties, toolsVersion ?? ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection ??
ProjectCollection
.GlobalProjectCollection);
995
private static ProjectInstance GetSampleProjectInstance(HostServices hostServices, IDictionary<string, string> globalProperties,
ProjectCollection
projectCollection, string toolsVersion = null)
1028
private static void CreateMockToolsetIfNotExists(string toolsVersion,
ProjectCollection
projectCollection)
1030
ProjectCollection
pc = projectCollection;
Utilities_Tests.cs (3)
13
using ProjectCollection = Microsoft.Build.Evaluation.
ProjectCollection
;
315
using
var
colletionX = new ProjectCollection();
316
using
var
colletionY = new ProjectCollection();
Microsoft.Build.Tasks.UnitTests (14)
AssignLinkMetadata_Tests.cs (1)
177
using
var
collection = new ProjectCollection();
CallTarget_Tests.cs (2)
21
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
26
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
CreateProperty_Tests.cs (2)
16
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
21
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
Exec_Tests.cs (2)
951
using
var
collection = new ProjectCollection(
1008
using
var
collection = new ProjectCollection(
MSBuild_Tests.cs (2)
29
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
34
ProjectCollection
.GlobalProjectCollection.UnloadAllProjects();
ResolveSDKReference_Tests.cs (5)
3811
using
ProjectCollection
pc = new ProjectCollection();
3954
using
ProjectCollection
pc = new ProjectCollection();
4063
using
ProjectCollection
pc = new ProjectCollection();
4160
using
ProjectCollection
pc = new ProjectCollection();
4329
using
ProjectCollection
pc = new ProjectCollection();
Microsoft.Build.UnitTests.Shared (21)
EngineTestEnvironment.cs (2)
217
using (
ProjectCollection
projectCollection = new ProjectCollection())
274
public
ProjectCollection
Collection { get; }
MockEngine.cs (1)
40
private readonly
ProjectCollection
_projectCollection = new ProjectCollection();
MockLogger.cs (2)
16
using ProjectCollection = Microsoft.Build.Evaluation.
ProjectCollection
;
448
typeof(
ProjectCollection
).GetTypeInfo().Assembly));
ObjectModelHelpers.cs (9)
139
public 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)
142
using (
var
collection = new ProjectCollection())
664
public static ProjectRootElement CreateInMemoryProjectRootElement([StringSyntax(StringSyntaxAttribute.Xml)] string projectContents,
ProjectCollection
collection = null, bool preserveFormatting = true)
705
public static Project CreateInMemoryProject(
ProjectCollection
projectCollection, string xml, params ILogger[] loggers)
719
ProjectCollection
projectCollection,
775
using
ProjectCollection
collection = new();
803
using
ProjectCollection
collection = new();
986
ProjectCollection
projectCollection = new ProjectCollection();
1750
ProjectCollection
projectCollection = null,
ProjectFromString.cs (7)
27
: this(s, globalProperties, toolsVersion,
ProjectCollection
.GlobalProjectCollection)
31
public ProjectFromString(string s, IDictionary<string, string> globalProperties, string toolsVersion,
ProjectCollection
collection, ProjectLoadSettings loadSettings = ProjectLoadSettings.Default)
36
public ProjectFromString(string s, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion,
ProjectCollection
projectCollection, ProjectLoadSettings loadSettings)
55
: this(s,
ProjectCollection
.GlobalProjectCollection)
59
public ProjectRootElementFromString(string s,
ProjectCollection
projectCollection)
64
public ProjectRootElementFromString(string s,
ProjectCollection
projectCollection, bool preserveFormatting)
71
public ProjectRootElementFromString(string s,
ProjectCollection
projectCollection, bool isExplicitlyLoaded, bool preserveFormatting)
Microsoft.Build.Utilities.UnitTests (11)
MuxLogger_Tests.cs (7)
58
BuildParameters parameters = new BuildParameters(
ProjectCollection
.GlobalProjectCollection);
95
using
ProjectCollection
projectCollection = new ProjectCollection();
105
using
var
collection = new ProjectCollection();
153
BuildParameters parameters = new BuildParameters(
ProjectCollection
.GlobalProjectCollection);
207
BuildParameters parameters = new BuildParameters(
ProjectCollection
.GlobalProjectCollection);
262
BuildParameters parameters = new BuildParameters(
ProjectCollection
.GlobalProjectCollection);
311
BuildParameters parameters = new BuildParameters(
ProjectCollection
.GlobalProjectCollection);
ToolLocationHelper_Tests.cs (4)
692
string tv12path = Path.Combine(
ProjectCollection
.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).ToolsPath, MSBuildExeName);
714
var toolsPath32 =
ProjectCollection
.GlobalProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion).Properties["MSBuildToolsPath32"];
3584
using
ProjectCollection
pc = new ProjectCollection();
3656
using
ProjectCollection
pc = new ProjectCollection();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Build\ProjectBuildManager.cs (3)
61
private MSB.Evaluation.
ProjectCollection
? _batchBuildProjectCollection;
82
string path, MSB.Evaluation.
ProjectCollection
? projectCollection, CancellationToken cancellationToken)
138
var
projectCollection = new MSB.Evaluation.ProjectCollection(
MSBuild (9)
XMake.cs (9)
836
using (
ProjectCollection
collection = new(globalProperties, loggers, ToolsetDefinitionLocations.Default))
1311
ProjectCollection
projectCollection = null;
1710
private static bool PrintTargets(string projectFile, string toolsVersion, Dictionary<string, string> globalProperties, TextWriter targetsWriter,
ProjectCollection
projectCollection)
1759
ProjectCollection
.DisplayVersion),
4066
Assembly engineAssembly = typeof(
ProjectCollection
).GetTypeInfo().Assembly;
4125
Assembly engineAssembly = typeof(
ProjectCollection
).GetTypeInfo().Assembly;
4577
Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage",
ProjectCollection
.DisplayVersion, NativeMethods.FrameworkName));
4621
Console.WriteLine(
ProjectCollection
.Version.ToString());
4625
Console.Write(
ProjectCollection
.Version.ToString());
Roslyn.Compilers.Extension (3)
CompilerPackage.cs (3)
55
Microsoft.Build.Evaluation.
ProjectCollection
.GlobalProjectCollection.DisableMarkDirty = true;
56
Microsoft.Build.Evaluation.
ProjectCollection
.GlobalProjectCollection.SetGlobalProperty("RoslynHive", RoslynHive);
60
Microsoft.Build.Evaluation.
ProjectCollection
.GlobalProjectCollection.DisableMarkDirty = false;
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
55
private
ProjectCollection
_privateCollection;