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)
1646
public static string GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion version) =>
GetDotNetFrameworkSdkRootRegistryKey
(version, VisualStudioVersion.VersionLatest);
Microsoft.Build.Utilities.UnitTests (61)
ToolLocationHelper_Tests.cs (61)
727
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
((TargetDotNetFrameworkVersion)99, vsVersion));
733
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(dotNetVersion, (VisualStudioVersion)99));
739
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
742
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
745
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version30, vsVersion));
748
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(
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);