26 references to GetDotNetFrameworkSdkInstallKeyValue
Microsoft.Build.Tasks.Core (9)
GetFrameworkSDKPath.cs (7)
52
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest),
122
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version35, VisualStudioVersion.VersionLatest),
155
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.VersionLatest),
188
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.VersionLatest),
221
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.VersionLatest),
254
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.VersionLatest),
287
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.VersionLatest),
ResolveComReference.cs (2)
495
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(TargetDotNetFrameworkVersion.Version35, VisualStudioVersion.VersionLatest),
544
ToolLocationHelper.
GetDotNetFrameworkSdkInstallKeyValue
(targetAxImpVersion, VisualStudioVersion.VersionLatest),
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);