404 references to ToolLocationHelper
Microsoft.Build.Engine.OM.UnitTests (9)
Definition\Project_Tests.cs (5)
27
using ToolLocationHelper = Microsoft.Build.Utilities.
ToolLocationHelper
;
1062
if (
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version35) == null)
1113
if (
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20) == null)
1142
if (
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20) != null)
1166
if (
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20) == null)
Definition\ProjectCollection_Tests.cs (4)
496
if (
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version35) == null)
502
if (
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20) == null)
1085
if (
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20) == null)
1105
if (
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20) != null)
Microsoft.Build.Engine.UnitTests (4)
BackEnd\BuildManager_Tests.cs (1)
859
string netFrameworkDirectory =
ToolLocationHelper
.GetPathToDotNetFrameworkReferenceAssemblies(TargetDotNetFrameworkVersion.Version45);
BackEnd\CustomTaskHelper.cs (2)
27
string referenceAssembliesPath =
ToolLocationHelper
.GetPathToBuildTools(
ToolLocationHelper
.CurrentToolsVersion);
Evaluation\Expander_Tests.cs (1)
1950
if (
ToolLocationHelper
.GetPathToDotNetFrameworkReferenceAssemblies(TargetDotNetFrameworkVersion.Version48) == null)
Microsoft.Build.Tasks.CodeAnalysis (1)
ManagedCompiler.cs (1)
1193
string pathToDefaultManifest =
ToolLocationHelper
.GetPathToDotNetFrameworkFile
Microsoft.Build.Tasks.Core (83)
AddToWin32Manifest.cs (1)
101
string? defaultManifestPath =
ToolLocationHelper
.GetPathToDotNetFrameworkFile(DefaultManifestName, TargetDotNetFrameworkVersion.Version46);
Al.cs (1)
310
pathToTool =
ToolLocationHelper
.GetPathToDotNetFrameworkFile(ToolExe, TargetDotNetFrameworkVersion.Latest);
AspNetCompiler.cs (2)
301
string pathToTool =
ToolLocationHelper
.GetPathToDotNetFrameworkFile(ToolExe, TargetDotNetFrameworkVersion.Latest);
306
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.Latest));
AssemblyDependency\ReferenceTable.cs (3)
2075
string targetFrameworkRootDirectory =
ToolLocationHelper
.GetProgramFilesReferenceAssemblyRoot();
2077
highestVersionMoniker =
ToolLocationHelper
.HighestVersionOfTargetFrameworkIdentifier(targetFrameworkRootDirectory, targetFrameworkMoniker.Identifier);
2084
referenceAssemblyDirectories =
ToolLocationHelper
.GetPathToReferenceAssemblies(targetFrameworkRootDirectory, highestVersionMoniker);
Exec.cs (2)
498
var systemCmd =
ToolLocationHelper
.GetPathToSystemFile("cmd.exe");
541
return
ToolLocationHelper
.PathToSystem;
GenerateResource.cs (4)
1070
_resgenPath =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile("resgen.exe", version);
1075
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(version),
1076
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(version));
1155
if (!_resgenPath.Equals(Path.GetDirectoryName(NativeMethodsShared.GetLongFilePath(
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile("resgen.exe", TargetDotNetFrameworkVersion.Version35))), StringComparison.OrdinalIgnoreCase))
GetFrameworkPath.cs (16)
35
private static readonly Lazy<string> s_path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Latest));
36
private static readonly Lazy<string> s_version11Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version11));
37
private static readonly Lazy<string> s_version20Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20));
38
private static readonly Lazy<string> s_version30Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version30));
39
private static readonly Lazy<string> s_version35Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version35));
40
private static readonly Lazy<string> s_version40Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version40));
41
private static readonly Lazy<string> s_version45Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version45));
42
private static readonly Lazy<string> s_version451Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version451));
43
private static readonly Lazy<string> s_version452Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version452));
44
private static readonly Lazy<string> s_version46Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version46));
45
private static readonly Lazy<string> s_version461Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version461));
46
private static readonly Lazy<string> s_version462Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version462));
47
private static readonly Lazy<string> s_version47Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version47));
48
private static readonly Lazy<string> s_version471Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version471));
49
private static readonly Lazy<string> s_version472Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version472));
50
private static readonly Lazy<string> s_version48Path = new Lazy<string>(() =>
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version48));
GetFrameworkSDKPath.cs (24)
45
s_path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest);
52
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest),
53
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest));
82
s_version20Path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version20);
89
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version20),
90
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version20));
115
s_version35Path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version35, VisualStudioVersion.VersionLatest);
122
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version35, VisualStudioVersion.VersionLatest),
123
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version35, VisualStudioVersion.VersionLatest));
148
s_version40Path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.VersionLatest);
155
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.VersionLatest),
156
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.VersionLatest));
181
s_version45Path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.VersionLatest);
188
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.VersionLatest),
189
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.VersionLatest));
214
s_version451Path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.VersionLatest);
221
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.VersionLatest),
222
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.VersionLatest));
247
s_version46Path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.VersionLatest);
254
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.VersionLatest),
255
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.VersionLatest));
280
s_version461Path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.VersionLatest);
287
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.VersionLatest),
288
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.VersionLatest));
GetInstalledSDKLocations.cs (2)
148
installedSDKs =
ToolLocationHelper
.GetPlatformExtensionSDKLocationsAndVersions(SDKDirectoryRoots, SDKExtensionDirectoryRoots, SDKRegistryRoot, TargetPlatformIdentifier, platformVersion);
198
BuildCacheDisposeWrapper staticDisposer = new BuildCacheDisposeWrapper(
ToolLocationHelper
.ClearSDKStaticCache);
GetReferenceAssemblyPaths.cs (2)
201
TargetFrameworkMonikerDisplayName =
ToolLocationHelper
.GetDisplayNameForTargetFrameworkDirectory(_tfmPaths[0], moniker);
240
IList<String> pathsToReturn =
ToolLocationHelper
.GetPathToReferenceAssemblies(
GetSDKReferenceFiles.cs (3)
309
redistPaths =
ToolLocationHelper
.GetSDKRedistFolders(resolvedSDKReference.ItemSpec, targetedConfiguration, targetedArchitecture);
384
IList<string> referencePaths =
ToolLocationHelper
.GetSDKReferenceFolders(resolvedSDKReference.ItemSpec, targetedConfiguration, targetedArchitecture);
702
manifestReferencePaths =
ToolLocationHelper
.GetPlatformOrFrameworkExtensionSdkReferences(
ManifestUtil\AssemblyIdentity.cs (2)
388
foreach (string moniker in
ToolLocationHelper
.GetSupportedTargetFrameworks())
394
IList<string> paths =
ToolLocationHelper
.GetPathToReferenceAssemblies(frameworkName);
ManifestUtil\DeployManifest.cs (1)
190
targetFrameworkPaths =
ToolLocationHelper
.GetPathToReferenceAssemblies(targetFrameworkMoniker);
ManifestUtil\SecurityUtil.cs (4)
171
IList<string> paths =
ToolLocationHelper
.GetPathToReferenceAssemblies(fn);
854
string toolPath =
ToolLocationHelper
.GetPathToWindowsSdkFile(ToolName, TargetDotNetFrameworkVersion.VersionLatest, VisualStudioVersion.VersionLatest);
857
toolPath =
ToolLocationHelper
.GetPathToWindowsSdkFile(ToolName, TargetDotNetFrameworkVersion.Version45,
862
var pathToDotNetFrameworkSdk =
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version100);
RedistList.cs (2)
217
string frameworkVersion20Path =
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20);
271
string referenceAssembliesPath =
ToolLocationHelper
.GetPathToDotNetFrameworkReferenceAssemblies(version);
ResGen.cs (2)
336
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile(
375
!pathToResGen.Equals(NativeMethodsShared.GetLongFilePath(
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile("resgen.exe", TargetDotNetFrameworkVersion.Version35)), StringComparison.OrdinalIgnoreCase) &&
ResolveComReference.cs (7)
495
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version35, VisualStudioVersion.VersionLatest),
496
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version35, VisualStudioVersion.VersionLatest));
544
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(targetAxImpVersion, VisualStudioVersion.VersionLatest),
545
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(targetAxImpVersion, VisualStudioVersion.VersionLatest));
573
path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile(file, targetFrameworkVersion, visualStudioVersion, DotNetFrameworkArchitecture.Bitness32);
578
path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile(file, targetFrameworkVersion, visualStudioVersion, DotNetFrameworkArchitecture.Bitness64);
589
path =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile(file, targetFrameworkVersion, visualStudioVersion);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (2)
27
string pathToBuildTools =
ToolLocationHelper
.GetPathToBuildTools(
ToolLocationHelper
.CurrentToolsVersion, DotNetFrameworkArchitecture.Bitness32);
SdkToolsPathUtility.cs (2)
121
log.LogErrorWithCodeFromResources("General.SdkToolsPathToolDoesNotExist", toolName, sdkToolsPath,
ToolLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest));
137
string pathToTool =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile(toolName, TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest);
SGen.cs (1)
312
pathToTool =
ToolLocationHelper
.GetPathToDotNetFrameworkFile(ToolExe, TargetDotNetFrameworkVersion.Latest);
Microsoft.Build.Tasks.UnitTests (6)
GetSDKReference_Tests.cs (6)
258
var getReferenceFolders = new GetSDKFolders(
ToolLocationHelper
.GetSDKReferenceFolders);
259
var getReferenceFolders2 = new GetSDKFolders2(
ToolLocationHelper
.GetSDKReferenceFolders);
325
var getRedistFolders = new GetSDKFolders(
ToolLocationHelper
.GetSDKRedistFolders);
326
var getRedistFolders2 = new GetSDKFolders2(
ToolLocationHelper
.GetSDKRedistFolders);
337
var getDesignTimeFolders = new GetSDKFolders(
ToolLocationHelper
.GetSDKDesignTimeFolders);
338
var getDesignTimeFolders2 = new GetSDKFolders2(
ToolLocationHelper
.GetSDKDesignTimeFolders);
Microsoft.Build.Utilities.UnitTests (301)
ProcessorArchitecture_Tests.cs (10)
66
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness32);
69
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness64);
74
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness64);
77
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness32);
82
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness32);
85
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness64);
94
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness64);
97
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness32);
102
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness64);
105
procArchitecture =
ToolLocationHelper
.ConvertDotNetFrameworkArchitectureToProcessorArchitecture(Utilities.DotNetFrameworkArchitecture.Bitness32);
ToolLocationHelper_Tests.cs (291)
45
ToolLocationHelper
.ClearStaticCaches();
51
string[] returnValue =
ToolLocationHelper
.GetApiContractReferences(Enumerable.Empty<ApiContract>(), string.Empty);
58
string[] returnValue =
ToolLocationHelper
.GetApiContractReferences(null, string.Empty);
68
string[] returnValue =
ToolLocationHelper
.GetApiContractReferences(new[] { new ApiContract { Name = "Foo", Version = "Bar" } }, tempDirectory);
84
string[] returnValue =
ToolLocationHelper
.GetApiContractReferences(new[] { new ApiContract { Name = "Foo", Version = "Bar" } }, tempDirectory);
107
string[] returnValue =
ToolLocationHelper
.GetApiContractReferences(new[] { new ApiContract { Name = "Foo", Version = "Bar" } }, tempDirectory, tempVersion);
122
string sdkRootPath =
ToolLocationHelper
.GetPlatformSDKLocation("Windows", "8.1");
124
string returnValue =
ToolLocationHelper
.GetSDKContentFolderPath("Windows", "8.1", null, null, null, null);
131
string sdkRootPath =
ToolLocationHelper
.GetPlatformSDKLocation("Windows", "8.1");
133
string returnValue =
ToolLocationHelper
.GetSDKContentFolderPath("Windows", "8.1", null, null, null, @"DesignTime\CommonConfiguration\Neutral");
140
string expectedValue =
ToolLocationHelper
.GetPlatformSDKLocation("Windows", "10.0");
142
string versionedSDKValue =
ToolLocationHelper
.GetSDKContentFolderPath("Windows", "10.0", "UAP", "10.0.14944.0", "10.0.14944.0", null);
145
string unversionedSDKValue =
ToolLocationHelper
.GetSDKContentFolderPath("Windows", "10.0", "UAP", "10.0.10586.0", "10.0.10586.0", null);
156
string sdkRootPath =
ToolLocationHelper
.GetPlatformSDKLocation("Windows", "10.0");
157
string returnValue =
ToolLocationHelper
.GetSDKContentFolderPath("Windows", "10.0", "UAP", "10.0.14393.0", "10.0.14393.0", "UnionMetadata");
211
string returnValue =
ToolLocationHelper
.GetSDKContentFolderPath("Windows", "10.0", "UAP", "10.0.14944.0", "10.0.14944.0", "UnionMetadata", platformRootFolder);
236
ToolLocationHelper
.GatherExtensionSDKs(info, sdk);
261
ToolLocationHelper
.GatherExtensionSDKs(info, sdk);
287
ToolLocationHelper
.GatherExtensionSDKs(info, sdk);
313
ToolLocationHelper
.GatherExtensionSDKs(info, sdk);
355
string foundToolPath =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile("MyTool.exe", temp35Directory, "x86");
375
ToolLocationHelper
.GetFrameworkIdentifiers(
387
ToolLocationHelper
.HighestVersionOfTargetFrameworkIdentifier(
408
FrameworkNameVersioning highestMoniker =
ToolLocationHelper
.HighestVersionOfTargetFrameworkIdentifier(testPath, ".UnKNownFramework");
440
ToolLocationHelper
.HighestVersionOfTargetFrameworkIdentifier(testPath, ".UnknownFramework");
474
string foundToolPath =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile("MyTool.exe", temp40Directory, "x86");
493
string foundToolPath =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile("MyTool.exe", "C:\\Path", null);
496
foundToolPath =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile("MyTool.exe", null, "x86");
499
foundToolPath =
ToolLocationHelper
.GetPathToDotNetFrameworkSdkFile(null, "c:\\path", "x86");
513
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.Version40),
624
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.Version11).ShouldBe(FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV11);
625
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.Version20).ShouldBe(FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV20);
626
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.Version30).ShouldBe(FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV30);
627
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.Version35).ShouldBe(FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV35);
628
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.Version40).ShouldBe(FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV40);
629
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.VersionLatest).ShouldBe(FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV40);
630
ToolLocationHelper
.GetDotNetFrameworkRootRegistryKey(TargetDotNetFrameworkVersion.VersionLatest).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
631
ToolLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion.Latest).ShouldBe(FrameworkLocationHelper.dotNetFrameworkVersionFolderPrefixV40);
632
ToolLocationHelper
.GetDotNetFrameworkRootRegistryKey(TargetDotNetFrameworkVersion.Latest).ShouldBe(FrameworkLocationHelper.fullDotNetFrameworkRegistryKey);
634
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version11).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkV11);
635
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkV20);
636
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version30).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkV30);
637
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version35).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkV35);
638
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version40).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkV40);
639
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.VersionLatest).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkV40);
640
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Latest).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkV40);
642
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version11, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
644
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
646
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version30, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
648
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version35, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
651
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version40, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
653
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.VersionLatest, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
655
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Latest, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
661
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version11, UtilitiesDotNetFrameworkArchitecture.Bitness64).ShouldBe(
663
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20, UtilitiesDotNetFrameworkArchitecture.Bitness64).ShouldBe(
665
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version30, UtilitiesDotNetFrameworkArchitecture.Bitness64).ShouldBe(
667
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version35, UtilitiesDotNetFrameworkArchitecture.Bitness64).ShouldBe(
670
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version40, UtilitiesDotNetFrameworkArchitecture.Bitness64).ShouldBe(
672
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.VersionLatest, UtilitiesDotNetFrameworkArchitecture.Bitness64).ShouldBe(
674
ToolLocationHelper
.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Latest, UtilitiesDotNetFrameworkArchitecture.Bitness64).ShouldBe(
682
string net20Path =
ToolLocationHelper
.GetPathToDotNetFrameworkFile("MSBuild.exe", TargetDotNetFrameworkVersion.Version20);
684
net20Path?.ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile("MSBuild.exe", "2.0"));
686
string net35Path =
ToolLocationHelper
.GetPathToDotNetFrameworkFile("MSBuild.exe", TargetDotNetFrameworkVersion.Version35);
688
net35Path?.ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile("MSBuild.exe", "3.5"));
690
ToolLocationHelper
.GetPathToDotNetFrameworkFile("MSBuild.exe", TargetDotNetFrameworkVersion.Version40).ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile("MSBuild.exe", "4.0"));
694
tv12path.ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile(MSBuildExeName, ObjectModelHelpers.MSBuildDefaultToolsVersion));
695
tv12path.ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile(MSBuildExeName,
ToolLocationHelper
.CurrentToolsVersion));
705
string net20Path =
ToolLocationHelper
.GetPathToDotNetFrameworkFile("msbuild.exe", TargetDotNetFrameworkVersion.Version20, UtilitiesDotNetFrameworkArchitecture.Bitness32);
706
net20Path?.ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile("msbuild.exe", "2.0", UtilitiesDotNetFrameworkArchitecture.Bitness32));
708
string net35Path =
ToolLocationHelper
.GetPathToDotNetFrameworkFile("msbuild.exe", TargetDotNetFrameworkVersion.Version35, UtilitiesDotNetFrameworkArchitecture.Bitness32);
709
net35Path?.ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile("msbuild.exe", "3.5", UtilitiesDotNetFrameworkArchitecture.Bitness32));
711
ToolLocationHelper
.GetPathToDotNetFrameworkFile("msbuild.exe", TargetDotNetFrameworkVersion.Version40, UtilitiesDotNetFrameworkArchitecture.Bitness32).ShouldBe(
712
ToolLocationHelper
.GetPathToBuildToolsFile("msbuild.exe", "4.0", UtilitiesDotNetFrameworkArchitecture.Bitness32));
717
tv12path.ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile("msbuild.exe", ObjectModelHelpers.MSBuildDefaultToolsVersion, UtilitiesDotNetFrameworkArchitecture.Bitness32));
718
tv12path.ShouldBe(
ToolLocationHelper
.GetPathToBuildToolsFile("msbuild.exe",
ToolLocationHelper
.CurrentToolsVersion, UtilitiesDotNetFrameworkArchitecture.Bitness32));
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);
852
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue((TargetDotNetFrameworkVersion)99, vsVersion));
858
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(dotNetVersion, (VisualStudioVersion)99));
866
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.dotNetFrameworkSdkInstallKeyValueV11);
869
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.dotNetFrameworkSdkInstallKeyValueV20);
872
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version30, vsVersion));
875
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(InstallationFolder);
878
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version40, vsVersion).ShouldBe(InstallationFolder);
881
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version45, vsVersion).ShouldBe(InstallationFolder);
885
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
886
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
887
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version120).ShouldBe(InstallationFolder);
888
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version140).ShouldBe(InstallationFolder);
891
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
892
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
893
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
894
ToolLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version140).ShouldBe(InstallationFolder);
907
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPathToDotNetFrameworkSdk((TargetDotNetFrameworkVersion)99, vsVersion));
913
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(dotNetVersion, (VisualStudioVersion)99));
941
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkSdkV11);
944
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(FrameworkLocationHelper.PathToDotNetFrameworkSdkV20);
947
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version30, vsVersion));
950
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version35, vsVersion).ShouldBe(pathToSdk35InstallRoot);
954
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version100).ShouldBe(pathToSdkV4InstallRootOnVS10);
955
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version110).ShouldBe(pathToSdkV4InstallRootOnVS11);
956
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
957
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
960
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version100).ShouldBe(pathToSdkV4InstallRootOnVS11);
961
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version110).ShouldBe(pathToSdkV4InstallRootOnVS11);
962
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
963
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
966
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100));
967
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110));
968
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version120).ShouldBe(pathToSdkV4InstallRootOnVS12);
969
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
972
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100));
973
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110));
974
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120));
975
ToolLocationHelper
.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version140).ShouldBe(pathToSdkV4InstallRootOnVS14);
1374
string path =
ToolLocationHelper
.ChainReferenceAssemblyPath(@"PathDoesNotExistSoICannotChain");
1406
string path =
ToolLocationHelper
.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1"));
1443
string path =
ToolLocationHelper
.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1"));
1473
string path =
ToolLocationHelper
.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1"));
1503
string path =
ToolLocationHelper
.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.1"));
1533
string path =
ToolLocationHelper
.ChainReferenceAssemblyPath(Path.Combine(tempDirectory, "v4.0"));
1565
string path =
ToolLocationHelper
.ChainReferenceAssemblyPath(tempDirectoryPath);
1601
ToolLocationHelper
.ChainReferenceAssemblyPath(tempDirectoryPath);
1635
ToolLocationHelper
.ChainReferenceAssemblyPath(tempDirectoryPath);
1693
IList<string> directories =
ToolLocationHelper
.GetPathToReferenceAssemblies(tempDirectory, frameworkName);
1754
string displayName40 =
ToolLocationHelper
.GetDisplayNameForTargetFrameworkDirectory(framework40Directory, frameworkName);
1757
string displayName39 =
ToolLocationHelper
.GetDisplayNameForTargetFrameworkDirectory(framework39Directory, frameworkName);
1811
IList<string> directories =
ToolLocationHelper
.GetPathToReferenceAssemblies(tempDirectory, frameworkName);
1840
ToolLocationHelper
.GetPathToReferenceAssemblies("Not Null String", (FrameworkNameVersioning)null);
1851
ToolLocationHelper
.GetPathToReferenceAssemblies(null, (FrameworkNameVersioning)null);
1863
ToolLocationHelper
.GetPathToReferenceAssemblies(null, frameworkName);
1876
ToolLocationHelper
.GetPathToReferenceAssemblies(string.Empty, frameworkName);
1889
ToolLocationHelper
.GetPathToReferenceAssemblies(string.Empty, frameworkName);
1905
ToolLocationHelper
.GetPathToReferenceAssemblies((FrameworkNameVersioning)null);
1920
if (
ToolLocationHelper
.GetPathToDotNetFrameworkReferenceAssemblies(TargetDotNetFrameworkVersion.Version48) != null)
1923
IList<string> directories =
ToolLocationHelper
.GetPathToReferenceAssemblies(frameworkName);
1926
string referenceAssemblyPath =
ToolLocationHelper
.GetPathToDotNetFrameworkReferenceAssemblies(TargetDotNetFrameworkVersion.Version48);
1944
IList<string> directories =
ToolLocationHelper
.GetPathToReferenceAssemblies(frameworkName);
1992
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2006
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2022
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2039
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2053
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2069
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2089
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2108
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2122
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2157
string pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "x86");
2160
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "x64");
2163
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "itanium");
2168
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "RandomPlatform");
2173
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "RandomPlatform");
2189
IList<string> referencePaths =
ToolLocationHelper
.GetPathToReferenceAssemblies(new FrameworkNameVersioning(".NETFramework", new Version("4.0")));
2203
string pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "x86");
2207
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "x64");
2210
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "itanium");
2213
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "RandomPlatform");
2248
string pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "x86");
2251
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "x64");
2254
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "itanium");
2257
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "RandomPlatform");
2272
IList<string> referencePaths =
ToolLocationHelper
.GetPathToReferenceAssemblies(new FrameworkNameVersioning(".NETFramework", new Version("4.0")));
2286
string pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "x86");
2290
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "x64");
2293
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "itanium");
2296
pathToFramework =
ToolLocationHelper
.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "RandomPlatform");
2314
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2335
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2350
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2364
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2378
IList<string> list =
ToolLocationHelper
.HandleLegacyDotNetFrameworkReferenceAssemblyPaths(legacyHelper.GetDotNetVersionToPathDelegate, legacyHelper.GetDotNetReferenceAssemblyDelegate, frameworkName);
2508
string stdLibPath =
ToolLocationHelper
.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null, rootDir);
2519
string v45Path =
ToolLocationHelper
.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty);
2521
string v45PathWithNullRoot =
ToolLocationHelper
.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null);
2538
string stdLibPath =
ToolLocationHelper
.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null, null, fallbackSearchPaths);
2563
string stdLibPath =
ToolLocationHelper
.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null, rootDir, fallbackSearchPaths);
2575
string v45Path =
ToolLocationHelper
.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty);
2577
string v45PathWithNullRoot =
ToolLocationHelper
.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null, null);
2591
=>
ToolLocationHelper
.GetPathToReferenceAssemblies(frameworkName, "v" + frameworkVersion, frameworkProfile, customFrameworkDir));
2606
=>
ToolLocationHelper
.GetPathToReferenceAssemblies(
2622
=>
ToolLocationHelper
.GetPathToReferenceAssemblies(
2637
=>
ToolLocationHelper
.GetPathToReferenceAssemblies(
2655
=>
ToolLocationHelper
.GetPathToReferenceAssemblies(
2670
=>
ToolLocationHelper
.GetPathToReferenceAssemblies(
2696
var v45Paths =
ToolLocationHelper
.GetPathToReferenceAssemblies(frameworkName, frameworkVersion, string.Empty);
2699
var v45PathsWithNullRoot =
ToolLocationHelper
.GetPathToReferenceAssemblies(frameworkName, frameworkVersion, string.Empty, null);
2710
var v45Paths =
ToolLocationHelper
.GetPathToReferenceAssemblies(frameworkName, frameworkVersion, string.Empty);
2713
var v45PathsWithNullRoot =
ToolLocationHelper
.GetPathToReferenceAssemblies(frameworkName, frameworkVersion, string.Empty, null, null);
2844
internal
ToolLocationHelper
.VersionToPath GetDotNetVersionToPathDelegate => GetDotNetFramework;
2849
internal
ToolLocationHelper
.VersionToPath GetDotNetReferenceAssemblyDelegate => GetDotNetFrameworkReferenceAssemblies;
2978
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPlatformExtensionSDKLocations(identifier, version));
2979
Should.Throw<ArgumentException>(() =>
ToolLocationHelper
.GetPlatformSDKLocation(identifier, version));
2993
IDictionary<string, string> sdks =
ToolLocationHelper
.GetPlatformExtensionSDKLocations(new[] { _fakeStructureRoot }, null, "FOO", new Version(1, 0));
2997
sdks =
ToolLocationHelper
.GetPlatformExtensionSDKLocations(new[] { _fakeStructureRoot }, null, "MyPlatform", new Version(3, 0));
3002
sdks =
ToolLocationHelper
.GetPlatformExtensionSDKLocations(new[] { _fakeStructureRoot }, null, "MyPlatform", new Version(4, 0));
3010
sdks =
ToolLocationHelper
.GetPlatformExtensionSDKLocations(new[] { _fakeStructureRoot }, null, "MyPlatform", new Version(1, 0));
3030
IDictionary<string, string> sdks =
ToolLocationHelper
.GetPlatformExtensionSDKLocations(new[] { _fakeStructureRoot }, null, "FOO", new Version(1, 0));
3038
string path =
ToolLocationHelper
.GetPlatformExtensionSDKLocation(
3047
path =
ToolLocationHelper
.GetPlatformExtensionSDKLocation(
3056
path =
ToolLocationHelper
.GetPlatformExtensionSDKLocation("Something, Version=1.0", "MyPlatform", new Version(4, 0), new[] { _fakeStructureRoot }, null);
3082
ToolLocationHelper
.GatherSDKListFromDirectory(paths, targetPlatform);
3097
Should.Throw<ArgumentException>(() => {
ToolLocationHelper
.GatherSDKListFromDirectory(paths, targetPlatform); });
3112
ToolLocationHelper
.GatherSDKListFromDirectory(paths, targetPlatform);
3481
IList<TargetPlatformSDK> sdkList =
ToolLocationHelper
.GetTargetPlatformSdks(new[] { _fakeStructureRoot }, null);
3482
IList<TargetPlatformSDK> filteredSdkList =
ToolLocationHelper
.FilterTargetPlatformSdks(sdkList, new Version(6, 2, 5), new Version(12, 0));
3483
IList<TargetPlatformSDK> filteredSdkList1 =
ToolLocationHelper
.FilterTargetPlatformSdks(sdkList, new Version(6, 2, 1), new Version(10, 0));
3484
IList<TargetPlatformSDK> filteredSdkList2 =
ToolLocationHelper
.FilterTargetPlatformSdks(sdkList, new Version(6, 2, 3), new Version(10, 0));
3485
IList<TargetPlatformSDK> filteredSdkList3 =
ToolLocationHelper
.FilterTargetPlatformSdks(sdkList, new Version(6, 2, 3), new Version(11, 0));
3488
IList<TargetPlatformSDK> filteredSdkList4 =
ToolLocationHelper
.FilterTargetPlatformSdks(sdkList, new Version(6, 2, 3), null);
3491
IList<TargetPlatformSDK> filteredSdkList5 =
ToolLocationHelper
.FilterTargetPlatformSdks(sdkList, null, new Version(10, 0));
3494
IList<TargetPlatformSDK> filteredSdkList6 =
ToolLocationHelper
.FilterTargetPlatformSdks(sdkList, null, null);
3525
IDictionary<string, string> extensionSDKs =
ToolLocationHelper
.GetPlatformExtensionSDKLocations(new[] { _fakeStructureRoot }, null, "MyPlatform", new Version(4, 0));
3526
IDictionary<string, string> filteredExtensionSDKs1 =
ToolLocationHelper
.FilterPlatformExtensionSDKs(new Version(8, 0), extensionSDKs);
3527
IDictionary<string, string> filteredExtensionSDKs2 =
ToolLocationHelper
.FilterPlatformExtensionSDKs(new Version(9, 0), extensionSDKs);
3528
IDictionary<string, string> filteredExtensionSDKs3 =
ToolLocationHelper
.FilterPlatformExtensionSDKs(new Version(10, 0), extensionSDKs);
3790
ToolLocationHelper
.GatherSDKListFromDirectory(paths, targetPlatforms);
3977
Should.Throw<ArgumentNullException>(() =>
ToolLocationHelper
.GetPlatformsForSDK(null, new Version("1.0")));
3987
Should.Throw<ArgumentNullException>(() =>
ToolLocationHelper
.GetPlatformsForSDK("AnySDK", null));
3997
ToolLocationHelper
.GetPlatformsForSDK("AnySDK", new Version("1.0"), Array.Empty<string>(), "").Any().ShouldBeFalse();
4008
IEnumerable<string> myPlatforms =
ToolLocationHelper
.GetPlatformsForSDK("MyPlatform", new Version("8.0"), new[] { _fakeStructureRoot }, null);
4021
ToolLocationHelper
.GetPlatformsForSDK("DoesNotExistPlatform", new Version("0.0.0.0"), new[] { _fakeStructureRoot }, null).Any().ShouldBeFalse();
4031
ToolLocationHelper
.GetPlatformsForSDK("MyPlatform", new Version("0.0.0.0"), new[] { _fakeStructureRoot }, null).Any().ShouldBeFalse();
4041
ToolLocationHelper
.GetPlatformsForSDK("Windows", new Version("8.0"), new[] { _fakeStructureRoot }, null).Any().ShouldBeFalse();
4055
IList<TargetPlatformSDK> sdks =
ToolLocationHelper
.GetTargetPlatformSdks(new[] { _fakeStructureRoot }, null);
4093
ToolLocationHelper
.GetFoldersInVSInstalls(null, null, "relativePath").Count().ShouldBe(0);
4125
ToolLocationHelper
.FindRootFolderWhereAllFilesExist(roots, "file1.txt").ShouldBe(rootDirectories[0]);
4126
ToolLocationHelper
.FindRootFolderWhereAllFilesExist(roots, @"file1.txt;subdir\file2.txt").ShouldBe(rootDirectories[1]);
4127
ToolLocationHelper
.FindRootFolderWhereAllFilesExist(roots, @"file1.txt;subdir\file3.txt").ShouldBe(String.Empty);
4128
ToolLocationHelper
.FindRootFolderWhereAllFilesExist(@"c:<>;" + roots, "file1.txt").ShouldBe(rootDirectories[0]); // should ignore invalid dir