83 references to IsWindows
Microsoft.Build (14)
BackEnd\BuildManager\BuildManager.cs (1)
506if (NativeMethodsShared.IsWindows || parameters.LowPriority)
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
56if (NativeMethodsShared.IsWindows)
BackEnd\Node\OutOfProcNode.cs (1)
884if (!lowPriority || NativeMethodsShared.IsWindows)
BackEnd\Node\OutOfProcServerNode.cs (1)
417if (NativeMethodsShared.IsWindows && command.ConsoleConfiguration.BufferWidth > 0)
Evaluation\Evaluator.cs (1)
1159if (!NativeMethodsShared.IsWindows)
Evaluation\Expander.cs (2)
1746if (!NativeMethodsShared.IsWindows) 1786if (!NativeMethodsShared.IsWindows && !registryKeyName.StartsWith("HKEY_CURRENT_USER", StringComparison.OrdinalIgnoreCase))
Evaluation\IntrinsicFunctions.cs (5)
206if (!NativeMethodsShared.IsWindows) 222if (!NativeMethodsShared.IsWindows) 235if (!NativeMethodsShared.IsWindows) 257if (!NativeMethodsShared.IsWindows) 288if (!NativeMethodsShared.IsWindows && !keyName.StartsWith("HKEY_CURRENT_USER", StringComparison.OrdinalIgnoreCase))
Instance\HostServices.cs (1)
89if (NativeMethodsShared.IsWindows)
Logging\BaseConsoleLogger.cs (1)
265runningWithCharacterFileType = NativeMethodsShared.IsWindows && ConsoleConfiguration.OutputIsScreen;
Microsoft.Build.Framework (35)
BackEnd\CommunicationsUtilities.cs (2)
473if (!NativeMethods.IsWindows) 639NativeMethods.IsWindows &&
BackEnd\Handshake.cs (1)
90if (includeSessionId && NativeMethods.IsWindows)
BuildEnvironmentHelper.cs (3)
133if (!NativeMethods.IsWindows) 165if (NativeMethods.IsWindows && 239if (NativeMethods.IsWindows &&
Constants.cs (2)
31internal static readonly string DotnetProcessName = NativeMethods.IsWindows ? "dotnet.exe" : "dotnet"; 46internal static readonly string MSBuildExecutableName = NativeMethods.IsWindows ? $"{MSBuildAppName}.exe" : MSBuildAppName;
EncodingUtilities.cs (1)
229if (!NativeMethods.IsWindows)
FileUtilities.cs (5)
246=> NativeMethods.IsWindows && path.IndexOf(UnixDirectorySeparator) >= 0; 772if (NativeMethods.IsWindows || string.IsNullOrEmpty(value) 793if (NativeMethods.IsWindows || value.IsEmpty) 874if (NativeMethods.IsWindows) 1002if (NativeMethods.IsWindows && !EndsWithSlash(fullPath))
ItemSpecModifiers.cs (1)
547if (NativeMethods.IsWindows)
NativeMethods.cs (4)
321if (!IsWindows) 378if (IsWindows) 528get { return IsWindows ? "Windows_NT" : "Unix"; } 716if (!IsWindows)
Utilities\FileMatcher.cs (2)
1257bool isUncPath = NativeMethods.IsWindows && fixedDir.Length > 1 2273if (NativeMethods.IsWindows &&
Utilities\FrameworkLocationHelper.cs (13)
93internal static string dotNetFrameworkVersionFolderPrefixV11 = NativeMethods.IsWindows ? "v1.1" : "1.1"; // v1.1 is for Everett. 98internal static string dotNetFrameworkVersionFolderPrefixV20 = NativeMethods.IsWindows ? "v2.0" : "2.0"; // v2.0 is for Whidbey. 102internal static string dotNetFrameworkVersionFolderPrefixV30 = NativeMethods.IsWindows ? "v3.0" : "3.0"; // v3.0 is for WinFx. 116internal static string dotNetFrameworkVersionFolderPrefixV35 = NativeMethods.IsWindows ? "v3.5" : "3.5"; // v3.5 is for Orcas. 122internal static string dotNetFrameworkVersionFolderPrefixV40 = NativeMethods.IsWindows ? "v4.0" : "4.0"; 123internal static string dotNetFrameworkVersionFolderPrefixV45 = NativeMethods.IsWindows ? "v4.5" : "4.5"; 538if (!NativeMethods.IsWindows) 588if (NativeMethods.IsWindows) 635if (NativeMethods.IsWindows) 829if (!NativeMethods.IsWindows) 986combinedPath = NativeMethods.IsWindows 1196dotNetFrameworkVersionFolderPrefix: NativeMethods.IsWindows ? "v4.0" : "v4.5", 1572if (NativeMethods.IsWindows)
Utilities\ProcessExtensions.cs (1)
116if (NativeMethods.IsWindows)
Microsoft.Build.Tasks.Core (24)
AssemblyDependency\AssemblyInformation.cs (1)
242if (!NativeMethodsShared.IsWindows)
AssemblyDependency\AssemblyMetadata.cs (1)
30ScatterFiles = NativeMethodsShared.IsWindows ? import.Files : null;
AssemblyDependency\Reference.cs (1)
514else if (NativeMethodsShared.IsWindows)
Copy.cs (2)
357if (!NativeMethodsShared.IsWindows) 1045if (!_alwaysRetryCopy && (NativeMethodsShared.IsWindows || !ChangeWaves.AreFeaturesEnabled(ChangeWaves.Wave18_7)))
Exec.cs (3)
501if (NativeMethodsShared.IsWindows) 593if (NativeMethodsShared.IsWindows) 654protected override string ToolName => NativeMethodsShared.IsWindows ? "cmd.exe" : "sh";
GenerateApplicationManifest.cs (1)
116if (!NativeMethodsShared.IsWindows)
GenerateDeploymentManifest.cs (1)
160if (!NativeMethodsShared.IsWindows)
GenerateLauncher.cs (1)
45if (!NativeMethodsShared.IsWindows)
GenerateManifestBase.cs (1)
278if (!NativeMethodsShared.IsWindows)
GetInstalledSDKLocations.cs (1)
131if (!NativeMethodsShared.IsWindows)
GetSDKReferenceFiles.cs (1)
230if (!NativeMethodsShared.IsWindows)
ManifestUtil\SecurityUtil.cs (1)
864if (NativeMethodsShared.IsWindows && (toolPath == null || !FileSystems.Default.FileExists(toolPath)))
NativeMethods.cs (4)
542if (NativeMethodsShared.IsWindows) 582if (NativeMethodsShared.IsWindows) 894if (NativeMethodsShared.IsWindows) 954if (NativeMethodsShared.IsWindows)
ResolveSDKReference.cs (1)
272if (!NativeMethodsShared.IsWindows)
SignFile.cs (1)
47if (!NativeMethodsShared.IsWindows)
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (1)
80if (!NativeMethodsShared.IsWindows)
src\msbuild\src\Shared\NodePipeClient.cs (1)
18private static readonly bool s_useHandhakeTimeout = !NativeMethodsShared.IsWindows;
src\msbuild\src\Shared\NodePipeServer.cs (1)
32private static readonly int s_handshakeTimeout = NativeMethodsShared.IsWindows ? 0 : 60_000;
Microsoft.Build.Utilities.Core (9)
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (1)
80if (!NativeMethodsShared.IsWindows)
ToolLocationHelper.cs (4)
1826if (NativeMethodsShared.IsWindows && platformTarget != null) 2444string registryRoot = NativeMethodsShared.IsWindows ? GetTargetPlatformMonikerRegistryRoots(registrySearchLocation) : string.Empty; 2469if (NativeMethodsShared.IsWindows) 2895if (NativeMethodsShared.IsWindows)
ToolTask.cs (4)
673if (NativeMethodsShared.IsWindows) 808if (NativeMethodsShared.IsWindows) 1507bool runningOnWindows = NativeMethodsShared.IsWindows; 1740if (NativeMethodsShared.IsWindows)
MSBuild (1)
XMake.cs (1)
1926if (NativeMethodsShared.IsWindows &&