47 instantiations of Toolset
Microsoft.Build (7)
Definition\Toolset.cs (1)
573Toolset toolset = new Toolset(translator);
Definition\ToolsetReader.cs (6)
178new Toolset( 205new Toolset( 221new Toolset( 241var synthetic20Toolset = new Toolset( 321var defaultToolset = new Toolset( 494toolset = 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)
896var newToolSet = new Toolset("CustomToolSet", "c:\\SomePath", projectCollection, null);
BackEnd\TaskRegistry_Tests.cs (1)
1888var toolset = new Toolset(
Definition\Project_Internal_Tests.cs (1)
42collection.AddToolset(new Toolset("x", @"c:\y", collection, null));
Definition\Toolset_Tests.cs (13)
26Toolset t = new Toolset(null, "x", new ProjectCollection(), null); 35Toolset t = new Toolset("x", null, new ProjectCollection(), null); 44Toolset t = new Toolset(String.Empty, "x", new ProjectCollection(), null); 83t = new Toolset("x", pathValue, collection, null); 106Toolset t = new Toolset("4.0", "c:\\bar", buildProperties, environmentProperties, globalProperties, 195Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 223Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 251Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 273Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 295Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 323Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 439Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 524Toolset fakeToolset = new Toolset("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Definition\ToolsVersion_Tests.cs (11)
36Toolset t = new Toolset("toolsversionname", dir, new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), overrideDir, new DirectoryExists(this.directoryExists)); 79Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "msbuildoverridetasks", new DirectoryExists(this.directoryExists)); 99Toolset 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)); 118Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), tooLong, new DirectoryExists(this.directoryExists)); 138Toolset 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)); 157Toolset t = new Toolset( 196Toolset 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)); 219Toolset t = new Toolset("toolsversionname", "invalid||path", new PropertyDictionary<ProjectPropertyInstance>(), p, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists)); 544p.AddToolset(new Toolset("foo", @"c:\foo", p, @"c:\foo\override")); 694p.AddToolset(new Toolset("foo", @"c:\foo", p, @"c:\foo\override")); 924Toolset t = new Toolset(
Evaluation\Evaluator_Tests.cs (1)
5172Toolset fakeToolset = new Toolset("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Instance\ProjectInstance_Internal_Tests.cs (1)
1033var toolset = new Toolset(
Utilities_Tests.cs (2)
314toolsets.Add(new Toolset("66", "x", colletionX, null)); 315toolsets.Add(new Toolset("44", "y", colletionY, null));
131 references to Toolset
Microsoft.Build (53)
BackEnd\BuildManager\BuildParameters.cs (2)
619public ICollection<Toolset> Toolsets => ToolsetProvider.Toolsets; 916public Toolset GetToolset(string toolsVersion)
BackEnd\Node\OutOfProcNode.cs (2)
750ICollection<Toolset> parentToolSets = _buildParameters.ToolsetProvider.Toolsets; 755foreach (Toolset toolSet in parentToolSets)
Definition\Project.cs (1)
4123public Toolset Toolset { get; private set; }
Definition\ProjectCollection.cs (10)
144private Dictionary<string, Toolset> _toolsets; 482/// This is not the <see cref="Toolset.ToolsVersion"/>. 660public ICollection<Toolset> Toolsets 666return new List<Toolset>(_toolsets.Values); 1072public void AddToolset(Toolset toolset) 1114var toolsets = new List<Toolset>(Toolsets); 1116foreach (Toolset toolset in toolsets) 1132public Toolset GetToolset(string toolsVersion) 1137_toolsets.TryGetValue(toolsVersion, out var toolset); 1860_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
Definition\Toolset.cs (2)
571internal static Toolset FactoryForDeserialization(ITranslator translator) 573Toolset toolset = new Toolset(translator);
Definition\ToolsetReader.cs (9)
82internal static string ReadAllToolsets(Dictionary<string, Toolset> toolsets, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties, ToolsetDefinitionLocations locations) 97Dictionary<string, Toolset> toolsets, 241var synthetic20Toolset = new Toolset( 321var defaultToolset = new Toolset( 339Dictionary<string, Toolset> toolsets, 397Dictionary<string, Toolset> toolsets, 414Toolset toolset = ReadToolset(toolsVersion, globalProperties, initialPropertiesClone, accumulateProperties); 430private Toolset ReadToolset( 489Toolset toolset = null;
Evaluation\IEvaluatorData.cs (1)
62Toolset Toolset
Evaluation\IToolsetProvider.cs (2)
18ICollection<Toolset> Toolsets 28Toolset GetToolset(string toolsVersion);
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
138public Toolset Toolset => _wrappedData.Toolset;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
141public 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)
190private Toolset _toolset; 1336Toolset IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.Toolset 1570internal Toolset Toolset 2518translator.Translate(ref _toolset, Toolset.FactoryForDeserialization);
Instance\TaskRegistry.cs (4)
62private Toolset _toolset; 195internal TaskRegistry(Toolset toolset, ProjectRootElementCacheBase projectRootElementCache) 207internal Toolset Toolset 1961translator.Translate(ref _toolset, Toolset.FactoryForDeserialization);
Utilities\Utilities.cs (5)
22using Toolset = Microsoft.Build.Evaluation.Toolset; 61internal delegate Toolset GetToolset(string toolsVersion); 321internal static string CreateToolsVersionListString(IEnumerable<Toolset> toolsets) 325foreach (Toolset toolset in toolsets) 384Toolset 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 (63)
BackEnd\BuildManager_Tests.cs (1)
896var 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; 479Toolset t = ProjectCollection.GlobalProjectCollection.GetToolset(instances[0].ToolsVersion);
Definition\Toolset_Tests.cs (31)
26Toolset t = new Toolset(null, "x", new ProjectCollection(), null); 35Toolset t = new Toolset("x", null, new ProjectCollection(), null); 44Toolset t = new Toolset(String.Empty, "x", new ProjectCollection(), null); 51Toolset t; 106Toolset t = new Toolset("4.0", "c:\\bar", buildProperties, environmentProperties, globalProperties, 113Toolset t2 = Toolset.FactoryForDeserialization(TranslationHelpers.GetReadTranslator()); 160Toolset t = GetFakeToolset(null /* no global properties */); 169Toolset t = ProjectCollection.GlobalProjectCollection.GetToolset("4.0"); 193Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 195Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 221Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 223Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 249Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 251Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 271Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 273Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 293Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 295Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 321Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 323Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 348Toolset t = GetFakeToolset(globalProperties); 367Toolset t = GetFakeToolset(null); 386Toolset t = GetFakeToolset(null); 408Toolset t = GetFakeToolset(null); 437Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 439Toolset t = new Toolset("Fake", parentToolset.ToolsPath, null, projectCollection, null, parentToolset.OverrideTasksPath); 455Toolset t = GetFakeToolset(null); 487private Toolset GetFakeToolset(IDictionary<string, string> globalPropertiesForProjectCollection) 522Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 524Toolset fakeToolset = new Toolset("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Definition\ToolsetConfigurationReader_Tests.cs (2)
560Dictionary<string, Toolset> toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsVersion_Tests.cs (11)
36Toolset t = new Toolset("toolsversionname", dir, new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), overrideDir, new DirectoryExists(this.directoryExists)); 79Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), "msbuildoverridetasks", new DirectoryExists(this.directoryExists)); 99Toolset 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)); 118Toolset t = new Toolset("toolsversionname", "c:\\directory1\\directory2", new PropertyDictionary<ProjectPropertyInstance>(), collection, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), tooLong, new DirectoryExists(this.directoryExists)); 138Toolset 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)); 157Toolset t = new Toolset( 196Toolset 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)); 219Toolset t = new Toolset("toolsversionname", "invalid||path", new PropertyDictionary<ProjectPropertyInstance>(), p, new DirectoryGetFiles(this.getFiles), new LoadXmlFromPath(this.loadXmlFromPath), null, new DirectoryExists(this.directoryExists)); 242string[] foundFiles = Toolset.GetTaskFiles( 248string[] foundoverrideFiles = Toolset.GetTaskFiles( 924Toolset t = new Toolset(
Evaluation\Evaluator_Tests.cs (2)
5170Toolset parentToolset = projectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 5172Toolset fakeToolset = new Toolset("Fake", parentToolset.ToolsPath, properties, projectCollection, subToolsets, parentToolset.OverrideTasksPath);
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
32foreach (Toolset toolset in projectCollection.Toolsets) 59foreach (Toolset toolset in projectCollection.Toolsets)
Instance\ProjectInstance_Internal_Tests.cs (2)
1032Toolset template = pc.Toolsets.First(t => String.Equals(t.ToolsVersion, pc.DefaultToolsVersion, StringComparison.OrdinalIgnoreCase)); 1033var 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; 310List<Toolset> toolsets = new List<Toolset>();
MSBuild (3)
XMake.cs (3)
1430Microsoft.Build.Evaluation.Toolset toolset = projectCollection.GetToolset(toolsVersion ?? project.ToolsVersion); 4643private static void ThrowInvalidToolsVersionInitializationException(IEnumerable<Toolset> toolsets, string toolsVersion) 4646foreach (Toolset toolset in toolsets)
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
192Toolset t = _privateCollection.GetToolset(toolsVersion);