17 references to GetDotNetFrameworkSdkInstallKeyValue
Microsoft.Build.Utilities.Core (1)
ToolLocationHelper.cs (1)
1667
public static string GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion version) =>
GetDotNetFrameworkSdkInstallKeyValue
(version, VisualStudioVersion.VersionLatest);
Microsoft.Build.Utilities.UnitTests (16)
ToolLocationHelper_Tests.cs (16)
852
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
((TargetDotNetFrameworkVersion)99, vsVersion));
858
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(dotNetVersion, (VisualStudioVersion)99));
866
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.dotNetFrameworkSdkInstallKeyValueV11);
869
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.dotNetFrameworkSdkInstallKeyValueV20);
872
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version30, vsVersion));
875
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(InstallationFolder);
878
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version40, vsVersion).ShouldBe(InstallationFolder);
881
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version45, vsVersion).ShouldBe(InstallationFolder);
885
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
886
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
887
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version120).ShouldBe(InstallationFolder);
888
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version140).ShouldBe(InstallationFolder);
891
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
892
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
893
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
894
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version140).ShouldBe(InstallationFolder);