132 references to ProcessorArchitecture
Microsoft.Build.Tasks.Core (64)
Al.cs (2)
318
"x64".Equals(Platform, StringComparison.OrdinalIgnoreCase) ?
ProcessorArchitecture
.AMD64 : // x64 maps to AMD64 in GeneratePathToTool
319
ProcessorArchitecture
.CurrentProcessArchitecture;
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))
AxTlbBaseTask.cs (1)
111
Utilities.
ProcessorArchitecture
.CurrentProcessArchitecture,
ComReferenceInfo.cs (5)
154
case
ProcessorArchitecture
.AMD64:
155
case
ProcessorArchitecture
.IA64:
158
case
ProcessorArchitecture
.X86:
161
case
ProcessorArchitecture
.ARM:
162
case
ProcessorArchitecture
.MSIL:
GenerateResource.cs (1)
1083
Microsoft.Build.Utilities.
ProcessorArchitecture
.CurrentProcessArchitecture,
LC.cs (1)
136
string pathToTool = SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists,
ProcessorArchitecture
.CurrentProcessArchitecture, SdkToolsPath, ToolExe, Log, true);
ResGen.cs (2)
15
using MSBuildProcessorArchitecture = Microsoft.Build.Utilities.
ProcessorArchitecture
;
521
MSBuildProcessorArchitecture
.CurrentProcessArchitecture,
ResolveComReference.cs (19)
20
using UtilitiesProcessorArchitecture = Microsoft.Build.Utilities.
ProcessorArchitecture
;
236
if (
UtilitiesProcessorArchitecture
.X86.Equals(value, StringComparison.OrdinalIgnoreCase))
238
_targetProcessorArchitecture =
UtilitiesProcessorArchitecture
.X86;
240
else if (
UtilitiesProcessorArchitecture
.MSIL.Equals(value, StringComparison.OrdinalIgnoreCase))
242
_targetProcessorArchitecture =
UtilitiesProcessorArchitecture
.MSIL;
244
else if (
UtilitiesProcessorArchitecture
.AMD64.Equals(value, StringComparison.OrdinalIgnoreCase))
246
_targetProcessorArchitecture =
UtilitiesProcessorArchitecture
.AMD64;
248
else if (
UtilitiesProcessorArchitecture
.IA64.Equals(value, StringComparison.OrdinalIgnoreCase))
250
_targetProcessorArchitecture =
UtilitiesProcessorArchitecture
.IA64;
252
else if (
UtilitiesProcessorArchitecture
.ARM.Equals(value, StringComparison.OrdinalIgnoreCase))
254
_targetProcessorArchitecture =
UtilitiesProcessorArchitecture
.ARM;
256
else if (
UtilitiesProcessorArchitecture
.ARM64.Equals(value, StringComparison.OrdinalIgnoreCase))
258
_targetProcessorArchitecture =
UtilitiesProcessorArchitecture
.ARM64;
571
case
UtilitiesProcessorArchitecture
.ARM:
572
case
UtilitiesProcessorArchitecture
.X86:
575
case
UtilitiesProcessorArchitecture
.AMD64:
576
case
UtilitiesProcessorArchitecture
.IA64:
577
case
UtilitiesProcessorArchitecture
.ARM64:
580
case
UtilitiesProcessorArchitecture
.MSIL:
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)
SGen.cs (1)
317
pathToTool = SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists,
ProcessorArchitecture
.CurrentProcessArchitecture, SdkToolsPath, ToolExe, Log, true);
TlbReference.cs (16)
18
using UtilitiesProcessorArchitecture = Microsoft.Build.Utilities.
ProcessorArchitecture
;
186
case
UtilitiesProcessorArchitecture
.MSIL:
189
case
UtilitiesProcessorArchitecture
.AMD64:
192
case
UtilitiesProcessorArchitecture
.IA64:
195
case
UtilitiesProcessorArchitecture
.X86:
198
case
UtilitiesProcessorArchitecture
.ARM:
245
case
UtilitiesProcessorArchitecture
.MSIL:
248
case
UtilitiesProcessorArchitecture
.AMD64:
251
case
UtilitiesProcessorArchitecture
.IA64:
254
case
UtilitiesProcessorArchitecture
.X86:
257
case
UtilitiesProcessorArchitecture
.ARM:
315
case
UtilitiesProcessorArchitecture
.X86:
321
case
UtilitiesProcessorArchitecture
.AMD64:
327
case
UtilitiesProcessorArchitecture
.IA64:
333
case
UtilitiesProcessorArchitecture
.ARM:
339
case
UtilitiesProcessorArchitecture
.MSIL:
WinMDExp.cs (1)
245
return SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists, Microsoft.Build.Utilities.
ProcessorArchitecture
.CurrentProcessArchitecture, SdkToolsPath, ToolExe, Log, true);
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: