63 references to GetDotNetFrameworkSdkRootRegistryKey
Microsoft.Build.Tasks.Core (1)
SdkToolsPathUtility.cs (1)
121
log.LogErrorWithCodeFromResources("General.SdkToolsPathToolDoesNotExist", toolName, sdkToolsPath, ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest));
Microsoft.Build.Utilities.Core (1)
ToolLocationHelper.cs (1)
1651
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version) =>
GetDotNetFrameworkSdkRootRegistryKey
(version, VisualStudioVersion.VersionLatest);
Microsoft.Build.Utilities.UnitTests (61)
ToolLocationHelper_Tests.cs (61)
724
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
((TargetDotNetFrameworkVersion)99, vsVersion));
730
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(dotNetVersion, (VisualStudioVersion)99));
736
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
739
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
742
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version30, vsVersion));
745
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(
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);