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)
1650
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version) =>
GetDotNetFrameworkSdkRootRegistryKey
(version, VisualStudioVersion.VersionLatest);
Microsoft.Build.Utilities.UnitTests (61)
ToolLocationHelper_Tests.cs (61)
730
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
((TargetDotNetFrameworkVersion)99, vsVersion));
736
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(dotNetVersion, (VisualStudioVersion)99));
742
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
745
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
748
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version30, vsVersion));
751
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(
768
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK70A);
769
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
770
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
771
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
774
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
775
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
776
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
777
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
780
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
781
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
782
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
783
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
786
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version100));
787
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version110));
788
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
789
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
792
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
793
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
794
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
795
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
798
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version100));
799
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version110));
800
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version120));
801
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK461);
804
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version100));
805
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version110));
806
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version120));
807
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK462);
810
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version100));
811
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version110));
812
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version120));
813
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK47);
816
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version100));
817
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version110));
818
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version120));
819
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK471);
822
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version100));
823
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version110));
824
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version120));
825
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK472);
828
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version100));
829
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version110));
830
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version120));
831
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version140));
832
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
833
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version160).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
834
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
837
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version100));
838
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version110));
839
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version120));
840
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version140));
841
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version150));
842
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version160));
843
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);
846
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);