23 references to IsWindows
Microsoft.Build.Framework (23)
D\a\_work\1\s\bin\repo\msbuild\src\Framework\Constants.cs\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 (2)
58
if (NativeMethods.
IsWindows
)
224
if (!NativeMethods.
IsWindows
)
FileUtilities.cs (1)
118
=> NativeMethods.
IsWindows
&& path.IndexOf(UnixDirectorySeparator) >= 0;
NativeMethods.cs (17)
453
if (
IsWindows
)
498
if (
IsWindows
)
624
if (!
IsWindows
)
681
if (
IsWindows
)
837
get { return
IsWindows
? "Windows_NT" : "Unix"; }
1014
if (
IsWindows
)
1054
if (!
IsWindows
)
1131
if (
IsWindows
)
1149
if (
IsWindows
)
1213
if (
IsWindows
)
1529
if (
IsWindows
)
1633
if (
IsWindows
)
1680
if (
IsWindows
&& originalConsoleMode is not null)
1764
if (
IsWindows
)
1871
return
IsWindows
1886
return
IsWindows
1901
return
IsWindows
PathHelpers\AbsolutePath.cs (1)
163
bool needsSeparatorNormalization = NativeMethods.
IsWindows
&& Value.IndexOf(Path.AltDirectorySeparatorChar) >= 0;