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