102 references to IsWindows
Microsoft.Build (16)
BackEnd\BuildManager\BuildManager.cs (1)
571if (NativeMethodsShared.IsWindows || parameters.LowPriority)
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (2)
84sentinelDirectory = NativeMethodsShared.IsWindows 87string canonicalTemporaryDirectory = NativeMethodsShared.IsWindows
BackEnd\Components\Communications\NodeLauncher.cs (1)
81return NativeMethodsShared.IsUnixLike || NativeMethodsShared.IsWindows
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
56if (NativeMethodsShared.IsWindows)
BackEnd\Node\OutOfProcNode.cs (1)
906if (!lowPriority || NativeMethodsShared.IsWindows)
BackEnd\Node\OutOfProcServerNode.cs (1)
464if (NativeMethodsShared.IsWindows && command.ConsoleConfiguration.BufferWidth > 0)
Evaluation\Evaluator.cs (1)
1307if (!NativeMethodsShared.IsWindows)
Evaluation\Expander.PropertyExpander.cs (1)
691if (!NativeMethodsShared.IsWindows)
Evaluation\IntrinsicFunctions.cs (5)
205if (!NativeMethodsShared.IsWindows) 221if (!NativeMethodsShared.IsWindows) 234if (!NativeMethodsShared.IsWindows) 256if (!NativeMethodsShared.IsWindows) 287if (!NativeMethodsShared.IsWindows && !keyName.StartsWith("HKEY_CURRENT_USER", StringComparison.OrdinalIgnoreCase))
Instance\HostServices.cs (1)
90if (NativeMethodsShared.IsWindows)
Logging\BaseConsoleLogger.cs (1)
265runningWithCharacterFileType = NativeMethodsShared.IsWindows && ConsoleConfiguration.OutputIsScreen;
Microsoft.Build.Framework (52)
BackEnd\CommunicationsUtilities.cs (2)
497if (!NativeMethods.IsWindows) 675NativeMethods.IsWindows &&
BackEnd\Handshake.cs (2)
120if (includeSessionId && NativeMethods.IsWindows) 192if (!NativeMethods.IsWindows || string.IsNullOrEmpty(path) || path!.Length < 2 || path[1] != ':')
BuildEnvironmentHelper.cs (3)
171if (!NativeMethods.IsWindows) 203if (NativeMethods.IsWindows && 277if (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;
Coordinator\CoordinatorSettings.cs (1)
141if (NativeMethods.IsWindows)
EncodingUtilities.cs (1)
225if (!NativeMethods.IsWindows)
FileUtilities.cs (6)
75public static bool IsFileSystemCaseSensitive => !(NativeMethods.IsWindows || NativeMethods.IsOSX); 221=> NativeMethods.IsWindows && path.IndexOf(UnixDirectorySeparator) >= 0; 722if (NativeMethods.IsWindows || string.IsNullOrEmpty(value) 743if (NativeMethods.IsWindows || value.IsEmpty) 824if (NativeMethods.IsWindows) 952if (NativeMethods.IsWindows && !EndsWithSlash(fullPath))
Globbing\GlobPattern.cs (1)
32bool unc = NativeMethods.IsWindows && fixedDirectory.StartsWith(@"\\", StringComparison.Ordinal);
ItemSpecModifiers.cs (1)
565if (NativeMethods.IsWindows)
MultiThreadedTaskEnvironmentDriver.cs (1)
99if (!NativeMethods.IsWindows)
NativeMethods.cs (6)
324if (!IsWindows) 381if (IsWindows) 450internal static bool IsUnixLike => !IsWindows; 497get { return IsWindows ? "Windows_NT" : "Unix"; } 671if (!IsWindows) 1262if (IsWindows || string.IsNullOrEmpty(path))
PathHelpers\AbsolutePath.cs (1)
136if (!NativeMethods.IsWindows
Traits.cs (1)
229(!NativeMethods.IsWindows && // Windows env vars are case-insensitive so no need to explicitly check
Utilities\AssemblyFolders\AssemblyFoldersEx.cs (1)
81if (!NativeMethods.IsWindows)
Utilities\FileMatcher.cs (5)
2024if (NativeMethods.IsWindows && 2235NativeMethods.IsWindows 2951useWin32FileNameMatch: NativeMethods.IsWindows 2955useWin32DirectoryMatch: NativeMethods.IsWindows 3039if (NativeMethods.IsWindows
Utilities\FrameworkLocationHelper.cs (13)
73internal static string dotNetFrameworkVersionFolderPrefixV11 = NativeMethods.IsWindows ? "v1.1" : "1.1"; // v1.1 is for Everett. 78internal static string dotNetFrameworkVersionFolderPrefixV20 = NativeMethods.IsWindows ? "v2.0" : "2.0"; // v2.0 is for Whidbey. 82internal static string dotNetFrameworkVersionFolderPrefixV30 = NativeMethods.IsWindows ? "v3.0" : "3.0"; // v3.0 is for WinFx. 96internal static string dotNetFrameworkVersionFolderPrefixV35 = NativeMethods.IsWindows ? "v3.5" : "3.5"; // v3.5 is for Orcas. 102internal static string dotNetFrameworkVersionFolderPrefixV40 = NativeMethods.IsWindows ? "v4.0" : "4.0"; 103internal static string dotNetFrameworkVersionFolderPrefixV45 = NativeMethods.IsWindows ? "v4.5" : "4.5"; 518if (!NativeMethods.IsWindows) 568if (NativeMethods.IsWindows) 615if (NativeMethods.IsWindows) 809if (!NativeMethods.IsWindows) 966combinedPath = NativeMethods.IsWindows 1176dotNetFrameworkVersionFolderPrefix: NativeMethods.IsWindows ? "v4.0" : "v4.5", 1567if (NativeMethods.IsWindows)
Utilities\ProcessExtensions.cs (1)
116if (NativeMethods.IsWindows)
Utilities\ToolLocationHelper_ReferenceAssemblies.cs (1)
128if (NativeMethods.IsWindows && platformTarget != null)
Utilities\ToolLocationHelper_SDKDiscovery.cs (3)
62string registryRoot = NativeMethods.IsWindows ? GetTargetPlatformMonikerRegistryRoots(registrySearchLocation) : string.Empty; 81if (NativeMethods.IsWindows) 509if (NativeMethods.IsWindows)
Microsoft.Build.Tasks.Core (25)
AssemblyDependency\AssemblyInformation.cs (1)
308if (!NativeMethodsShared.IsWindows)
AssemblyDependency\AssemblyMetadata.cs (1)
30ScatterFiles = NativeMethodsShared.IsWindows ? import.Files : null;
AssemblyDependency\Node\NodePipeClient.cs (1)
18private static readonly bool s_useHandhakeTimeout = !NativeMethodsShared.IsWindows;
AssemblyDependency\Node\NodePipeServer.cs (1)
32private static readonly int s_handshakeTimeout = NativeMethodsShared.IsWindows ? 0 : 60_000;
AssemblyDependency\Reference.cs (1)
514else if (NativeMethodsShared.IsWindows)
Copy.cs (1)
347if (!NativeMethodsShared.IsWindows)
Exec.cs (3)
523if (NativeMethodsShared.IsWindows) 612if (NativeMethodsShared.IsWindows) 673protected override string ToolName => NativeMethodsShared.IsWindows ? "cmd.exe" : "sh";
FormatUrl.cs (1)
47if (InputUrl.Length > 0 && NativeMethodsShared.IsWindows && string.IsNullOrWhiteSpace(InputUrl))
GenerateApplicationManifest.cs (1)
116if (!NativeMethodsShared.IsWindows)
GenerateDeploymentManifest.cs (1)
160if (!NativeMethodsShared.IsWindows)
GenerateLauncher.cs (1)
48if (!NativeMethodsShared.IsWindows)
GenerateManifestBase.cs (1)
284if (!NativeMethodsShared.IsWindows)
GetInstalledSDKLocations.cs (1)
131if (!NativeMethodsShared.IsWindows)
GetSDKReferenceFiles.cs (1)
230if (!NativeMethodsShared.IsWindows)
ManifestUtil\SecurityUtil.cs (1)
911if (NativeMethodsShared.IsWindows && (toolPath == null || !FileSystems.Default.FileExists(toolPath)))
Move.cs (1)
292if (NativeMethodsShared.IsWindows)
NativeMethods.cs (3)
77if (NativeMethodsShared.IsWindows) 274if (NativeMethodsShared.IsWindows) 338if (NativeMethodsShared.IsWindows)
ResolveSDKReference.cs (1)
272if (!NativeMethodsShared.IsWindows)
SignFile.cs (1)
52if (!NativeMethodsShared.IsWindows)
TarTaskBase.cs (2)
365if (!NativeMethodsShared.IsWindows) 418if (!NativeMethodsShared.IsWindows)
Microsoft.Build.Utilities.Core (4)
ToolTask.cs (4)
674if (NativeMethodsShared.IsWindows) 809if (NativeMethodsShared.IsWindows) 1509bool runningOnWindows = NativeMethodsShared.IsWindows; 1738if (NativeMethodsShared.IsWindows)
MSBuild (5)
FilteredBinlogReplay.cs (2)
156NativeMethodsShared.IsWindows ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); 168HashSet<string> outputPaths = new(NativeMethodsShared.IsWindows ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
OutOfProcTaskHostNode.cs (1)
1984isWindows: NativeMethodsShared.IsWindows);
XMake.cs (2)
2364if (NativeMethodsShared.IsWindows && 3774|| NativeMethodsShared.IsWindows