58 references to DotNetFrameworkArchitecture
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
27
string pathToBuildTools = ToolLocationHelper.GetPathToBuildTools(ToolLocationHelper.CurrentToolsVersion,
DotNetFrameworkArchitecture
.Bitness32);
Microsoft.Build.Utilities.Core (24)
ToolLocationHelper.cs (24)
19
using UtilitiesDotNetFrameworkArchitecture = Microsoft.Build.Utilities.
DotNetFrameworkArchitecture
;
1686
public static string GetPathToDotNetFramework(TargetDotNetFrameworkVersion version) => GetPathToDotNetFramework(version,
UtilitiesDotNetFrameworkArchitecture
.Current);
1694
public static string GetPathToDotNetFramework(TargetDotNetFrameworkVersion version,
UtilitiesDotNetFrameworkArchitecture
architecture)
3259
UtilitiesDotNetFrameworkArchitecture
.Current,
3269
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version,
UtilitiesDotNetFrameworkArchitecture
architecture) => GetPathToDotNetFrameworkSdkFile(fileName, version, VisualStudioVersion.VersionLatest, architecture);
3279
public static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version, VisualStudioVersion visualStudioVersion,
UtilitiesDotNetFrameworkArchitecture
architecture)
3298
private static string GetPathToDotNetFrameworkSdkFile(string fileName, TargetDotNetFrameworkVersion version, VisualStudioVersion visualStudioVersion,
UtilitiesDotNetFrameworkArchitecture
architecture, bool canFallBackIfNecessary)
3373
internal static string ConvertDotNetFrameworkArchitectureToProcessorArchitecture(
DotNetFrameworkArchitecture
architecture)
3377
case
DotNetFrameworkArchitecture
.Bitness32:
3384
case
DotNetFrameworkArchitecture
.Bitness64:
3398
case
DotNetFrameworkArchitecture
.Current:
3431
UtilitiesDotNetFrameworkArchitecture
.Current,
3444
public static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version, VisualStudioVersion visualStudioVersion,
DotNetFrameworkArchitecture
architecture)
3463
private static string GetPathToWindowsSdkFile(string fileName, TargetDotNetFrameworkVersion version, VisualStudioVersion visualStudioVersion,
DotNetFrameworkArchitecture
architecture, bool canFallBackIfNecessary)
3540
public static string GetPathToBuildTools(string toolsVersion) => GetPathToBuildTools(toolsVersion,
UtilitiesDotNetFrameworkArchitecture
.Current);
3548
public static string GetPathToBuildTools(string toolsVersion,
UtilitiesDotNetFrameworkArchitecture
architecture)
3568
public static string GetPathToBuildToolsFile(string fileName, string toolsVersion) => GetPathToBuildToolsFile(fileName, toolsVersion,
UtilitiesDotNetFrameworkArchitecture
.Current);
3579
public static string GetPathToBuildToolsFile(string fileName, string toolsVersion,
UtilitiesDotNetFrameworkArchitecture
architecture)
3602
public static string GetPathToDotNetFrameworkFile(string fileName, TargetDotNetFrameworkVersion version) => GetPathToDotNetFrameworkFile(fileName, version,
UtilitiesDotNetFrameworkArchitecture
.Current);
3611
public static string GetPathToDotNetFrameworkFile(string fileName, TargetDotNetFrameworkVersion version,
UtilitiesDotNetFrameworkArchitecture
architecture)
3711
private static SharedDotNetFrameworkArchitecture ConvertToSharedDotNetFrameworkArchitecture(
UtilitiesDotNetFrameworkArchitecture
architecture)
3716
case
UtilitiesDotNetFrameworkArchitecture
.Current:
3719
case
UtilitiesDotNetFrameworkArchitecture
.Bitness32:
3722
case
UtilitiesDotNetFrameworkArchitecture
.Bitness64:
Microsoft.Build.Utilities.UnitTests (33)
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 (23)
22
using UtilitiesDotNetFrameworkArchitecture = Microsoft.Build.Utilities.
DotNetFrameworkArchitecture
;
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(
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));