2 implementations of IsWindows
aspire (1)
HostEnvironment.cs (1)
24public bool IsWindows() => OperatingSystem.IsWindows();
Aspire.Cli.Tests (1)
Utils\TestEnvironment.cs (1)
38public bool IsWindows() => ReportIsWindows;
46 references to IsWindows
aspire (46)
Acquisition\InstallationDiscovery.cs (3)
57_aspireBinaryName = environment.IsWindows() ? "aspire.exe" : "aspire"; 144_environment.IsWindows() ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 467var comparer = _environment.IsWindows() ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal;
Agents\Copilot\CopilotAppInstallationDetector.cs (1)
48if (environment.IsWindows())
Bundles\BundleService.cs (3)
210if (wingetFirstRunProbe is not null && environment.IsWindows()) 412catch (Exception ex) when (IsRetryableDirectoryMoveException(ex, environment.IsWindows()) && stopwatch.Elapsed < s_directoryMoveMaxRetryElapsed) 916if (!environment.IsWindows() && entry.Mode != default)
Certificates\CertificateGeneration\CertificateManager.cs (1)
55public static CertificateManager Create(ILogger logger, IEnvironment environment) => environment.IsWindows() ?
Commands\PsCommand.cs (1)
301return _environment.IsWindows()
Commands\StopCommand.cs (1)
570return _environment.IsWindows()
Commands\UpdateCommand.cs (4)
764var exeName = _environment.IsWindows() ? "aspire.exe" : "aspire"; 818if (!_environment.IsWindows()) 893environment.IsWindows() 900if (!_environment.IsWindows())
DotNet\DotNetCliRunner.cs (1)
483environment.IsWindows() ? "dotnet.exe" : "dotnet"
DotNet\DotNetSdkInstaller.cs (1)
125PathLookupHelper.ResolveExecutablePath(environment.IsWindows() ? "dotnet.exe" : "dotnet");
DotNet\ProcessExecution.cs (1)
397if (!_hostEnvironment.IsWindows())
Git\GitRepository.cs (1)
149var pathComparer = environment.IsWindows() || environment.IsMacOS()
Npm\NpmRunner.cs (1)
229if (environment.IsWindows() && npmPath.EndsWith(".cmd", StringComparison.OrdinalIgnoreCase))
Processes\ProcessTreeGracefulShutdownService.cs (4)
114var killEntireProcessTree = afterTimeout || !environment.IsWindows(); 139if (!environment.IsWindows()) 242if (environment.IsWindows()) 296if (includeStartTime && target.StartTime is not null && (!target.UseRuntimeStartTime || environment.IsWindows()))
Program.cs (1)
370return environment.IsWindows()
Projects\AppHostCandidateFinder.cs (2)
490return environment.IsWindows() || environment.IsMacOS() 497return environment.IsWindows() || environment.IsMacOS()
Projects\AppHostRpcClient.cs (1)
191if (environment.IsWindows())
Projects\DotNetAppHostProject.cs (1)
1546KillEntireProcessTreeOnCancel = ShouldKillEntireProcessTreeOnCancel(_environment.IsWindows()),
Projects\DotNetBasedAppHostServerProject.cs (2)
598var dotnetExe = _environment.IsWindows() ? "dotnet.exe" : "dotnet"; 703KillEntireProcessTreeOnCancel = !_environment.IsWindows(),
Projects\GuestAppHostProject.cs (2)
2263var configuredKeys = _environment.IsWindows() 2280var pathComparison = _environment.IsWindows()
Projects\PrebuiltAppHostServer.cs (1)
1397KillEntireProcessTreeOnCancel = !_environment.IsWindows(),
Projects\TypeScriptAppHostToolchainResolver.cs (1)
495var isWindows = environment.IsWindows();
Telemetry\InternalMicrosoftDetector.cs (2)
199if (_environment.IsWindows()) 1613var extensions = _environment.IsWindows() && string.IsNullOrEmpty(Path.GetExtension(command))
Telemetry\TelemetryServiceCollectionExtensions.cs (1)
23if (environment.IsWindows())
Templating\CliTemplateFactory.cs (2)
359if (_environment.IsWindows() || !s_executableTemplateFileNames.Contains(Path.GetFileName(filePath))) 384var pathComparison = _environment.IsWindows() || _environment.IsMacOS()
Templating\DotNetTemplateFactory.cs (1)
110var dotnetFileName = environment.IsWindows() ? "dotnet.exe" : "dotnet";
Utils\ArchiveHelper.cs (1)
110if (!environment.IsWindows() && entry.Mode != default)
Utils\CliDownloader.cs (1)
134if (environment.IsWindows())
Utils\CliPathHelper.cs (1)
170return environment.IsWindows() ? path.ToLowerInvariant() : path;
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
432if (environment.IsWindows())
Utils\EnvironmentChecker\OperatingSystemCheck.cs (1)
61if (environment.IsWindows())
Utils\FileSystemHelper.cs (1)
146var comparer = environment.IsWindows()