12 references to Latest
Microsoft.Build.Tasks.Core (3)
GetFrameworkPath.cs (1)
35
private static readonly Lazy<string> s_path = new Lazy<string>(() => ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.
Latest
));
SdkToolsPathUtility.cs (2)
121
log.LogErrorWithCodeFromResources("General.SdkToolsPathToolDoesNotExist", toolName, sdkToolsPath, ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.
Latest
, VisualStudioVersion.VersionLatest));
137
string pathToTool = ToolLocationHelper.GetPathToDotNetFrameworkSdkFile(toolName, TargetDotNetFrameworkVersion.
Latest
, VisualStudioVersion.VersionLatest);
Microsoft.Build.Utilities.Core (3)
ToolLocationHelper.cs (3)
1708
public static string GetPathToDotNetFrameworkSdk() => GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.
Latest
);
2051
case TargetDotNetFrameworkVersion.
Latest
: // Latest is a special value to indicate the highest version we know about.
3233
=> GetPathToDotNetFrameworkSdkFile(fileName, TargetDotNetFrameworkVersion.
Latest
);
Microsoft.Build.Utilities.UnitTests (6)
ToolLocationHelper_Tests.cs (6)
631
ToolLocationHelper.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.
Latest
).ShouldBe(FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV40);
632
ToolLocationHelper.GetDotNetFrameworkRootRegistryKey(TargetDotNetFrameworkVersion.
Latest
).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
640
ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.
Latest
).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkV40);
655
ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.
Latest
, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
674
ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.
Latest
, UtilitiesDotNetFrameworkArchitecture.Bitness64).ShouldBe(
843
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.
Latest
, VisualStudioVersion.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);