47 instantiations of Toolset
Microsoft.Build (7)
Definition\Toolset.cs (1)
682
Toolset toolset = new
Toolset
(translator);
Definition\ToolsetReader.cs (6)
184
new
Toolset
(
211
new
Toolset
(
227
new
Toolset
(
247
var synthetic20Toolset = new
Toolset
(
327
var defaultToolset = new
Toolset
(
500
toolset = new
Toolset
(toolsVersion.Name, toolsPath ?? binPath, properties, _environmentProperties, globalProperties, subToolsets, MSBuildOverrideTasksPath, DefaultOverrideToolsVersion, importSearchPathsTable);
Microsoft.Build.Engine.OM.UnitTests (9)
Definition\ProjectCollection_Tests.cs (9)
954
var toolset = new
Toolset
("x", "c:\\y", collection, null);
974
var toolset1 = new
Toolset
("x", "c:\\y", collection, null);
975
var toolset2 = new
Toolset
("y", "c:\\z", collection, null);
998
var toolset1 = new
Toolset
("x", "c:\\y", collection, null);
999
var toolset2 = new
Toolset
("x", "c:\\z", collection, null);
1031
var toolset1 = new
Toolset
("x", "c:\\y", collection, null);
1032
var toolset2 = new
Toolset
("y", "c:\\z", collection, null);
1146
collection.AddToolset(new
Toolset
("x", @"c:\y", collection, null));
1239
collection.AddToolset(new
Toolset
("testTools", Path.GetTempPath(), collection, Path.GetTempPath()));
Microsoft.Build.Engine.UnitTests (31)
BackEnd\BuildManager_Tests.cs (1)
897
var newToolSet = new
Toolset
("CustomToolSet", "c:\\SomePath", projectCollection, null);
BackEnd\TaskRegistry_Tests.cs (1)
1888
var toolset = new
Toolset
(
Definition\Project_Internal_Tests.cs (1)
43
collection.AddToolset(new
Toolset
("x", @"c:\y", collection, null));
Definition\Toolset_Tests.cs (13)
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);
85
t = new
Toolset
("x", pathValue, collection, null);
108
Toolset t = new
Toolset
("4.0", "c:\\bar", buildProperties, environmentProperties, globalProperties,
201
Toolset t = new
Toolset
("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
235
Toolset t = new
Toolset
("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
269
Toolset t = new
Toolset
("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
291
Toolset t = new
Toolset
("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
313
Toolset t = new
Toolset
("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
341
Toolset t = new
Toolset
("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
457
Toolset t = new
Toolset
("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
542
Toolset fakeToolset = new
Toolset
("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Definition\ToolsVersion_Tests.cs (11)
38
Toolset t = new
Toolset
("toolsversionname", dir, new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), overrideDir, new DirectoryExists(this.directoryExists));
81
Toolset t = new
Toolset
("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "msbuildoverridetasks", new DirectoryExists(this.directoryExists));
101
Toolset t = new
Toolset
("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "k:\\||^%$#*msbuildoverridetasks", new DirectoryExists(this.directoryExists));
120
Toolset t = new
Toolset
("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), tooLong, new DirectoryExists(this.directoryExists));
140
Toolset t = new
Toolset
("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "k:\\Thecatinthehat", new DirectoryExists(this.directoryExists));
159
Toolset t = new
Toolset
(
198
Toolset t = new
Toolset
("toolsversionname", "c:\\directory1\\directory2\\doesntexist", new PropertyDictionary<ProjectPropertyInstance>(), colleciton, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists));
221
Toolset t = new
Toolset
("toolsversionname", "invalid||path", new PropertyDictionary<ProjectPropertyInstance>(), p, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists));
546
p.AddToolset(new
Toolset
("foo", @"c:\foo", p, @"c:\foo\override"));
696
p.AddToolset(new
Toolset
("foo", @"c:\foo", p, @"c:\foo\override"));
926
Toolset t = new
Toolset
(
Evaluation\Evaluator_Tests.cs (1)
5149
Toolset fakeToolset = new
Toolset
("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Instance\ProjectInstance_Internal_Tests.cs (1)
1034
var toolset = new
Toolset
(
Utilities_Tests.cs (2)
317
toolsets.Add(new
Toolset
("66", "x", colletionX, null));
318
toolsets.Add(new
Toolset
("44", "y", colletionY, null));
135 references to Toolset
Microsoft.Build (53)
BackEnd\BuildManager\BuildParameters.cs (2)
579
public ICollection<
Toolset
> Toolsets => ToolsetProvider.Toolsets;
860
public
Toolset
GetToolset(string toolsVersion)
BackEnd\Node\OutOfProcNode.cs (2)
733
ICollection<
Toolset
> parentToolSets = _buildParameters.ToolsetProvider.Toolsets;
738
foreach (
Toolset
toolSet in parentToolSets)
Definition\Project.cs (1)
4102
public
Toolset
Toolset { get; private set; }
Definition\ProjectCollection.cs (10)
144
private Dictionary<string,
Toolset
> _toolsets;
455
/// This is not the <see cref="
Toolset
.ToolsVersion"/>.
628
public ICollection<
Toolset
> Toolsets
634
return new List<
Toolset
>(_toolsets.Values);
1011
public void AddToolset(
Toolset
toolset)
1053
var toolsets = new List<
Toolset
>(Toolsets);
1055
foreach (
Toolset
toolset in toolsets)
1071
public
Toolset
GetToolset(string toolsVersion)
1076
_toolsets.TryGetValue(toolsVersion, out
var
toolset);
1798
_toolsets = new Dictionary<string,
Toolset
>(StringComparer.OrdinalIgnoreCase);
Definition\Toolset.cs (2)
680
internal static
Toolset
FactoryForDeserialization(ITranslator translator)
682
Toolset
toolset = new Toolset(translator);
Definition\ToolsetReader.cs (9)
88
internal static string ReadAllToolsets(Dictionary<string,
Toolset
> toolsets, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties, ToolsetDefinitionLocations locations)
103
Dictionary<string,
Toolset
> toolsets,
247
var
synthetic20Toolset = new Toolset(
327
var
defaultToolset = new Toolset(
345
Dictionary<string,
Toolset
> toolsets,
403
Dictionary<string,
Toolset
> toolsets,
420
Toolset
toolset = ReadToolset(toolsVersion, globalProperties, initialPropertiesClone, accumulateProperties);
436
private
Toolset
ReadToolset(
495
Toolset
toolset = null;
Evaluation\IEvaluatorData.cs (1)
62
Toolset
Toolset
Evaluation\IToolsetProvider.cs (2)
18
ICollection<
Toolset
> Toolsets
28
Toolset
GetToolset(string toolsVersion);
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
216
public
Toolset
Toolset
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
134
public
Toolset
Toolset => _wrapped.Toolset;
Evaluation\ToolsetProvider.cs (9)
24
private Dictionary<string,
Toolset
> _toolsets;
37
public ToolsetProvider(IEnumerable<
Toolset
> toolsets)
39
_toolsets = new Dictionary<string,
Toolset
>(StringComparer.OrdinalIgnoreCase);
40
foreach (
Toolset
toolset in toolsets)
62
public ICollection<
Toolset
> Toolsets => _toolsets.Values;
67
public
Toolset
GetToolset(string toolsVersion)
70
_toolsets.TryGetValue(toolsVersion, out
var
toolset);
84
translator.TranslateDictionary(ref _toolsets, StringComparer.OrdinalIgnoreCase,
Toolset
.FactoryForDeserialization);
104
_toolsets = new Dictionary<string,
Toolset
>(StringComparer.OrdinalIgnoreCase);
Instance\ProjectInstance.cs (4)
184
private
Toolset
_toolset;
1298
Toolset
IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Toolset
1496
internal
Toolset
Toolset
2435
translator.Translate(ref _toolset,
Toolset
.FactoryForDeserialization);
Instance\TaskRegistry.cs (4)
62
private
Toolset
_toolset;
203
internal TaskRegistry(
Toolset
toolset, ProjectRootElementCacheBase projectRootElementCache)
215
internal
Toolset
Toolset
1839
translator.Translate(ref _toolset,
Toolset
.FactoryForDeserialization);
Utilities\Utilities.cs (5)
19
using Toolset = Microsoft.Build.Evaluation.
Toolset
;
58
internal delegate
Toolset
GetToolset(string toolsVersion);
313
internal static string CreateToolsVersionListString(IEnumerable<
Toolset
> toolsets)
316
foreach (
Toolset
toolset in toolsets)
376
Toolset
currentToolset = null;
Microsoft.Build.Engine.OM.UnitTests (11)
Definition\Project_Tests.cs (1)
1237
Toolset
t = p.ProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
Definition\ProjectCollection_Tests.cs (10)
954
var
toolset = new Toolset("x", "c:\\y", collection, null);
960
List<
Toolset
> toolsets = Helpers.MakeList(collection.Toolsets);
974
var
toolset1 = new Toolset("x", "c:\\y", collection, null);
975
var
toolset2 = new Toolset("y", "c:\\z", collection, null);
983
List<
Toolset
> toolsets = Helpers.MakeList(collection.Toolsets);
998
var
toolset1 = new Toolset("x", "c:\\y", collection, null);
999
var
toolset2 = new Toolset("x", "c:\\z", collection, null);
1006
List<
Toolset
> toolsets = Helpers.MakeList(collection.Toolsets);
1031
var
toolset1 = new Toolset("x", "c:\\y", collection, null);
1032
var
toolset2 = new Toolset("y", "c:\\z", collection, null);
Microsoft.Build.Engine.UnitTests (67)
BackEnd\BuildManager_Tests.cs (1)
897
var
newToolSet = new Toolset("CustomToolSet", "c:\\SomePath", projectCollection, null);
BackEnd\TaskRegistry_Tests.cs (3)
1888
var
toolset = new Toolset(
1979
public void TaskRegistryCanSerializeViaTranslator(List<ProjectUsingTaskElement> usingTaskElements,
Toolset
toolset)
2180
internal TaskRegistry CreateTaskRegistryAndRegisterTasks(List<ProjectUsingTaskElement> usingTaskElements,
Toolset
toolset = null)
Construction\SolutionProjectGenerator_Tests.cs (2)
26
using Toolset = Microsoft.Build.Evaluation.
Toolset
;
442
Toolset
t = ProjectCollection.GlobalProjectCollection.GetToolset(instances[0].ToolsVersion);
Definition\Toolset_Tests.cs (34)
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);
53
Toolset
t;
108
Toolset
t = new Toolset("4.0", "c:\\bar", buildProperties, environmentProperties, globalProperties,
115
Toolset
t2 =
Toolset
.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
162
Toolset
t = GetFakeToolset(null /* no global properties */);
171
Toolset
t = ProjectCollection.GlobalProjectCollection.GetToolset("4.0");
175
if (
Toolset
.Dev10IsInstalled)
199
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
201
Toolset
t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
203
if (
Toolset
.Dev10IsInstalled)
233
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
235
Toolset
t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
239
if (
Toolset
.Dev10IsInstalled)
267
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
269
Toolset
t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
289
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
291
Toolset
t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
311
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
313
Toolset
t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
339
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
341
Toolset
t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
366
Toolset
t = GetFakeToolset(globalProperties);
385
Toolset
t = GetFakeToolset(null);
404
Toolset
t = GetFakeToolset(null);
426
Toolset
t = GetFakeToolset(null);
455
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
457
Toolset
t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath);
473
Toolset
t = GetFakeToolset(null);
505
private
Toolset
GetFakeToolset(IDictionary<string, string> globalPropertiesForProjectCollection)
540
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
542
Toolset
fakeToolset = new Toolset("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Definition\ToolsetConfigurationReader_Tests.cs (2)
561
Dictionary<string,
Toolset
> toolsets = new Dictionary<string,
Toolset
>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsVersion_Tests.cs (11)
38
Toolset
t = new Toolset("toolsversionname", dir, new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), overrideDir, new DirectoryExists(this.directoryExists));
81
Toolset
t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "msbuildoverridetasks", new DirectoryExists(this.directoryExists));
101
Toolset
t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "k:\\||^%$#*msbuildoverridetasks", new DirectoryExists(this.directoryExists));
120
Toolset
t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), tooLong, new DirectoryExists(this.directoryExists));
140
Toolset
t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "k:\\Thecatinthehat", new DirectoryExists(this.directoryExists));
159
Toolset
t = new Toolset(
198
Toolset
t = new Toolset("toolsversionname", "c:\\directory1\\directory2\\doesntexist", new PropertyDictionary<ProjectPropertyInstance>(), colleciton, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists));
221
Toolset
t = new Toolset("toolsversionname", "invalid||path", new PropertyDictionary<ProjectPropertyInstance>(), p, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists));
244
string[] foundFiles =
Toolset
.GetTaskFiles(
250
string[] foundoverrideFiles =
Toolset
.GetTaskFiles(
926
Toolset
t = new Toolset(
Evaluation\Evaluator_Tests.cs (3)
3859
if (
Toolset
.Dev10IsInstalled)
5147
Toolset
parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion);
5149
Toolset
fakeToolset = new Toolset("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
33
foreach (
Toolset
toolset in projectCollection.Toolsets)
60
foreach (
Toolset
toolset in projectCollection.Toolsets)
Instance\ProjectInstance_Internal_Tests.cs (2)
1033
Toolset
template = pc.Toolsets.First(t => String.Equals(t.ToolsVersion, pc.DefaultToolsVersion, StringComparison.OrdinalIgnoreCase));
1034
var
toolset = new Toolset(
TestComparers\TaskRegistryComparers.cs (4)
116
public sealed class ToolsetComparer : IEqualityComparer<
Toolset
>
118
public bool Equals(
Toolset
x,
Toolset
y)
144
public int GetHashCode(
Toolset
obj)
Utilities_Tests.cs (3)
14
using Toolset = Microsoft.Build.Evaluation.
Toolset
;
313
List<
Toolset
> toolsets = new List<
Toolset
>();
MSBuild (3)
XMake.cs (3)
1408
Microsoft.Build.Evaluation.
Toolset
toolset = projectCollection.GetToolset(toolsVersion ?? project.ToolsVersion);
4530
private static void ThrowInvalidToolsVersionInitializationException(IEnumerable<
Toolset
> toolsets, string toolsVersion)
4533
foreach (
Toolset
toolset in toolsets)
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
192
Toolset
t = _privateCollection.GetToolset(toolsVersion);