124 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 (26)
ToolLocationHelper.cs (26)
1651
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version) => GetDotNetFrameworkSdkRootRegistryKey(version,
VisualStudioVersion
.VersionLatest);
1658
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1672
public static string GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion version) => GetDotNetFrameworkSdkInstallKeyValue(version,
VisualStudioVersion
.VersionLatest);
1679
public static string GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1723
public static string GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion version) => GetPathToDotNetFrameworkSdk(version,
VisualStudioVersion
.VersionLatest);
1729
/// <param name="visualStudioVersion">The <see cref="
VisualStudioVersion
"/> of Visual Studio.</param>
1731
public static string GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1999
private static string GetPathToDotNetFrameworkSdkToolsFolderRoot(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
2065
private static Version VisualStudioVersionToSystemVersion(
VisualStudioVersion
version)
2069
VisualStudioVersion
.Version100 => FrameworkLocationHelper.visualStudioVersion100,
2070
VisualStudioVersion
.Version110 => FrameworkLocationHelper.visualStudioVersion110,
2071
VisualStudioVersion
.Version120 => FrameworkLocationHelper.visualStudioVersion120,
2072
VisualStudioVersion
.Version140 => FrameworkLocationHelper.visualStudioVersion140,
2073
VisualStudioVersion
.Version150 => FrameworkLocationHelper.visualStudioVersion150,
2074
VisualStudioVersion
.Version160 => FrameworkLocationHelper.visualStudioVersion160,
2075
VisualStudioVersion
.Version170 => FrameworkLocationHelper.visualStudioVersion170,
2076
VisualStudioVersion
.Version180 => FrameworkLocationHelper.visualStudioVersion180,
3251
=> GetPathToDotNetFrameworkSdkFile(fileName, version,
VisualStudioVersion
.VersionLatest);
3260
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3275
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version, UtilitiesDotNetFrameworkArchitecture architecture) => GetPathToDotNetFrameworkSdkFile(fileName, version,
VisualStudioVersion
.VersionLatest, architecture);
3285
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, UtilitiesDotNetFrameworkArchitecture architecture)
3304
private static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, UtilitiesDotNetFrameworkArchitecture architecture, bool canFallBackIfNecessary)
3420
public static string GetPathToWindowsSdk(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3432
public static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3450
public static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, DotNetFrameworkArchitecture architecture)
3469
private static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, DotNetFrameworkArchitecture architecture, bool canFallBackIfNecessary)
Microsoft.Build.Utilities.UnitTests (93)
ToolLocationHelper_Tests.cs (93)
722
foreach (
var
vsVersion in EnumVisualStudioVersions())
730
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(dotNetVersion, (
VisualStudioVersion
)99));
733
foreach (
var
vsVersion in EnumVisualStudioVersions())
746
vsVersion ==
VisualStudioVersion
.Version100 ? FrameworkLocationHelper.fullDotNetFrameworkSdkRegistryKeyV35OnVS10 : FrameworkLocationHelper.fullDotNetFrameworkSdkRegistryKeyV35OnVS11);
762
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK70A);
763
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
764
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
765
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
768
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
769
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
770
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
771
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
774
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version100));
775
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version110));
776
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
777
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
780
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version100));
781
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version110));
782
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
783
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
786
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version100));
787
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version110));
788
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version120));
789
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
792
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version100));
793
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version110));
794
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version120));
795
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK461);
798
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version100));
799
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version110));
800
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version120));
801
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK462);
804
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version100));
805
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version110));
806
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version120));
807
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK47);
810
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version100));
811
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version110));
812
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version120));
813
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK471);
816
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version100));
817
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version110));
818
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version120));
819
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK472);
822
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version100));
823
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version110));
824
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version120));
825
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version140));
826
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
827
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version160).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
828
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
831
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version100));
832
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version110));
833
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version120));
834
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version140));
835
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version150));
836
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version160));
837
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);
840
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Latest,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);
847
foreach (
var
vsVersion in EnumVisualStudioVersions())
855
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(dotNetVersion, (
VisualStudioVersion
)99));
860
foreach (
var
vsVersion in EnumVisualStudioVersions())
882
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version100));
883
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version110));
884
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version120).ShouldBe(InstallationFolder);
885
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version140).ShouldBe(InstallationFolder);
888
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version100));
889
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version110));
890
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version120));
891
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version140).ShouldBe(InstallationFolder);
902
foreach (
var
vsVersion in EnumVisualStudioVersions())
910
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(dotNetVersion, (
VisualStudioVersion
)99));
935
foreach (
var
vsVersion in EnumVisualStudioVersions())
951
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version100).ShouldBe(pathToSdkV4InstallRootOnVS10);
952
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version110).ShouldBe(pathToSdkV4InstallRootOnVS11);
953
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
954
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
957
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version100).ShouldBe(pathToSdkV4InstallRootOnVS11);
958
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version110).ShouldBe(pathToSdkV4InstallRootOnVS11);
959
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
960
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
963
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version100));
964
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version110));
965
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
966
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
969
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version100));
970
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version110));
971
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version120));
972
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
2771
private static IEnumerable<
VisualStudioVersion
> EnumVisualStudioVersions()
2773
for (
VisualStudioVersion
vsVersion =
VisualStudioVersion
.Version100; vsVersion <=
VisualStudioVersion
.VersionLatest; ++vsVersion)