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)
723
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
((TargetDotNetFrameworkVersion)99, vsVersion));
729
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(dotNetVersion, (VisualStudioVersion)99));
735
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
738
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
741
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version30, vsVersion));
744
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(
761
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK70A);
762
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
763
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
764
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
767
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version100).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
768
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version110).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK80A);
769
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
770
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
773
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
774
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
775
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
776
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
779
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version100));
780
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version110));
781
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version120).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK81A);
782
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
785
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
786
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
787
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
788
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK46);
791
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version100));
792
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version110));
793
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version120));
794
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version140).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK461);
797
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version100));
798
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version110));
799
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version120));
800
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK462);
803
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version100));
804
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version110));
805
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version120));
806
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK47);
809
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version100));
810
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version110));
811
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version120));
812
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK471);
815
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version100));
816
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version110));
817
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version120));
818
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK472);
821
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version100));
822
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version110));
823
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version120));
824
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version140));
825
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version150).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
826
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version160).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
827
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK48);
830
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version100));
831
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version110));
832
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version120));
833
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version140));
834
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version150));
835
Should.Throw<ArgumentException>(() => ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version160));
836
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);
839
ToolLocationHelper.
GetDotNetFrameworkSdkRootRegistryKey
(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.Version170).ShouldBe(fullDotNetFrameworkSdkRegistryPathForV4ToolsOnManagedToolsSDK481);