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)
1645
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version) =>
GetDotNetFrameworkSdkRootRegistryKey
(version, VisualStudioVersion.VersionLatest);
Microsoft.Build.Utilities.UnitTests (61)
ToolLocationHelper_Tests.cs (61)
726
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
((TargetDotNetFrameworkVersion)99, vsVersion));
732
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(dotNetVersion, (VisualStudioVersion)99));
738
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
741
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
744
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version30, vsVersion));
747
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(
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);