119 references to FrameworkLocationHelper
Microsoft.Build.Utilities.Core (57)
FrameworkLocationHelper.cs (1)
1532
string referencePath = GenerateReferenceAssemblyPath(
FrameworkLocationHelper
.programFilesReferenceAssemblyLocation, this.FrameworkName);
ToolLocationHelper.cs (56)
1630
public static string GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersion version) =>
FrameworkLocationHelper
.GetDotNetFrameworkVersionFolderPrefix(TargetDotNetFrameworkVersionToSystemVersion(version));
1637
public static string GetDotNetFrameworkRootRegistryKey(TargetDotNetFrameworkVersion version) =>
FrameworkLocationHelper
.fullDotNetFrameworkRegistryKey;
1657
return
FrameworkLocationHelper
.GetDotNetFrameworkSdkRootRegistryKey(dotNetFrameworkVersion, vsVersion);
1678
return
FrameworkLocationHelper
.GetDotNetFrameworkSdkInstallKeyValue(dotNetFrameworkVersion, vsVersion);
1698
return
FrameworkLocationHelper
.GetPathToDotNetFramework(frameworkVersion, sharedArchitecture);
1730
return
FrameworkLocationHelper
.GetPathToDotNetFrameworkSdk(dotNetFrameworkVersion, vsVersion);
1739
=>
FrameworkLocationHelper
.GetPathToDotNetFrameworkReferenceAssemblies(TargetDotNetFrameworkVersionToSystemVersion(version));
1816
if (targetFrameworkIdentifier.Equals(
FrameworkLocationHelper
.dotNetFrameworkIdentifier, StringComparison.OrdinalIgnoreCase) && frameworkVersion.Major < 4 && string.IsNullOrEmpty(targetFrameworkProfile))
1834
string legacyMsCorlib20Path =
FrameworkLocationHelper
.GetPathToDotNetFrameworkV20(targetedArchitecture);
1939
FrameworkLocationHelper
.programFilesReferenceAssemblyLocation,
1971
if (frameworkName.Version ==
FrameworkLocationHelper
.dotNetFrameworkVersion20)
1975
else if (frameworkName.Version ==
FrameworkLocationHelper
.dotNetFrameworkVersion30)
1979
else if (frameworkName.Version ==
FrameworkLocationHelper
.dotNetFrameworkVersion35)
1998
return
FrameworkLocationHelper
.GetPathToDotNetFrameworkSdkTools(dotNetFrameworkVersion, vsVersion);
2006
return
FrameworkLocationHelper
.dotNetFrameworkVersion11;
2009
return
FrameworkLocationHelper
.dotNetFrameworkVersion20;
2012
return
FrameworkLocationHelper
.dotNetFrameworkVersion30;
2015
return
FrameworkLocationHelper
.dotNetFrameworkVersion35;
2018
return
FrameworkLocationHelper
.dotNetFrameworkVersion40;
2021
return
FrameworkLocationHelper
.dotNetFrameworkVersion45;
2024
return
FrameworkLocationHelper
.dotNetFrameworkVersion451;
2027
return
FrameworkLocationHelper
.dotNetFrameworkVersion452;
2030
return
FrameworkLocationHelper
.dotNetFrameworkVersion46;
2033
return
FrameworkLocationHelper
.dotNetFrameworkVersion461;
2036
return
FrameworkLocationHelper
.dotNetFrameworkVersion462;
2039
return
FrameworkLocationHelper
.dotNetFrameworkVersion47;
2042
return
FrameworkLocationHelper
.dotNetFrameworkVersion471;
2045
return
FrameworkLocationHelper
.dotNetFrameworkVersion472;
2048
return
FrameworkLocationHelper
.dotNetFrameworkVersion48;
2052
return
FrameworkLocationHelper
.dotNetFrameworkVersion481;
2064
VisualStudioVersion.Version100 =>
FrameworkLocationHelper
.visualStudioVersion100,
2065
VisualStudioVersion.Version110 =>
FrameworkLocationHelper
.visualStudioVersion110,
2066
VisualStudioVersion.Version120 =>
FrameworkLocationHelper
.visualStudioVersion120,
2067
VisualStudioVersion.Version140 =>
FrameworkLocationHelper
.visualStudioVersion140,
2068
VisualStudioVersion.Version150 =>
FrameworkLocationHelper
.visualStudioVersion150,
2069
VisualStudioVersion.Version160 =>
FrameworkLocationHelper
.visualStudioVersion160,
2070
VisualStudioVersion.Version170 =>
FrameworkLocationHelper
.visualStudioVersion170,
2329
string path =
FrameworkLocationHelper
.GenerateReferenceAssemblyPath(targetFrameworkRootPath, frameworkName);
2905
FrameworkLocationHelper
.programFiles32,
3415
=>
FrameworkLocationHelper
.GetPathToWindowsSdk(TargetDotNetFrameworkVersionToSystemVersion(version));
3556
_ =>
FrameworkLocationHelper
.GeneratePathToBuildToolsForToolsVersion(toolsVersion, ConvertToSharedDotNetFrameworkArchitecture(architecture)),
3635
IList<string> frameworkIdentifiers = GetFrameworkIdentifiers(
FrameworkLocationHelper
.programFilesReferenceAssemblyLocation);
3638
IList<string> frameworkVersions = GetFrameworkVersions(
FrameworkLocationHelper
.programFilesReferenceAssemblyLocation, frameworkIdentifier);
3644
IList<string> frameworkProfile = GetFrameworkProfiles(
FrameworkLocationHelper
.programFilesReferenceAssemblyLocation, frameworkIdentifier, frameworkVersion);
3701
public static string GetProgramFilesReferenceAssemblyRoot() =>
FrameworkLocationHelper
.programFilesReferenceAssemblyLocation;
3769
if (frameworkReferenceRoot.Equals(
FrameworkLocationHelper
.programFilesReferenceAssemblyLocation, StringComparison.OrdinalIgnoreCase))
3778
string.Equals(folder.Name,
FrameworkLocationHelper
.dotNetFrameworkVersionFolderPrefixV30, StringComparison.OrdinalIgnoreCase)
3779
|| string.Equals(folder.Name,
FrameworkLocationHelper
.dotNetFrameworkVersionFolderPrefixV35, StringComparison.OrdinalIgnoreCase)))
3785
if (string.Equals(folder.Name,
FrameworkLocationHelper
.dotNetFrameworkIdentifier, StringComparison.OrdinalIgnoreCase))
3806
frameworkIdentifiers.Add(
FrameworkLocationHelper
.dotNetFrameworkIdentifier);
3812
frameworkIdentifiers.Add(
FrameworkLocationHelper
.dotNetFrameworkIdentifier);
3839
if (string.Equals(frameworkIdentifier,
FrameworkLocationHelper
.dotNetFrameworkIdentifier, StringComparison.OrdinalIgnoreCase))
3950
string dotNextFx30RefPath = Path.Combine(frameworkReferenceRoot,
FrameworkLocationHelper
.dotNetFrameworkVersionFolderPrefixV30);
3953
versions.Add(
FrameworkLocationHelper
.dotNetFrameworkVersionFolderPrefixV30);
3957
string dotNextFx35RefPath = Path.Combine(frameworkReferenceRoot,
FrameworkLocationHelper
.dotNetFrameworkVersionFolderPrefixV35);
3960
versions.Add(
FrameworkLocationHelper
.dotNetFrameworkVersionFolderPrefixV35);
Microsoft.Build.Utilities.UnitTests (62)
ToolLocationHelper_Tests.cs (62)
511
string path =
FrameworkLocationHelper
.FindDotNetFrameworkPath(
533
string path =
FrameworkLocationHelper
.FindDotNetFrameworkPath(
550
string path =
FrameworkLocationHelper
.FindDotNetFrameworkPath(
567
string path =
FrameworkLocationHelper
.FindDotNetFrameworkPath(
585
string path =
FrameworkLocationHelper
.FindDotNetFrameworkPath(
608
string path =
FrameworkLocationHelper
.FindDotNetFrameworkPath(
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);
643
FrameworkLocationHelper
.GetPathToDotNetFrameworkV11(SharedDotNetFrameworkArchitecture.Bitness32));
645
FrameworkLocationHelper
.GetPathToDotNetFrameworkV20(SharedDotNetFrameworkArchitecture.Bitness32));
647
FrameworkLocationHelper
.GetPathToDotNetFrameworkV30(SharedDotNetFrameworkArchitecture.Bitness32));
649
FrameworkLocationHelper
.GetPathToDotNetFrameworkV35(SharedDotNetFrameworkArchitecture.Bitness32));
652
FrameworkLocationHelper
.GetPathToDotNetFrameworkV40(SharedDotNetFrameworkArchitecture.Bitness32));
654
FrameworkLocationHelper
.GetPathToDotNetFrameworkV40(SharedDotNetFrameworkArchitecture.Bitness32));
656
FrameworkLocationHelper
.GetPathToDotNetFrameworkV40(SharedDotNetFrameworkArchitecture.Bitness32));
662
FrameworkLocationHelper
.GetPathToDotNetFrameworkV11(SharedDotNetFrameworkArchitecture.Bitness64));
664
FrameworkLocationHelper
.GetPathToDotNetFrameworkV20(SharedDotNetFrameworkArchitecture.Bitness64));
666
FrameworkLocationHelper
.GetPathToDotNetFrameworkV30(SharedDotNetFrameworkArchitecture.Bitness64));
668
FrameworkLocationHelper
.GetPathToDotNetFrameworkV35(SharedDotNetFrameworkArchitecture.Bitness64));
671
FrameworkLocationHelper
.GetPathToDotNetFrameworkV40(SharedDotNetFrameworkArchitecture.Bitness64));
673
FrameworkLocationHelper
.GetPathToDotNetFrameworkV40(SharedDotNetFrameworkArchitecture.Bitness64));
675
FrameworkLocationHelper
.GetPathToDotNetFrameworkV40(SharedDotNetFrameworkArchitecture.Bitness64));
739
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(
FrameworkLocationHelper
.fullDotNetFrameworkRegistryKey);
742
ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(
FrameworkLocationHelper
.fullDotNetFrameworkRegistryKey);
749
vsVersion == VisualStudioVersion.Version100 ?
FrameworkLocationHelper
.fullDotNetFrameworkSdkRegistryKeyV35OnVS10 :
FrameworkLocationHelper
.fullDotNetFrameworkSdkRegistryKeyV35OnVS11);
866
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(
FrameworkLocationHelper
.dotNetFrameworkSdkInstallKeyValueV11);
869
ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(
FrameworkLocationHelper
.dotNetFrameworkSdkInstallKeyValueV20);
916
string pathToSdk35InstallRoot = Path.Combine(
FrameworkLocationHelper
.programFiles32, @"Microsoft SDKs\Windows\v7.0A\");
917
string pathToSdkV4InstallRootOnVS10 = Path.Combine(
FrameworkLocationHelper
.programFiles32, @"Microsoft SDKs\Windows\v7.0A\");
918
string pathToSdkV4InstallRootOnVS11 = Path.Combine(
FrameworkLocationHelper
.programFiles32, @"Microsoft SDKs\Windows\v8.0A\");
928
string pathToSdkV4InstallRootOnVS12 = Path.Combine(
FrameworkLocationHelper
.programFiles32, @"Microsoft SDKs\Windows\v8.1A\");
936
string pathToSdkV4InstallRootOnVS14 = Path.Combine(
FrameworkLocationHelper
.programFiles32, @"Microsoft SDKs\Windows\v10.0A\");
941
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version11, vsVersion).ShouldBe(
FrameworkLocationHelper
.PathToDotNetFrameworkSdkV11);
944
ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version20, vsVersion).ShouldBe(
FrameworkLocationHelper
.PathToDotNetFrameworkSdkV20);
1278
string path =
FrameworkLocationHelper
.GenerateReferenceAssemblyPath(targetFrameworkRootPath, frameworkName);
1294
string path =
FrameworkLocationHelper
.GenerateReferenceAssemblyPath(targetFrameworkRootPath, frameworkName);
1316
FrameworkLocationHelper
.GenerateReferenceAssemblyPath(targetFrameworkRootPath, frameworkName);
1337
FrameworkLocationHelper
.GenerateReferenceAssemblyPath(targetFrameworkRootPath, frameworkName);
1360
FrameworkLocationHelper
.GenerateReferenceAssemblyPath(targetFrameworkRootPath, frameworkName);
1956
string result =
FrameworkLocationHelper
.GenerateProgramFiles32();
1969
string programFiles32 =
FrameworkLocationHelper
.GenerateProgramFiles32();
1970
string referenceAssemblyRoot =
FrameworkLocationHelper
.GenerateProgramFilesReferenceAssemblyRoot();
2141
string frameworkDirectory2032bit =
FrameworkLocationHelper
.GetPathToDotNetFrameworkV20(SharedDotNetFrameworkArchitecture.Bitness32);
2142
string frameworkDirectory2064bit =
FrameworkLocationHelper
.GetPathToDotNetFrameworkV20(SharedDotNetFrameworkArchitecture.Bitness64);
2143
string frameworkDirectory20Current =
FrameworkLocationHelper
.GetPathToDotNetFrameworkV20(SharedDotNetFrameworkArchitecture.Current);
2233
string frameworkDirectory2032bit =
FrameworkLocationHelper
.GetPathToDotNetFrameworkV20(SharedDotNetFrameworkArchitecture.Bitness32);
2234
string frameworkDirectory20Current =
FrameworkLocationHelper
.GetPathToDotNetFrameworkV20(SharedDotNetFrameworkArchitecture.Current);