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