1 implementation of OperatingSystem
Microsoft.TestPlatform.PlatformAbstractions (1)
netcore\System\PlatformEnvironment.cs (1)
40public PlatformOperatingSystem OperatingSystem
35 references to OperatingSystem
datacollector (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (3)
80string filename = _environment.OperatingSystem == PlatformOperatingSystem.Windows 82: _environment.OperatingSystem is PlatformOperatingSystem.Unix or PlatformOperatingSystem.OSX 84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
datacollector.arm64 (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (3)
80string filename = _environment.OperatingSystem == PlatformOperatingSystem.Windows 82: _environment.OperatingSystem is PlatformOperatingSystem.Unix or PlatformOperatingSystem.OSX 84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
Microsoft.TestPlatform.CoreUtilities (7)
Helpers\DotnetHostHelper.cs (7)
76_muxerName = environment.OperatingSystem == PlatformOperatingSystem.Windows ? "dotnet.exe" : "dotnet"; 108if (_environment.OperatingSystem.Equals(PlatformOperatingSystem.Windows)) 153bool isWinOs = _environment.OperatingSystem == PlatformOperatingSystem.Windows; 175targetArchitecture == PlatformArchitecture.X86 && _environment.OperatingSystem == PlatformOperatingSystem.Windows) 277if (_environment.OperatingSystem == PlatformOperatingSystem.OSX) 486if (_environment.OperatingSystem == PlatformOperatingSystem.Windows) 490else if (_environment.OperatingSystem == PlatformOperatingSystem.OSX)
Microsoft.TestPlatform.Extensions.BlameDataCollector (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (3)
80string filename = _environment.OperatingSystem == PlatformOperatingSystem.Windows 82: _environment.OperatingSystem is PlatformOperatingSystem.Unix or PlatformOperatingSystem.OSX 84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
Microsoft.TestPlatform.TestHostRuntimeProvider (10)
Hosting\DefaultTestHostManager.cs (1)
211if (!_environment.OperatingSystem.Equals(PlatformOperatingSystem.Windows))
Hosting\DotnetTestHostManager.cs (9)
238EqtTrace.Verbose($"DotnetTestHostmanager.GetTestHostProcessStartInfo: Platform environment '{_platformEnvironment.Architecture}' target architecture '{_architecture}' framework '{_targetFramework}' OS '{_platformEnvironment.OperatingSystem}'"); 350&& _platformEnvironment.OperatingSystem.Equals(PlatformOperatingSystem.Windows) 505EqtTrace.Verbose($"DotnetTestHostmanager: Searching muxer for the architecture '{targetArchitecture}', OS '{_platformEnvironment.OperatingSystem}' framework '{_targetFramework}' SDK platform architecture '{_platformEnvironment.Architecture}'"); 508EqtTrace.Verbose($"DotnetTestHostmanager: Forcing the search to x64 architecure, IsDefaultTargetArchitecture '{_runsettingHelper.IsDefaultTargetArchitecture}' OS '{_platformEnvironment.OperatingSystem}' framework '{_targetFramework}'"); 520string message = string.Format(CultureInfo.CurrentCulture, TestHostResources.NoDotnetMuxerFoundForArchitecture, $"dotnet{(_platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows ? ".exe" : string.Empty)}", finalTargetArchitecture.ToString()); 644if (_platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows) 707if (_platformEnvironment.OperatingSystem == PlatformOperatingSystem.OSX && 715return _platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows && 787if (_platformEnvironment.OperatingSystem != PlatformOperatingSystem.Windows
testhost (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (3)
80string filename = _environment.OperatingSystem == PlatformOperatingSystem.Windows 82: _environment.OperatingSystem is PlatformOperatingSystem.Unix or PlatformOperatingSystem.OSX 84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
testhost.arm64 (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (3)
80string filename = _environment.OperatingSystem == PlatformOperatingSystem.Windows 82: _environment.OperatingSystem is PlatformOperatingSystem.Unix or PlatformOperatingSystem.OSX 84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
testhost.x86 (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (3)
80string filename = _environment.OperatingSystem == PlatformOperatingSystem.Windows 82: _environment.OperatingSystem is PlatformOperatingSystem.Unix or PlatformOperatingSystem.OSX 84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");