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