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