42 references to ToolsetDefinitionLocations
Microsoft.Build (21)
BackEnd\BuildManager\BuildParameters.cs (2)
571
public
ToolsetDefinitionLocations
ToolsetDefinitionLocations { get; set; } =
ToolsetDefinitionLocations
.Default;
Definition\ProjectCollection.cs (8)
220
public ProjectCollection(
ToolsetDefinitionLocations
toolsetLocations)
232
: this(globalProperties, null,
ToolsetDefinitionLocations
.Default)
244
public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers,
ToolsetDefinitionLocations
toolsetDefinitionLocations)
262
public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
ToolsetDefinitionLocations
toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents)
281
public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
ToolsetDefinitionLocations
toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly)
303
public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
ToolsetDefinitionLocations
toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly, bool useAsynchronousLogging, bool reuseProjectRootElementCache)
434
var local = new ProjectCollection(null, null, null,
ToolsetDefinitionLocations
.Default,
642
public
ToolsetDefinitionLocations
ToolsetLocations { get; }
Definition\ToolsetReader.cs (9)
88
internal static string ReadAllToolsets(Dictionary<string, Toolset> toolsets, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties,
ToolsetDefinitionLocations
locations)
110
ToolsetDefinitionLocations
locations)
123
if ((locations &
ToolsetDefinitionLocations
.ConfigurationFile) ==
ToolsetDefinitionLocations
.ConfigurationFile)
152
if ((locations &
ToolsetDefinitionLocations
.Registry) ==
ToolsetDefinitionLocations
.Registry)
244
if (((locations &
ToolsetDefinitionLocations
.Registry) != 0) && !toolsets.ContainsKey("2.0")
261
if ((locations &
ToolsetDefinitionLocations
.Local) ==
ToolsetDefinitionLocations
.Local)
Evaluation\ToolsetProvider.cs (2)
29
public ToolsetProvider(string defaultToolsVersion, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties,
ToolsetDefinitionLocations
toolsetDefinitionLocations)
102
private void InitializeToolsetCollection(PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties,
ToolsetDefinitionLocations
toolsetDefinitionLocations)
Microsoft.Build.Engine.OM.UnitTests (5)
Definition\Project_Tests.cs (4)
991
using ProjectCollection collection = new ProjectCollection(initial, null,
ToolsetDefinitionLocations
.ConfigurationFile);
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);
Definition\ProjectCollection_Tests.cs (1)
1111
using var collection = new ProjectCollection(null, null,
ToolsetDefinitionLocations
.Registry);
Microsoft.Build.Engine.UnitTests (7)
BackEnd\BuildManager_Tests.cs (1)
85
_projectCollection = new ProjectCollection(globalProperties: null, _parameters.Loggers,
ToolsetDefinitionLocations
.Default);
BackEnd\MSBuild_Tests.cs (1)
1558
using ProjectCollection pc = new ProjectCollection(null, new List<ILogger> { logger }, null,
ToolsetDefinitionLocations
.Default, 2, false);
Evaluation\Evaluator_Tests.cs (2)
65
using ProjectCollection collection = new(new Dictionary<string, string>(), [logger],
ToolsetDefinitionLocations
.Default);
4696
globalProperties, new List<ILogger> { logger },
ToolsetDefinitionLocations
.Default);
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (2)
983
projColln = new ProjectCollection(
ToolsetDefinitionLocations
.ConfigurationFile);
991
projColln = new ProjectCollection(globalProperties, loggers: null,
ToolsetDefinitionLocations
.ConfigurationFile);
Evaluation\ToolsetConfigurationNet5_Tests.cs (1)
56
using var projectCollection = new ProjectCollection(
ToolsetDefinitionLocations
.ConfigurationFile);
Microsoft.Build.Tasks.UnitTests (2)
Exec_Tests.cs (2)
955
ToolsetDefinitionLocations
.Default,
1012
ToolsetDefinitionLocations
.Default,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Build\ProjectBuildManager.cs (2)
141
MSB.Evaluation.
ToolsetDefinitionLocations
.Default);
190
_batchBuildProjectCollection = new MSB.Evaluation.ProjectCollection(allProperties, loggers, MSB.Evaluation.
ToolsetDefinitionLocations
.Default);
MSBuild (5)
XMake.cs (5)
836
using (ProjectCollection collection = new(globalProperties, loggers,
ToolsetDefinitionLocations
.Default))
1380
ToolsetDefinitionLocations
toolsetDefinitionLocations =
ToolsetDefinitionLocations
.Default;
1481
parameters.ToolsetDefinitionLocations = Microsoft.Build.Evaluation.
ToolsetDefinitionLocations
.ConfigurationFile | Microsoft.Build.Evaluation.
ToolsetDefinitionLocations
.Registry;