151 references to VisualStudioVersion
Microsoft.Build.Tasks.Core (33)
GetFrameworkSDKPath.cs (21)
45
s_path = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Latest,
VisualStudioVersion
.VersionLatest);
52
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Latest,
VisualStudioVersion
.VersionLatest),
53
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Latest,
VisualStudioVersion
.VersionLatest));
115
s_version35Path = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version35,
VisualStudioVersion
.VersionLatest);
122
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version35,
VisualStudioVersion
.VersionLatest),
123
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version35,
VisualStudioVersion
.VersionLatest));
148
s_version40Path = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.VersionLatest);
155
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.VersionLatest),
156
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.VersionLatest));
181
s_version45Path = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.VersionLatest);
188
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.VersionLatest),
189
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.VersionLatest));
214
s_version451Path = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.VersionLatest);
221
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.VersionLatest),
222
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.VersionLatest));
247
s_version46Path = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.VersionLatest);
254
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.VersionLatest),
255
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.VersionLatest));
280
s_version461Path = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.VersionLatest);
287
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.VersionLatest),
288
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.VersionLatest));
ManifestUtil\SecurityUtil.cs (3)
854
string toolPath = ToolLocationHelper.GetPathToWindowsSdkFile(ToolName, TargetDotNetFrameworkVersion.VersionLatest,
VisualStudioVersion
.VersionLatest);
858
VisualStudioVersion
.Version110);
862
var pathToDotNetFrameworkSdk = ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version100);
ResolveComReference.cs (7)
490
_tlbimpPath = GetPathToSDKFileWithCurrentlyTargetedArchitecture("TlbImp.exe", TargetDotNetFrameworkVersion.Version35,
VisualStudioVersion
.VersionLatest);
495
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version35,
VisualStudioVersion
.VersionLatest),
496
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version35,
VisualStudioVersion
.VersionLatest));
539
_aximpPath = GetPathToSDKFileWithCurrentlyTargetedArchitecture("AxImp.exe", targetAxImpVersion,
VisualStudioVersion
.VersionLatest);
544
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(targetAxImpVersion,
VisualStudioVersion
.VersionLatest),
545
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(targetAxImpVersion,
VisualStudioVersion
.VersionLatest));
565
private string GetPathToSDKFileWithCurrentlyTargetedArchitecture(string file, TargetDotNetFrameworkVersion targetFrameworkVersion,
VisualStudioVersion
visualStudioVersion)
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)
1646
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version) => GetDotNetFrameworkSdkRootRegistryKey(version,
VisualStudioVersion
.VersionLatest);
1653
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1667
public static string GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion version) => GetDotNetFrameworkSdkInstallKeyValue(version,
VisualStudioVersion
.VersionLatest);
1674
public static string GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1718
public static string GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion version) => GetPathToDotNetFrameworkSdk(version,
VisualStudioVersion
.VersionLatest);
1724
/// <param name="visualStudioVersion">The <see cref="
VisualStudioVersion
"/> of Visual Studio.</param>
1726
public static string GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
1994
private static string GetPathToDotNetFrameworkSdkToolsFolderRoot(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
2060
private static Version VisualStudioVersionToSystemVersion(
VisualStudioVersion
version)
2064
VisualStudioVersion
.Version100 => FrameworkLocationHelper.visualStudioVersion100,
2065
VisualStudioVersion
.Version110 => FrameworkLocationHelper.visualStudioVersion110,
2066
VisualStudioVersion
.Version120 => FrameworkLocationHelper.visualStudioVersion120,
2067
VisualStudioVersion
.Version140 => FrameworkLocationHelper.visualStudioVersion140,
2068
VisualStudioVersion
.Version150 => FrameworkLocationHelper.visualStudioVersion150,
2069
VisualStudioVersion
.Version160 => FrameworkLocationHelper.visualStudioVersion160,
2070
VisualStudioVersion
.Version170 => FrameworkLocationHelper.visualStudioVersion170,
3245
=> GetPathToDotNetFrameworkSdkFile(fileName, version,
VisualStudioVersion
.VersionLatest);
3254
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3269
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version, UtilitiesDotNetFrameworkArchitecture architecture) => GetPathToDotNetFrameworkSdkFile(fileName, version,
VisualStudioVersion
.VersionLatest, architecture);
3279
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, UtilitiesDotNetFrameworkArchitecture architecture)
3298
private static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, UtilitiesDotNetFrameworkArchitecture architecture, bool canFallBackIfNecessary)
3414
public static string GetPathToWindowsSdk(TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3426
public static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion)
3444
public static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, DotNetFrameworkArchitecture architecture)
3463
private static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version,
VisualStudioVersion
visualStudioVersion, DotNetFrameworkArchitecture architecture, bool canFallBackIfNecessary)
Microsoft.Build.Utilities.UnitTests (93)
ToolLocationHelper_Tests.cs (93)
725
foreach (
var
vsVersion in EnumVisualStudioVersions())
733
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(dotNetVersion, (
VisualStudioVersion
)99));
736
foreach (
var
vsVersion in EnumVisualStudioVersions())
749
vsVersion ==
VisualStudioVersion
.Version100 ? FrameworkLocationHelper.fullDotNetFrameworkSdkRegistryKeyV35OnVS10 : FrameworkLocationHelper.fullDotNetFrameworkSdkRegistryKeyV35OnVS11);
765
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK70A);
766
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
767
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
768
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
771
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
772
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
773
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
774
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
777
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version100));
778
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version110));
779
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
780
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
783
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version100));
784
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version110));
785
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
786
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
789
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version100));
790
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version110));
791
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version120));
792
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
795
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version100));
796
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version110));
797
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version120));
798
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461,
VisualStudioVersion
.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK461);
801
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version100));
802
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version110));
803
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version120));
804
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK462);
807
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version100));
808
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version110));
809
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version120));
810
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK47);
813
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version100));
814
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version110));
815
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version120));
816
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK471);
819
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version100));
820
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version110));
821
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version120));
822
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK472);
825
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version100));
826
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version110));
827
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version120));
828
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version140));
829
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
830
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version160).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
831
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
834
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version100));
835
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version110));
836
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version120));
837
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version140));
838
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version150));
839
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version160));
840
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);
843
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Latest,
VisualStudioVersion
.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);
850
foreach (
var
vsVersion in EnumVisualStudioVersions())
858
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(dotNetVersion, (
VisualStudioVersion
)99));
863
foreach (
var
vsVersion in EnumVisualStudioVersions())
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);
905
foreach (
var
vsVersion in EnumVisualStudioVersions())
913
Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(dotNetVersion, (
VisualStudioVersion
)99));
938
foreach (
var
vsVersion in EnumVisualStudioVersions())
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);
2774
private static IEnumerable<
VisualStudioVersion
> EnumVisualStudioVersions()
2776
for (
VisualStudioVersion
vsVersion =
VisualStudioVersion
.Version100; vsVersion <=
VisualStudioVersion
.VersionLatest; ++vsVersion)