84 references to ProcessorArchitecture
Microsoft.Build.Tasks.Core (16)
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))
LC.cs (1)
136string pathToTool = SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists, ProcessorArchitecture.CurrentProcessArchitecture, SdkToolsPath, ToolExe, Log, true);
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)
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: