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 (2)
217if (!_environment.OperatingSystem.Equals(PlatformOperatingSystem.Windows) 226if (_environment.OperatingSystem.Equals(PlatformOperatingSystem.Windows)
Hosting\DotnetTestHostManager.cs (8)
238EqtTrace.Verbose($"DotnetTestHostmanager.GetTestHostProcessStartInfo: Platform environment '{_platformEnvironment.Architecture}' target architecture '{_architecture}' framework '{_targetFramework}' OS '{_platformEnvironment.OperatingSystem}'"); 315&& _platformEnvironment.OperatingSystem.Equals(PlatformOperatingSystem.Windows) 486EqtTrace.Verbose($"DotnetTestHostmanager: Searching muxer for the architecture '{targetArchitecture}', OS '{_platformEnvironment.OperatingSystem}' framework '{_targetFramework}' SDK platform architecture '{_platformEnvironment.Architecture}'"); 489EqtTrace.Verbose($"DotnetTestHostmanager: Forcing the search to x64 architecure, IsDefaultTargetArchitecture '{_runsettingHelper.IsDefaultTargetArchitecture}' OS '{_platformEnvironment.OperatingSystem}' framework '{_targetFramework}'"); 501string message = string.Format(CultureInfo.CurrentCulture, Resources.NoDotnetMuxerFoundForArchitecture, $"dotnet{(_platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows ? ".exe" : string.Empty)}", finalTargetArchitecture.ToString()); 626if (_platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows) 689if (_platformEnvironment.OperatingSystem == PlatformOperatingSystem.OSX && 697return _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}");