19 references to NativeMethods
Microsoft.Build.Framework (19)
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 (3)
58
if (
NativeMethods
.IsWindows)
64
s_currentOemEncoding = Encoding.GetEncoding(
NativeMethods
.GetOEMCP());
224
if (!
NativeMethods
.IsWindows)
FileUtilities.cs (2)
112
=>
NativeMethods
.IsUnixLike && path.IndexOf(WindowsDirectorySeparator) >= 0;
118
=>
NativeMethods
.IsWindows && path.IndexOf(UnixDirectorySeparator) >= 0;
MSBuildNameIgnoreCaseComparer.cs (6)
25
private static readonly
NativeMethods
.ProcessorArchitectures s_runningProcessorArchitecture =
NativeMethods
.ProcessorArchitecture;
75
if ((s_runningProcessorArchitecture !=
NativeMethods
.ProcessorArchitectures.IA64)
76
&& (s_runningProcessorArchitecture !=
NativeMethods
.ProcessorArchitectures.ARM))
123
if ((s_runningProcessorArchitecture !=
NativeMethods
.ProcessorArchitectures.IA64)
124
&& (s_runningProcessorArchitecture !=
NativeMethods
.ProcessorArchitectures.ARM))
NativeMethods.cs (2)
1221
bool success =
NativeMethods
.GetFileAttributesEx(path, 0, ref data);
1223
if (success && (data.fileAttributes &
NativeMethods
.FILE_ATTRIBUTE_DIRECTORY) == 0)
PathHelpers\AbsolutePath.cs (2)
29
private static readonly StringComparer s_pathComparer =
NativeMethods
.IsFileSystemCaseSensitive ? StringComparer.Ordinal : StringComparer.OrdinalIgnoreCase;
163
bool needsSeparatorNormalization =
NativeMethods
.IsWindows && Value.IndexOf(Path.AltDirectorySeparatorChar) >= 0;
Telemetry\CrashTelemetry.cs (2)
226
NativeMethods
.MemoryStatus? memoryStatus =
NativeMethods
.GetMemoryStatus();