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;
46 references to IsWindows
aspire (46)
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)
210
if (wingetFirstRunProbe is not null && environment.
IsWindows
())
412
catch (Exception ex) when (IsRetryableDirectoryMoveException(ex, environment.
IsWindows
()) && stopwatch.Elapsed < s_directoryMoveMaxRetryElapsed)
916
if (!environment.
IsWindows
() && entry.Mode != default)
Certificates\CertificateGeneration\CertificateManager.cs (1)
55
public static CertificateManager Create(ILogger logger, IEnvironment environment) => environment.
IsWindows
() ?
Commands\PsCommand.cs (1)
301
return _environment.
IsWindows
()
Commands\StopCommand.cs (1)
570
return _environment.
IsWindows
()
Commands\UpdateCommand.cs (4)
764
var exeName = _environment.
IsWindows
() ? "aspire.exe" : "aspire";
818
if (!_environment.
IsWindows
())
893
environment.
IsWindows
()
900
if (!_environment.
IsWindows
())
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)
370
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)
1546
KillEntireProcessTreeOnCancel = ShouldKillEntireProcessTreeOnCancel(_environment.
IsWindows
()),
Projects\DotNetBasedAppHostServerProject.cs (2)
598
var dotnetExe = _environment.
IsWindows
() ? "dotnet.exe" : "dotnet";
703
KillEntireProcessTreeOnCancel = !_environment.
IsWindows
(),
Projects\GuestAppHostProject.cs (2)
2263
var configuredKeys = _environment.
IsWindows
()
2280
var pathComparison = _environment.
IsWindows
()
Projects\PrebuiltAppHostServer.cs (1)
1397
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
()