137 references to PlatformArchitecture
datacollector (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43public static string ProcDumpFileName(PlatformArchitecture architecture) => 46PlatformArchitecture.X86 => "procdump.exe", 47PlatformArchitecture.ARM64 => "procdump64a.exe", 54var targetProcessArchitecture = _environment.Architecture; 61var targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId); 65public bool TryGetProcDumpExecutable(PlatformArchitecture architecture, out string path)
datacollector.arm64 (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43public static string ProcDumpFileName(PlatformArchitecture architecture) => 46PlatformArchitecture.X86 => "procdump.exe", 47PlatformArchitecture.ARM64 => "procdump64a.exe", 54var targetProcessArchitecture = _environment.Architecture; 61var targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId); 65public bool TryGetProcDumpExecutable(PlatformArchitecture architecture, out string path)
Microsoft.TestPlatform.CoreUtilities (25)
Helpers\DotnetHostHelper.cs (24)
129PlatformArchitecture targetArchitecture, 175targetArchitecture == PlatformArchitecture.X86 && _environment.OperatingSystem == PlatformOperatingSystem.Windows) 262if ((_environment.Architecture == PlatformArchitecture.X64 || _environment.Architecture == PlatformArchitecture.ARM64) && 263targetArchitecture == PlatformArchitecture.X86) 270muxerPath = _environment.Architecture == PlatformArchitecture.ARM64 && targetArchitecture == PlatformArchitecture.X64 280muxerPath = _environment.Architecture == PlatformArchitecture.ARM64 && targetArchitecture == PlatformArchitecture.X64 311private string? GetMuxerFromGlobalRegistrationWin(PlatformArchitecture targetArchitecture) 344private string? GetMuxerFromGlobalRegistrationOnUnix(PlatformArchitecture targetArchitecture) 380private PlatformArchitecture? GetMuxerArchitectureByPEHeaderOnWin(string path) 389return PlatformArchitecture.X64; 391return PlatformArchitecture.X64; 393return PlatformArchitecture.ARM64; 395return PlatformArchitecture.ARM; 397return PlatformArchitecture.X86; 412private PlatformArchitecture? GetMuxerArchitectureByMachoOnMac(string path) 433PlatformArchitecture? architecture = (MacOsCpuType)cpuInfo switch 435MacOsCpuType.Arm64Magic or MacOsCpuType.Arm64Cigam => PlatformArchitecture.ARM64, 436MacOsCpuType.X64Magic or MacOsCpuType.X64Cigam => PlatformArchitecture.X64, 437MacOsCpuType.X86Magic or MacOsCpuType.X86Cigam => PlatformArchitecture.X86, 483private bool IsValidArchitectureMuxer(PlatformArchitecture targetArchitecture, string path) 485PlatformArchitecture? muxerPlatform = null;
Helpers\Interfaces\IDotnetHostHelper.cs (1)
35PlatformArchitecture targetArchitecture,
Microsoft.TestPlatform.CrossPlatEngine (1)
DataCollection\DefaultDataCollectionLauncher.cs (1)
62string dataCollectorProcessName = _processHelper.GetCurrentProcessArchitecture() == PlatformArchitecture.ARM64
Microsoft.TestPlatform.Extensions.BlameDataCollector (11)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43public static string ProcDumpFileName(PlatformArchitecture architecture) => 46PlatformArchitecture.X86 => "procdump.exe", 47PlatformArchitecture.ARM64 => "procdump64a.exe", 54var targetProcessArchitecture = _environment.Architecture; 61var targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId); 65public bool TryGetProcDumpExecutable(PlatformArchitecture architecture, out string path)
WindowsHangDumper.cs (5)
119var currentProcessArchitecture = processHelper.GetCurrentProcessArchitecture(); 120var targetProcessArchitecture = processHelper.GetProcessArchitecture(process.Id); 131PlatformArchitecture.X86 => "DumpMinitool.x86.exe", 132PlatformArchitecture.X64 => "DumpMinitool.exe", 133PlatformArchitecture.ARM64 => "DumpMinitool.arm64.exe",
Microsoft.TestPlatform.PlatformAbstractions (33)
common\System\ProcessHelper.cs (3)
321var osArchitecture = new PlatformEnvironment().Architecture; 322return osArchitecture is PlatformArchitecture.ARM or PlatformArchitecture.ARM64
Interfaces\System\IEnvironment.cs (1)
14PlatformArchitecture Architecture { get; }
Interfaces\System\IProcessHelper.cs (2)
69PlatformArchitecture GetCurrentProcessArchitecture(); 75PlatformArchitecture GetProcessArchitecture(int processId);
net462\System\ProcessHelper.cs (9)
52public PlatformArchitecture GetProcessArchitecture(int processId) 76return PlatformArchitecture.X86; 86return PlatformArchitecture.ARM64; 90return PlatformArchitecture.X64; 95return PlatformArchitecture.X64; 111return PlatformArchitecture.X86; 126return isWow64 ? PlatformArchitecture.X86 : PlatformArchitecture.X64; 131return PlatformArchitecture.X64;
netcore\System\PlatformEnvironment.cs (9)
17public PlatformArchitecture Architecture 23System.Runtime.InteropServices.Architecture.X86 => PlatformArchitecture.X86, 24System.Runtime.InteropServices.Architecture.X64 => PlatformArchitecture.X64, 25System.Runtime.InteropServices.Architecture.Arm => PlatformArchitecture.ARM, 26System.Runtime.InteropServices.Architecture.Arm64 => PlatformArchitecture.ARM64, 30(Architecture)5 => PlatformArchitecture.S390x, 31(Architecture)6 => PlatformArchitecture.LoongArch64, 32(Architecture)8 => PlatformArchitecture.Ppc64le, 33(Architecture)9 => PlatformArchitecture.RiscV64,
netcore\System\ProcessHelper.cs (9)
32public PlatformArchitecture GetCurrentProcessArchitecture() 36Architecture.X86 => PlatformArchitecture.X86, 37Architecture.X64 => PlatformArchitecture.X64, 38Architecture.Arm => PlatformArchitecture.ARM, 39Architecture.Arm64 => PlatformArchitecture.ARM64, 43(Architecture)5 => PlatformArchitecture.S390x, 44(Architecture)6 => PlatformArchitecture.LoongArch64, 45(Architecture)8 => PlatformArchitecture.Ppc64le, 46(Architecture)9 => PlatformArchitecture.RiscV64,
Microsoft.TestPlatform.TestHostRuntimeProvider (32)
Hosting\DefaultTestHostManager.cs (9)
253private static string GetTestHostName(Architecture architecture, Framework targetFramework, PlatformArchitecture processArchitecture) 290PlatformArchitecture.X86 => Architecture.X86, 291PlatformArchitecture.X64 => Architecture.X64, 292PlatformArchitecture.ARM => Architecture.ARM, 293PlatformArchitecture.ARM64 => Architecture.ARM64, 294PlatformArchitecture.S390x => Architecture.S390x, 295PlatformArchitecture.Ppc64le => Architecture.Ppc64le, 296PlatformArchitecture.RiscV64 => Architecture.RiscV64, 297PlatformArchitecture.LoongArch64 => Architecture.LoongArch64,
Hosting\DotnetTestHostManager.cs (23)
485PlatformArchitecture targetArchitecture = TranslateToPlatformArchitecture(_architecture); 498PlatformArchitecture finalTargetArchitecture = forceToX64 ? PlatformArchitecture.X64 : targetArchitecture; 640PlatformArchitecture TranslateToPlatformArchitecture(Architecture targetArchitecture) 645return PlatformArchitecture.X86; 647return PlatformArchitecture.X64; 649return PlatformArchitecture.ARM; 651return PlatformArchitecture.ARM64; 653return PlatformArchitecture.S390x; 655return PlatformArchitecture.Ppc64le; 657return PlatformArchitecture.RiscV64; 659return PlatformArchitecture.LoongArch64; 669static bool IsSameArchitecture(Architecture targetArchitecture, PlatformArchitecture platformAchitecture) 672Architecture.X86 => platformAchitecture == PlatformArchitecture.X86, 673Architecture.X64 => platformAchitecture == PlatformArchitecture.X64, 674Architecture.ARM => platformAchitecture == PlatformArchitecture.ARM, 675Architecture.ARM64 => platformAchitecture == PlatformArchitecture.ARM64, 676Architecture.S390x => platformAchitecture == PlatformArchitecture.S390x, 677Architecture.Ppc64le => platformAchitecture == PlatformArchitecture.Ppc64le, 678Architecture.RiscV64 => platformAchitecture == PlatformArchitecture.RiscV64, 679Architecture.LoongArch64 => platformAchitecture == PlatformArchitecture.LoongArch64, 690_platformEnvironment.Architecture == PlatformArchitecture.ARM64 && 698_platformEnvironment.Architecture == PlatformArchitecture.ARM64 &&
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
Utilities\XmlRunSettingsUtilities.cs (5)
30var arch = new PlatformEnvironment().Architecture; 34PlatformArchitecture.X64 => Architecture.X64, 35PlatformArchitecture.X86 => Architecture.X86, 36PlatformArchitecture.ARM64 => Architecture.ARM64, 37PlatformArchitecture.ARM => Architecture.ARM,
testhost (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43public static string ProcDumpFileName(PlatformArchitecture architecture) => 46PlatformArchitecture.X86 => "procdump.exe", 47PlatformArchitecture.ARM64 => "procdump64a.exe", 54var targetProcessArchitecture = _environment.Architecture; 61var targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId); 65public bool TryGetProcDumpExecutable(PlatformArchitecture architecture, out string path)
testhost.arm64 (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43public static string ProcDumpFileName(PlatformArchitecture architecture) => 46PlatformArchitecture.X86 => "procdump.exe", 47PlatformArchitecture.ARM64 => "procdump64a.exe", 54var targetProcessArchitecture = _environment.Architecture; 61var targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId); 65public bool TryGetProcDumpExecutable(PlatformArchitecture architecture, out string path)
testhost.x86 (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43public static string ProcDumpFileName(PlatformArchitecture architecture) => 46PlatformArchitecture.X86 => "procdump.exe", 47PlatformArchitecture.ARM64 => "procdump64a.exe", 54var targetProcessArchitecture = _environment.Architecture; 61var targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId); 65public bool TryGetProcDumpExecutable(PlatformArchitecture architecture, out string path)