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