24 references to GetPathToDotNetFrameworkSdk
Microsoft.Build.Tasks.Core (1)
ManifestUtil\SecurityUtil.cs (1)
862
var pathToDotNetFrameworkSdk = ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version100);
Microsoft.Build.Utilities.Core (1)
ToolLocationHelper.cs (1)
1718
public static string GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion version) =>
GetPathToDotNetFrameworkSdk
(version, VisualStudioVersion.VersionLatest);
Microsoft.Build.Utilities.UnitTests (22)
ToolLocationHelper_Tests.cs (22)
907
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetPathToDotNetFrameworkSdk
((TargetDotNetFrameworkVersion)99, vsVersion));
913
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(dotNetVersion, (VisualStudioVersion)99));
941
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkSdkV11);
944
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkSdkV20);
947
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version30, vsVersion));
950
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(pathToSdk35InstallRoot);
954
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version100).ShouldBe(pathToSdkV4InstallRootOnVS10);
955
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version110).ShouldBe(pathToSdkV4InstallRootOnVS11);
956
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
957
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
960
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version100).ShouldBe(pathToSdkV4InstallRootOnVS11);
961
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version110).ShouldBe(pathToSdkV4InstallRootOnVS11);
962
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
963
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
966
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
967
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
968
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
969
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
972
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
973
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
974
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
975
ToolLocationHelper.
GetPathToDotNetFrameworkSdk
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);