54 references to CurrentToolsVersion
Microsoft.Build (19)
BackEnd\Shared\ConfigurationMetadata.cs (1)
58_toolsVersion = MSBuildConstants.CurrentToolsVersion;
Construction\ProjectRootElement.cs (1)
51private const string EmptyProjectFileToolsVersion = " ToolsVersion=\"" + MSBuildConstants.CurrentToolsVersion + "\"";
Definition\ToolsetLocalReader.cs (3)
24protected override string DefaultOverrideToolsVersion => MSBuildConstants.CurrentToolsVersion; 26protected override string DefaultToolsVersion => MSBuildConstants.CurrentToolsVersion; 34yield return new ToolsetPropertyDefinition(MSBuildConstants.CurrentToolsVersion, string.Empty, _sourceLocation);
Definition\ToolsetReader.cs (3)
223if (!toolsets.ContainsKey(MSBuildConstants.CurrentToolsVersion)) 226MSBuildConstants.CurrentToolsVersion, 228MSBuildConstants.CurrentToolsVersion,
Evaluation\Conditionals\StringExpressionNode.cs (1)
184if (string.Equals(GetExpandedValue(state), MSBuildConstants.CurrentToolsVersion, StringComparison.Ordinal))
FrameworkLocationHelper.cs (1)
944if (string.Equals(toolsVersion, MSBuildConstants.CurrentToolsVersion, StringComparison.Ordinal))
Graph\ProjectGraph.cs (1)
858MSBuildConstants.CurrentToolsVersion,
Resources\Constants.cs (2)
122internal static string defaultFallbackToolsVersion = MSBuildConstants.CurrentToolsVersion; 127internal static string defaultSolutionWrapperProjectToolsVersion = MSBuildConstants.CurrentToolsVersion;
Utilities\Utilities.cs (6)
349toolsVersionToUse = MSBuildConstants.CurrentToolsVersion; 362toolsVersionToUse = MSBuildConstants.CurrentToolsVersion; 380currentToolset = getToolset(MSBuildConstants.CurrentToolsVersion); 399toolsVersionToUse = MSBuildConstants.CurrentToolsVersion; 437toolsVersionToUse = MSBuildConstants.CurrentToolsVersion; 442toolsVersionToUse = MSBuildConstants.CurrentToolsVersion;
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
89var request = new BuildRequestData(testProject.ProjectFile, new Dictionary<string, string?>(), MSBuildConstants.CurrentToolsVersion, [], null, BuildRequestDataFlags.None);
Microsoft.Build.Engine.OM.UnitTests (11)
Definition\Project_Tests.cs (6)
1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3254var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3284var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3575var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3770var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3845var globResult = new Project(testFiles.ProjectFile, null, MSBuildConstants.CurrentToolsVersion, projectCollection).GetAllGlobs();
Definition\ProjectItem_Tests.cs (5)
1155ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1175ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 2216var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2276var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 3660return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c)
Microsoft.Build.Engine.UnitTests (17)
BackEnd\BuildManager_Logging_Tests.cs (1)
120MSBuildConstants.CurrentToolsVersion,
BackEnd\BuildManager_Tests.cs (8)
203MSBuildConstants.CurrentToolsVersion, 3706var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3730var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3801MSBuildConstants.CurrentToolsVersion, 3857var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, 3958MSBuildConstants.CurrentToolsVersion, 4102var request1 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null); 4103var request2 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null);
BackEnd\BuildRequestConfiguration_Tests.cs (1)
570var configuration = new BuildRequestConfiguration(new BuildRequestData(projectInstance, Array.Empty<string>()), MSBuildConstants.CurrentToolsVersion);
BackEnd\IntrinsicTask_Tests.cs (1)
3988var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c);
BackEnd\TaskBuilder_Tests.cs (1)
168using ProjectFromString projectFromString = new(contents, null, MSBuildConstants.CurrentToolsVersion, collection);
BackEnd\TaskRegistry_Tests.cs (2)
672MSBuildConstants.CurrentToolsVersion, 1889MSBuildConstants.CurrentToolsVersion,
BuildEnvironmentHelper_Tests.cs (1)
465public EmptyVSEnviroment(string toolsVersion = MSBuildConstants.CurrentToolsVersion) : base("MSBuild.exe", false)
Definition\Project_Internal_Tests.cs (1)
238using ProjectFromString projectFromString = new(projectContents, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection, ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition);
Instance\ProjectInstance_Internal_Tests.cs (1)
688projectContents = string.Format(projectContents, MSBuildConstants.CurrentToolsVersion);
Microsoft.Build.UnitTests.Shared (4)
ObjectModelHelpers.cs (4)
45private static string s_msbuildDefaultToolsVersion = MSBuildConstants.CurrentToolsVersion; 126return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 1430MSBuildConstants.CurrentToolsVersion, 2111MSBuildConstants.CurrentToolsVersion,
Microsoft.Build.Utilities.Core (2)
FrameworkLocationHelper.cs (1)
944if (string.Equals(toolsVersion, MSBuildConstants.CurrentToolsVersion, StringComparison.Ordinal))
ToolLocationHelper.cs (1)
298public static string CurrentToolsVersion => MSBuildConstants.CurrentToolsVersion;