123 references to VisualStudioVersion
Microsoft.Build.Tasks.Core (5)
ManifestUtil\SecurityUtil.cs (3)
855
string toolPath = ToolLocationHelper.GetPathToWindowsSdkFile(ToolName, TargetDotNetFrameworkVersion.VersionLatest,
VisualStudioVersion
.VersionLatest);
859
VisualStudioVersion
.Version110);
863
var pathToDotNetFrameworkSdk = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version100);
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 (25)
ToolLocationHelper.cs (25)
1645
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version) => GetDotNetFrameworkSdkRootRegistryKey(version,
VisualStudioVersion
.VersionLatest);
1652
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1666
public static string GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion version) => GetDotNetFrameworkSdkInstallKeyValue(version,
VisualStudioVersion
.VersionLatest);
1673
public static string GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1717
public static string GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion version) => GetPathToDotNetFrameworkSdk(version,
VisualStudioVersion
.VersionLatest);
1723
/// <param name="visualStudioVersion">The <see cref="
VisualStudioVersion
"/> of Visual Studio.</param>
1725
public static string GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1993
private static string GetPathToDotNetFrameworkSdkToolsFolderRoot(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
2059
private static Version VisualStudioVersionToSystemVersion(
VisualStudioVersion
version)
2063
VisualStudioVersion
.Version100 => FrameworkLocationHelper.visualStudioVersion100,
2064
VisualStudioVersion
.Version110 => FrameworkLocationHelper.visualStudioVersion110,
2065
VisualStudioVersion
.Version120 => FrameworkLocationHelper.visualStudioVersion120,
2066
VisualStudioVersion
.Version140 => FrameworkLocationHelper.visualStudioVersion140,
2067
VisualStudioVersion
.Version150 => FrameworkLocationHelper.visualStudioVersion150,
2068
VisualStudioVersion
.Version160 => FrameworkLocationHelper.visualStudioVersion160,
2069
VisualStudioVersion
.Version170 => FrameworkLocationHelper.visualStudioVersion170,
3244
=> GetPathToDotNetFrameworkSdkFile(fileName, version,
VisualStudioVersion
.VersionLatest);
3253
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3268
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version, UtilitiesDotNetFrameworkArchitecture architecture) => GetPathToDotNetFrameworkSdkFile(fileName, version,
VisualStudioVersion
.VersionLatest, architecture);
3278
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, UtilitiesDotNetFrameworkArchitecture architecture)
3297
private static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, UtilitiesDotNetFrameworkArchitecture architecture, bool canFallBackIfNecessary)
3413
public static string GetPathToWindowsSdk(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3425
public static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3443
public static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, DotNetFrameworkArchitecture architecture)
3462
private static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, DotNetFrameworkArchitecture architecture, bool canFallBackIfNecessary)
Microsoft.Build.Utilities.UnitTests (93)
ToolLocationHelper_Tests.cs (93)
724
foreach (
var
vsVersion in EnumVisualStudioVersions())
732
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(dotNetVersion, (
VisualStudioVersion
)99));
735
foreach (
var
vsVersion in EnumVisualStudioVersions())
748
vsVersion ==
VisualStudioVersion
.Version100 ? FrameworkLocationHelper.fullDotNetFrameworkSdkRegistryKeyV35OnVS10 : FrameworkLocationHelper.fullDotNetFrameworkSdkRegistryKeyV35OnVS11);
764
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK70A);
765
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
766
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
767
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
770
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
771
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
772
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
773
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
776
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version100));
777
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version110));
778
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
779
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
782
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version100));
783
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version110));
784
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
785
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
788
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version100));
789
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version110));
790
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version120));
791
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
794
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version100));
795
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version110));
796
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version120));
797
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK461);
800
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version100));
801
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version110));
802
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version120));
803
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK462);
806
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version100));
807
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version110));
808
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version120));
809
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK47);
812
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version100));
813
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version110));
814
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version120));
815
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK471);
818
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version100));
819
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version110));
820
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version120));
821
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK472);
824
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version100));
825
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version110));
826
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version120));
827
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version140));
828
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
829
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version160).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
830
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
833
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version100));
834
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version110));
835
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version120));
836
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version140));
837
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version150));
838
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version160));
839
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);
842
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Latest,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);
849
foreach (
var
vsVersion in EnumVisualStudioVersions())
857
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(dotNetVersion, (
VisualStudioVersion
)99));
862
foreach (
var
vsVersion in EnumVisualStudioVersions())
884
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version100));
885
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version110));
886
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version120).ShouldBe(InstallationFolder);
887
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version140).ShouldBe(InstallationFolder);
890
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version100));
891
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version110));
892
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version120));
893
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version140).ShouldBe(InstallationFolder);
904
foreach (
var
vsVersion in EnumVisualStudioVersions())
912
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(dotNetVersion, (
VisualStudioVersion
)99));
937
foreach (
var
vsVersion in EnumVisualStudioVersions())
953
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version100).ShouldBe(pathToSdkV4InstallRootOnVS10);
954
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version110).ShouldBe(pathToSdkV4InstallRootOnVS11);
955
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
956
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
959
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version100).ShouldBe(pathToSdkV4InstallRootOnVS11);
960
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version110).ShouldBe(pathToSdkV4InstallRootOnVS11);
961
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
962
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
965
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version100));
966
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version110));
967
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
968
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
971
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version100));
972
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version110));
973
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version120));
974
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
2773
private static IEnumerable<
VisualStudioVersion
> EnumVisualStudioVersions()
2775
for (
VisualStudioVersion
vsVersion =
VisualStudioVersion
.Version100; vsVersion <=
VisualStudioVersion
.VersionLatest; ++vsVersion)