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 319ProcessorArchitecture.CurrentProcessArchitecture;
AssemblyDependency\ResolveAssemblyReference.cs (11)
3136return Microsoft.Build.Utilities.ProcessorArchitecture.AMD64; 3140return Microsoft.Build.Utilities.ProcessorArchitecture.IA64; 3144return Microsoft.Build.Utilities.ProcessorArchitecture.MSIL; 3148return Microsoft.Build.Utilities.ProcessorArchitecture.X86; 3152return Microsoft.Build.Utilities.ProcessorArchitecture.ARM; 3162if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.ProcessorArchitecture.AMD64, StringComparison.OrdinalIgnoreCase)) 3166else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.ProcessorArchitecture.IA64, StringComparison.OrdinalIgnoreCase)) 3170else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.ProcessorArchitecture.MSIL, StringComparison.OrdinalIgnoreCase)) 3174else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.ProcessorArchitecture.X86, StringComparison.OrdinalIgnoreCase)) 3178else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.ProcessorArchitecture.ARM, StringComparison.OrdinalIgnoreCase)) 3182else if (targetedProcessorArchitecture.Equals(Microsoft.Build.Utilities.ProcessorArchitecture.ARM64, StringComparison.OrdinalIgnoreCase))
AxTlbBaseTask.cs (1)
111Utilities.ProcessorArchitecture.CurrentProcessArchitecture,
ComReferenceInfo.cs (5)
154case ProcessorArchitecture.AMD64: 155case ProcessorArchitecture.IA64: 158case ProcessorArchitecture.X86: 161case ProcessorArchitecture.ARM: 162case ProcessorArchitecture.MSIL:
GenerateResource.cs (1)
1083Microsoft.Build.Utilities.ProcessorArchitecture.CurrentProcessArchitecture,
LC.cs (1)
136string pathToTool = SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists, ProcessorArchitecture.CurrentProcessArchitecture, SdkToolsPath, ToolExe, Log, true);
ResGen.cs (2)
15using MSBuildProcessorArchitecture = Microsoft.Build.Utilities.ProcessorArchitecture; 521MSBuildProcessorArchitecture.CurrentProcessArchitecture,
ResolveComReference.cs (19)
20using UtilitiesProcessorArchitecture = Microsoft.Build.Utilities.ProcessorArchitecture; 236if (UtilitiesProcessorArchitecture.X86.Equals(value, StringComparison.OrdinalIgnoreCase)) 238_targetProcessorArchitecture = UtilitiesProcessorArchitecture.X86; 240else if (UtilitiesProcessorArchitecture.MSIL.Equals(value, StringComparison.OrdinalIgnoreCase)) 242_targetProcessorArchitecture = UtilitiesProcessorArchitecture.MSIL; 244else if (UtilitiesProcessorArchitecture.AMD64.Equals(value, StringComparison.OrdinalIgnoreCase)) 246_targetProcessorArchitecture = UtilitiesProcessorArchitecture.AMD64; 248else if (UtilitiesProcessorArchitecture.IA64.Equals(value, StringComparison.OrdinalIgnoreCase)) 250_targetProcessorArchitecture = UtilitiesProcessorArchitecture.IA64; 252else if (UtilitiesProcessorArchitecture.ARM.Equals(value, StringComparison.OrdinalIgnoreCase)) 254_targetProcessorArchitecture = UtilitiesProcessorArchitecture.ARM; 256else if (UtilitiesProcessorArchitecture.ARM64.Equals(value, StringComparison.OrdinalIgnoreCase)) 258_targetProcessorArchitecture = UtilitiesProcessorArchitecture.ARM64; 571case UtilitiesProcessorArchitecture.ARM: 572case UtilitiesProcessorArchitecture.X86: 575case UtilitiesProcessorArchitecture.AMD64: 576case UtilitiesProcessorArchitecture.IA64: 577case UtilitiesProcessorArchitecture.ARM64: 580case UtilitiesProcessorArchitecture.MSIL:
SdkToolsPathUtility.cs (4)
63ProcessorArchitecture.ARM => Path.Combine(sdkToolsPath, "arm"), 64ProcessorArchitecture.AMD64 => Path.Combine(sdkToolsPath, "x64"), 65ProcessorArchitecture.IA64 => Path.Combine(sdkToolsPath, "ia64"), 73if (currentArchitecture != ProcessorArchitecture.X86)
SGen.cs (1)
317pathToTool = SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists, ProcessorArchitecture.CurrentProcessArchitecture, SdkToolsPath, ToolExe, Log, true);
TlbReference.cs (16)
18using UtilitiesProcessorArchitecture = Microsoft.Build.Utilities.ProcessorArchitecture; 186case UtilitiesProcessorArchitecture.MSIL: 189case UtilitiesProcessorArchitecture.AMD64: 192case UtilitiesProcessorArchitecture.IA64: 195case UtilitiesProcessorArchitecture.X86: 198case UtilitiesProcessorArchitecture.ARM: 245case UtilitiesProcessorArchitecture.MSIL: 248case UtilitiesProcessorArchitecture.AMD64: 251case UtilitiesProcessorArchitecture.IA64: 254case UtilitiesProcessorArchitecture.X86: 257case UtilitiesProcessorArchitecture.ARM: 315case UtilitiesProcessorArchitecture.X86: 321case UtilitiesProcessorArchitecture.AMD64: 327case UtilitiesProcessorArchitecture.IA64: 333case UtilitiesProcessorArchitecture.ARM: 339case UtilitiesProcessorArchitecture.MSIL:
WinMDExp.cs (1)
245return SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists, Microsoft.Build.Utilities.ProcessorArchitecture.CurrentProcessArchitecture, SdkToolsPath, ToolExe, Log, true);
Microsoft.Build.Utilities.Core (28)
ToolLocationHelper.cs (28)
3313if (!string.Equals(ProcessorArchitecture.CurrentProcessArchitecture, convertedArchitecture, StringComparison.OrdinalIgnoreCase)) 3315filePath = GetPathToDotNetFrameworkSdkFile(fileName, pathToSdk, ProcessorArchitecture.CurrentProcessArchitecture); 3319if (filePath == null && !string.Equals(ProcessorArchitecture.X86, ProcessorArchitecture.CurrentProcessArchitecture, StringComparison.OrdinalIgnoreCase)) 3321filePath = GetPathToDotNetFrameworkSdkFile(fileName, pathToSdk, ProcessorArchitecture.X86); 3342case ProcessorArchitecture.AMD64: 3345case ProcessorArchitecture.IA64: 3348case ProcessorArchitecture.X86: 3349case ProcessorArchitecture.ARM: 3378if (ProcessorArchitecture.CurrentProcessArchitecture == ProcessorArchitecture.ARM || 3379ProcessorArchitecture.CurrentProcessArchitecture == ProcessorArchitecture.ARM64) 3381return ProcessorArchitecture.ARM; 3383return ProcessorArchitecture.X86; 3388NativeMethodsShared.ProcessorArchitectures.X64 => ProcessorArchitecture.AMD64, 3389NativeMethodsShared.ProcessorArchitectures.IA64 => ProcessorArchitecture.IA64, 3390NativeMethodsShared.ProcessorArchitectures.ARM64 => ProcessorArchitecture.ARM64, 3399return ProcessorArchitecture.CurrentProcessArchitecture; 3480if (!string.Equals(ProcessorArchitecture.CurrentProcessArchitecture, convertedArchitecture, StringComparison.OrdinalIgnoreCase)) 3482filePath = GetPathToWindowsSdkFile(fileName, pathToSdk, ProcessorArchitecture.CurrentProcessArchitecture); 3486if (filePath == null && !string.Equals(ProcessorArchitecture.X86, ProcessorArchitecture.CurrentProcessArchitecture, StringComparison.OrdinalIgnoreCase)) 3488filePath = GetPathToWindowsSdkFile(fileName, pathToSdk, ProcessorArchitecture.X86); 3510case ProcessorArchitecture.X86: 3513case ProcessorArchitecture.AMD64: 3516case ProcessorArchitecture.IA64: 3517case ProcessorArchitecture.ARM:
Microsoft.Build.Utilities.UnitTests (40)
ProcessorArchitecture_Tests.cs (40)
20NativeMethodsShared.ProcessorArchitectures.X86 => ProcessorArchitecture.X86, 21NativeMethodsShared.ProcessorArchitectures.X64 => ProcessorArchitecture.AMD64, 22NativeMethodsShared.ProcessorArchitectures.IA64 => ProcessorArchitecture.IA64, 23NativeMethodsShared.ProcessorArchitectures.ARM => ProcessorArchitecture.ARM, 24NativeMethodsShared.ProcessorArchitectures.ARM64 => ProcessorArchitecture.ARM64, 25NativeMethodsShared.ProcessorArchitectures.WASM => ProcessorArchitecture.WASM, 26NativeMethodsShared.ProcessorArchitectures.S390X => ProcessorArchitecture.S390X, 27NativeMethodsShared.ProcessorArchitectures.LOONGARCH64 => ProcessorArchitecture.LOONGARCH64, 28NativeMethodsShared.ProcessorArchitectures.ARMV6 => ProcessorArchitecture.ARMV6, 29NativeMethodsShared.ProcessorArchitectures.PPC64LE => ProcessorArchitecture.PPC64LE, 39ProcessorArchitecture.X86.ShouldBe("x86"); // "x86 ProcessorArchitecture isn't correct" 40ProcessorArchitecture.IA64.ShouldBe("IA64"); // "IA64 ProcessorArchitecture isn't correct" 41ProcessorArchitecture.AMD64.ShouldBe("AMD64"); // "AMD64 ProcessorArchitecture isn't correct" 42ProcessorArchitecture.MSIL.ShouldBe("MSIL"); // "MSIL ProcessorArchitecture isn't correct" 43ProcessorArchitecture.ARM.ShouldBe("ARM"); // "ARM ProcessorArchitecture isn't correct" 44ProcessorArchitecture.ARM64.ShouldBe("ARM64"); // "ARM ProcessorArchitecture isn't correct" 45ProcessorArchitecture.WASM.ShouldBe("WASM"); // "WASM ProcessorArchitecture isn't correct" 46ProcessorArchitecture.S390X.ShouldBe("S390X"); // "S390X ProcessorArchitecture isn't correct" 47ProcessorArchitecture.LOONGARCH64.ShouldBe("LOONGARCH64"); // "LOONGARCH64 ProcessorArchitecture isn't correct" 48ProcessorArchitecture.ARMV6.ShouldBe("ARMV6"); // "ARMV6 ProcessorArchitecture isn't correct" 49ProcessorArchitecture.PPC64LE.ShouldBe("PPC64LE"); // "PPC64LE ProcessorArchitecture isn't correct" 55ProcessorArchitecture.CurrentProcessArchitecture.ShouldBe(ProcessorArchitectureIntToString()); // "BuildUtilities.ProcessorArchitecture.CurrentProcessArchitecture returned an invalid match" 61Console.WriteLine("BuildUtilities.ProcessorArchitecture.CurrentProcessArchitecture is: {0}", ProcessorArchitecture.CurrentProcessArchitecture); 63switch (ProcessorArchitecture.CurrentProcessArchitecture) 65case ProcessorArchitecture.ARM: 67procArchitecture.ShouldBe(ProcessorArchitecture.ARM); 73case ProcessorArchitecture.ARM64: 75procArchitecture.ShouldBe(ProcessorArchitecture.ARM64); 78procArchitecture.ShouldBe(ProcessorArchitecture.ARM); 81case ProcessorArchitecture.X86: 83procArchitecture.ShouldBe(ProcessorArchitecture.X86); 88bool isValidResult = procArchitecture?.Equals(ProcessorArchitecture.AMD64) != false || procArchitecture.Equals(ProcessorArchitecture.IA64); 93case ProcessorArchitecture.AMD64: 95procArchitecture.ShouldBe(ProcessorArchitecture.AMD64); 98procArchitecture.ShouldBe(ProcessorArchitecture.X86); 101case ProcessorArchitecture.IA64: 103procArchitecture.ShouldBe(ProcessorArchitecture.IA64); 106procArchitecture.ShouldBe(ProcessorArchitecture.X86); 109case ProcessorArchitecture.MSIL: