84 references to ProcessorArchitecture
Microsoft.Build.Tasks.Core (16)
AssemblyDependency\ResolveAssemblyReference.cs (11)
3136
return Microsoft.Build.Utilities.
ProcessorArchitecture
.AMD64;
3140
return Microsoft.Build.Utilities.
ProcessorArchitecture
.IA64;
3144
return Microsoft.Build.Utilities.
ProcessorArchitecture
.MSIL;
3148
return Microsoft.Build.Utilities.
ProcessorArchitecture
.X86;
3152
return Microsoft.Build.Utilities.
ProcessorArchitecture
.ARM;
3162
if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.
ProcessorArchitecture
.AMD64, StringComparison.OrdinalIgnoreCase))
3166
else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.
ProcessorArchitecture
.IA64, StringComparison.OrdinalIgnoreCase))
3170
else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.
ProcessorArchitecture
.MSIL, StringComparison.OrdinalIgnoreCase))
3174
else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.
ProcessorArchitecture
.X86, StringComparison.OrdinalIgnoreCase))
3178
else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.
ProcessorArchitecture
.ARM, StringComparison.OrdinalIgnoreCase))
3182
else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.
ProcessorArchitecture
.ARM64, StringComparison.OrdinalIgnoreCase))
LC.cs (1)
136
string pathToTool = SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists,
ProcessorArchitecture
.CurrentProcessArchitecture, SdkToolsPath, ToolExe, Log, true);
SdkToolsPathUtility.cs (4)
63
ProcessorArchitecture
.ARM => Path.Combine(sdkToolsPath, "arm"),
64
ProcessorArchitecture
.AMD64 => Path.Combine(sdkToolsPath, "x64"),
65
ProcessorArchitecture
.IA64 => Path.Combine(sdkToolsPath, "ia64"),
73
if (currentArchitecture !=
ProcessorArchitecture
.X86)
Microsoft.Build.Utilities.Core (28)
ToolLocationHelper.cs (28)
3313
if (!string.Equals(
ProcessorArchitecture
.CurrentProcessArchitecture, convertedArchitecture, StringComparison.OrdinalIgnoreCase))
3315
filePath = GetPathToDotNetFrameworkSdkFile(fileName, pathToSdk,
ProcessorArchitecture
.CurrentProcessArchitecture);
3319
if (filePath == null && !string.Equals(
ProcessorArchitecture
.X86,
ProcessorArchitecture
.CurrentProcessArchitecture, StringComparison.OrdinalIgnoreCase))
3321
filePath = GetPathToDotNetFrameworkSdkFile(fileName, pathToSdk,
ProcessorArchitecture
.X86);
3342
case
ProcessorArchitecture
.AMD64:
3345
case
ProcessorArchitecture
.IA64:
3348
case
ProcessorArchitecture
.X86:
3349
case
ProcessorArchitecture
.ARM:
3378
if (
ProcessorArchitecture
.CurrentProcessArchitecture ==
ProcessorArchitecture
.ARM ||
3379
ProcessorArchitecture
.CurrentProcessArchitecture ==
ProcessorArchitecture
.ARM64)
3381
return
ProcessorArchitecture
.ARM;
3383
return
ProcessorArchitecture
.X86;
3388
NativeMethodsShared.ProcessorArchitectures.X64 =>
ProcessorArchitecture
.AMD64,
3389
NativeMethodsShared.ProcessorArchitectures.IA64 =>
ProcessorArchitecture
.IA64,
3390
NativeMethodsShared.ProcessorArchitectures.ARM64 =>
ProcessorArchitecture
.ARM64,
3399
return
ProcessorArchitecture
.CurrentProcessArchitecture;
3480
if (!string.Equals(
ProcessorArchitecture
.CurrentProcessArchitecture, convertedArchitecture, StringComparison.OrdinalIgnoreCase))
3482
filePath = GetPathToWindowsSdkFile(fileName, pathToSdk,
ProcessorArchitecture
.CurrentProcessArchitecture);
3486
if (filePath == null && !string.Equals(
ProcessorArchitecture
.X86,
ProcessorArchitecture
.CurrentProcessArchitecture, StringComparison.OrdinalIgnoreCase))
3488
filePath = GetPathToWindowsSdkFile(fileName, pathToSdk,
ProcessorArchitecture
.X86);
3510
case
ProcessorArchitecture
.X86:
3513
case
ProcessorArchitecture
.AMD64:
3516
case
ProcessorArchitecture
.IA64:
3517
case
ProcessorArchitecture
.ARM:
Microsoft.Build.Utilities.UnitTests (40)
ProcessorArchitecture_Tests.cs (40)
20
NativeMethodsShared.ProcessorArchitectures.X86 =>
ProcessorArchitecture
.X86,
21
NativeMethodsShared.ProcessorArchitectures.X64 =>
ProcessorArchitecture
.AMD64,
22
NativeMethodsShared.ProcessorArchitectures.IA64 =>
ProcessorArchitecture
.IA64,
23
NativeMethodsShared.ProcessorArchitectures.ARM =>
ProcessorArchitecture
.ARM,
24
NativeMethodsShared.ProcessorArchitectures.ARM64 =>
ProcessorArchitecture
.ARM64,
25
NativeMethodsShared.ProcessorArchitectures.WASM =>
ProcessorArchitecture
.WASM,
26
NativeMethodsShared.ProcessorArchitectures.S390X =>
ProcessorArchitecture
.S390X,
27
NativeMethodsShared.ProcessorArchitectures.LOONGARCH64 =>
ProcessorArchitecture
.LOONGARCH64,
28
NativeMethodsShared.ProcessorArchitectures.ARMV6 =>
ProcessorArchitecture
.ARMV6,
29
NativeMethodsShared.ProcessorArchitectures.PPC64LE =>
ProcessorArchitecture
.PPC64LE,
39
ProcessorArchitecture
.X86.ShouldBe("x86"); // "x86 ProcessorArchitecture isn't correct"
40
ProcessorArchitecture
.IA64.ShouldBe("IA64"); // "IA64 ProcessorArchitecture isn't correct"
41
ProcessorArchitecture
.AMD64.ShouldBe("AMD64"); // "AMD64 ProcessorArchitecture isn't correct"
42
ProcessorArchitecture
.MSIL.ShouldBe("MSIL"); // "MSIL ProcessorArchitecture isn't correct"
43
ProcessorArchitecture
.ARM.ShouldBe("ARM"); // "ARM ProcessorArchitecture isn't correct"
44
ProcessorArchitecture
.ARM64.ShouldBe("ARM64"); // "ARM ProcessorArchitecture isn't correct"
45
ProcessorArchitecture
.WASM.ShouldBe("WASM"); // "WASM ProcessorArchitecture isn't correct"
46
ProcessorArchitecture
.S390X.ShouldBe("S390X"); // "S390X ProcessorArchitecture isn't correct"
47
ProcessorArchitecture
.LOONGARCH64.ShouldBe("LOONGARCH64"); // "LOONGARCH64 ProcessorArchitecture isn't correct"
48
ProcessorArchitecture
.ARMV6.ShouldBe("ARMV6"); // "ARMV6 ProcessorArchitecture isn't correct"
49
ProcessorArchitecture
.PPC64LE.ShouldBe("PPC64LE"); // "PPC64LE ProcessorArchitecture isn't correct"
55
ProcessorArchitecture
.CurrentProcessArchitecture.ShouldBe(ProcessorArchitectureIntToString()); // "BuildUtilities.ProcessorArchitecture.CurrentProcessArchitecture returned an invalid match"
61
Console.WriteLine("BuildUtilities.ProcessorArchitecture.CurrentProcessArchitecture is: {0}",
ProcessorArchitecture
.CurrentProcessArchitecture);
63
switch (
ProcessorArchitecture
.CurrentProcessArchitecture)
65
case
ProcessorArchitecture
.ARM:
67
procArchitecture.ShouldBe(
ProcessorArchitecture
.ARM);
73
case
ProcessorArchitecture
.ARM64:
75
procArchitecture.ShouldBe(
ProcessorArchitecture
.ARM64);
78
procArchitecture.ShouldBe(
ProcessorArchitecture
.ARM);
81
case
ProcessorArchitecture
.X86:
83
procArchitecture.ShouldBe(
ProcessorArchitecture
.X86);
88
bool isValidResult = procArchitecture?.Equals(
ProcessorArchitecture
.AMD64) != false || procArchitecture.Equals(
ProcessorArchitecture
.IA64);
93
case
ProcessorArchitecture
.AMD64:
95
procArchitecture.ShouldBe(
ProcessorArchitecture
.AMD64);
98
procArchitecture.ShouldBe(
ProcessorArchitecture
.X86);
101
case
ProcessorArchitecture
.IA64:
103
procArchitecture.ShouldBe(
ProcessorArchitecture
.IA64);
106
procArchitecture.ShouldBe(
ProcessorArchitecture
.X86);
109
case
ProcessorArchitecture
.MSIL: