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