253 references to NativeMethods
Microsoft.Build (68)
AssemblyInfo.cs (1)
4
global using NativeMethodsShared = Microsoft.Build.Framework.
NativeMethods
;
BackEnd\BuildManager\BuildManager.cs (7)
561
if (
NativeMethodsShared
.IsWindows || parameters.LowPriority)
1358
_buildTelemetry.BuildEngineFrameworkName =
NativeMethodsShared
.FrameworkName;
1375
var sacState =
NativeMethodsShared
.GetSACState();
1377
_buildTelemetry.SACEnabled = sacState ==
NativeMethodsShared
.SAC_State.Evaluation || sacState ==
NativeMethodsShared
.SAC_State.Enforcement;
1484
NativeMethodsShared
.FrameworkName,
1506
BuildEngineFrameworkName =
NativeMethodsShared
.FrameworkName,
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (6)
82
sentinelDirectory =
NativeMethodsShared
.IsWindows
83
?
NativeMethodsShared
.GetLongFilePath(sentinelDirectory)
84
:
NativeMethodsShared
.RealPath(sentinelDirectory) ?? throw new Win32Exception();
85
string canonicalTemporaryDirectory =
NativeMethodsShared
.IsWindows
86
?
NativeMethodsShared
.GetLongFilePath(temporaryDirectory)
87
:
NativeMethodsShared
.RealPath(temporaryDirectory) ?? throw new Win32Exception();
BackEnd\Client\MSBuildClient.cs (2)
289
NativeMethodsShared
.RestoreConsoleMode(_originalConsoleMode);
457
(var acceptAnsiColorCodes, var outputIsScreen, _originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
BackEnd\Components\Caching\ResultsCache.cs (1)
269
capacity => new ConcurrentDictionary<int, BuildResult>(
NativeMethodsShared
.GetLogicalCoreCount(), capacity));
BackEnd\Components\Communications\NodeLauncher.cs (1)
77
return
NativeMethodsShared
.IsUnixLike
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
773
return Math.Max(1, (3 *
NativeMethodsShared
.GetLogicalCoreCount()) / 2);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
1189
return
NativeMethodsShared
.IsFileSystemCaseSensitive ? normalizedPath : normalizedPath.ToUpperInvariant();
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
56
if (
NativeMethodsShared
.IsWindows)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
994
oldestOutputFileTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(oldestOutputFullPath);
1019
candidateOutputFileTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(candidateOutputFullPath);
1054
inputFileTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(unescapedInputFullPath);
1209
var path1WriteTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(path1);
1212
var path2WriteTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(path2);
BackEnd\Components\Scheduler\Scheduler.cs (1)
255
_coreLimit =
NativeMethodsShared
.GetLogicalCoreCount();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
557
NativeMethodsShared
.GetLogicalCoreCount(),
BackEnd\Node\InProcNode.cs (1)
349
NativeMethodsShared
.SetCurrentDirectory(_savedCurrentDirectory);
BackEnd\Node\OutOfProcNode.cs (4)
510
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
744
NativeMethodsShared
.SetCurrentDirectory(BuildParameters.StartupDirectory);
749
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
906
if (!lowPriority ||
NativeMethodsShared
.IsWindows)
BackEnd\Node\OutOfProcServerNode.cs (5)
292
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
437
NativeMethodsShared
.ConsoleConfigurationOverride =
463
if (
NativeMethodsShared
.IsWindows && command.ConsoleConfiguration.BufferWidth > 0)
497
NativeMethodsShared
.ConsoleConfigurationOverride = null;
502
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
BackEnd\Shared\BuildRequestConfiguration.cs (2)
540
NativeMethodsShared
.SetCurrentDirectory(BuildParameters.StartupDirectory);
545
NativeMethodsShared
.SetCurrentDirectory(
Definition\ToolsetReader.cs (2)
181
var libraryPath =
NativeMethodsShared
.FrameworkBasePath;
505
var importSearchPathsTable = GetProjectImportSearchPathsTable(toolsVersion.Name,
NativeMethodsShared
.GetOSNameForExtensionsPath());
Evaluation\Evaluator.cs (3)
1307
if (!
NativeMethodsShared
.IsWindows)
1309
SetBuiltInProperty(ReservedPropertyNames.osName,
NativeMethodsShared
.OSName);
1310
SetBuiltInProperty(ReservedPropertyNames.frameworkToolsRoot,
NativeMethodsShared
.FrameworkBasePath);
Evaluation\Expander.PropertyExpander.cs (3)
679
if (!
NativeMethodsShared
.IsWindows)
719
if (!
NativeMethodsShared
.IsWindows && !registryKeyName.StartsWith("HKEY_CURRENT_USER", StringComparison.OrdinalIgnoreCase))
729
return
NativeMethodsShared
.FrameworkBasePath + Path.DirectorySeparatorChar;
Evaluation\IntrinsicFunctions.cs (8)
205
if (!
NativeMethodsShared
.IsWindows)
221
if (!
NativeMethodsShared
.IsWindows)
234
if (!
NativeMethodsShared
.IsWindows)
256
if (!
NativeMethodsShared
.IsWindows)
287
if (!
NativeMethodsShared
.IsWindows && !keyName.StartsWith("HKEY_CURRENT_USER", StringComparison.OrdinalIgnoreCase))
296
return Path.Combine(
NativeMethodsShared
.FrameworkBasePath, m.Groups[0].Value) + Path.DirectorySeparatorChar;
613
return
NativeMethodsShared
.IsUnixLike;
622
return
NativeMethodsShared
.IsBSD;
Graph\ProjectGraph.cs (2)
342
NativeMethodsShared
.GetLogicalCoreCount(),
383
NativeMethodsShared
.GetLogicalCoreCount(),
Graph\ProjectGraphOptions.cs (1)
33
public int DegreeOfParallelism { get; init; } =
NativeMethodsShared
.GetLogicalCoreCount();
Instance\HostServices.cs (1)
89
if (
NativeMethodsShared
.IsWindows)
Logging\BaseConsoleLogger.cs (1)
265
runningWithCharacterFileType =
NativeMethodsShared
.IsWindows && ConsoleConfiguration.OutputIsScreen;
Logging\SimpleErrorLogger.cs (2)
27
(acceptAnsiColorCodes, _, originalConsoleMode) =
NativeMethods
.QueryIsScreenAndTryEnableAnsiColorCodes(useStandardError: true);
88
NativeMethods
.RestoreConsoleMode(originalConsoleMode, useStandardError: true);
Logging\TerminalLogger\TerminalLogger.cs (5)
271
(bool supportsAnsi, bool outputIsScreen, uint? originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
283
(bool supportsAnsi, bool outputIsScreen, uint? originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
373
NativeMethodsShared
.RestoreConsoleMode(originalConsoleMode);
387
NativeMethodsShared
.RestoreConsoleMode(originalConsoleMode);
548
NativeMethodsShared
.RestoreConsoleMode(_originalConsoleMode);
Microsoft.Build.Framework (90)
BackEnd\CommunicationsUtilities.cs (2)
496
if (!
NativeMethods
.IsWindows)
674
NativeMethods
.IsWindows &&
BackEnd\Handshake.cs (2)
120
if (includeSessionId &&
NativeMethods
.IsWindows)
192
if (!
NativeMethods
.IsWindows || string.IsNullOrEmpty(path) || path!.Length < 2 || path[1] != ':')
BackEnd\NamedPipeUtil.cs (1)
23
if (
NativeMethods
.IsUnixLike)
BuildEnvironmentHelper.cs (12)
171
if (!
NativeMethods
.IsWindows)
203
if (
NativeMethods
.IsWindows &&
277
if (
NativeMethods
.IsWindows &&
407
NativeMethods
.ProcessorArchitecture ==
NativeMethods
.ProcessorArchitectures.X64 ? "amd64" :
408
NativeMethods
.ProcessorArchitecture ==
NativeMethods
.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
623
MSBuildToolsDirectoryRoot =
NativeMethods
.ProcessorArchitecture switch
625
NativeMethods
.ProcessorArchitectures.X86 => CurrentMSBuildToolsDirectory,
626
NativeMethods
.ProcessorArchitectures.X64 or
NativeMethods
.ProcessorArchitectures.ARM64
629
_ => Assumed.Unreachable<string>($"Unknown processor architecture {
NativeMethods
.ProcessorArchitecture}"),
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;
Coordinator\CoordinatorSettings.cs (1)
141
if (
NativeMethods
.IsWindows)
EncodingUtilities.cs (1)
229
if (!
NativeMethods
.IsWindows)
FileUtilities.cs (10)
235
=> path.Length >=
NativeMethods
.MaxPath; // >= not > because MAX_PATH assumes a trailing null
241
=>
NativeMethods
.IsUnixLike && path.IndexOf(WindowsDirectorySeparator) >= 0;
247
=>
NativeMethods
.IsWindows && path.IndexOf(UnixDirectorySeparator) >= 0;
447
if (
NativeMethods
.GetLastWriteDirectoryUtcTime(directoryPath, out lastModifiedTime))
748
if (
NativeMethods
.IsWindows || string.IsNullOrEmpty(value)
769
if (
NativeMethods
.IsWindows || value.IsEmpty)
850
if (
NativeMethods
.IsWindows)
978
if (
NativeMethods
.IsWindows && !EndsWithSlash(fullPath))
1454
bool hasMaxPath =
NativeMethods
.HasMaxPath;
1455
int maxPath =
NativeMethods
.MaxPath;
ItemSpecModifiers.cs (1)
565
if (
NativeMethods
.IsWindows)
MSBuildNameIgnoreCaseComparer.cs (4)
25
private static readonly
NativeMethods
.ProcessorArchitectures s_runningProcessorArchitecture =
NativeMethods
.ProcessorArchitecture;
117
if ((s_runningProcessorArchitecture !=
NativeMethods
.ProcessorArchitectures.IA64)
118
&& (s_runningProcessorArchitecture !=
NativeMethods
.ProcessorArchitectures.ARM))
MultiProcessTaskEnvironmentDriver.cs (1)
37
set =>
NativeMethods
.SetCurrentDirectory(value.Value);
MultiThreadedTaskEnvironmentDriver.cs (1)
99
if (!
NativeMethods
.IsWindows)
PathHelpers\AbsolutePath.cs (2)
29
private static readonly StringComparer s_pathComparer =
NativeMethods
.IsFileSystemCaseSensitive ? StringComparer.Ordinal : StringComparer.OrdinalIgnoreCase;
136
if (!
NativeMethods
.IsWindows
Traits.cs (1)
215
(!
NativeMethods
.IsWindows && // Windows env vars are case-insensitive so no need to explicitly check
Utilities\FileMatcher.cs (10)
1182
if (
NativeMethods
.IsLinux && recursionState.SearchData.DirectoryPattern != null)
1326
using (var matchFileExpression = new ReuseableStringBuilder(FileSpecRegexMinLength +
NativeMethods
.MAX_PATH))
1379
bool isUncPath =
NativeMethods
.IsWindows && fixedDir.Length > 1
2424
if (
NativeMethods
.IsWindows &&
2635
NativeMethods
.IsWindows
3227
Math.Max(1,
NativeMethods
.GetLogicalCoreCount() / 2));
3342
filesystemCaseSensitive:
NativeMethods
.IsLinux && !matchForExclusion && !useCachedCallback,
3351
useWin32FileNameMatch:
NativeMethods
.IsWindows
3355
useWin32DirectoryMatch:
NativeMethods
.IsWindows
3970
var maxTasks = Math.Max(1,
NativeMethods
.GetLogicalCoreCount() / 2);
Utilities\FrameworkLocationHelper.cs (35)
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";
444
return
NativeMethods
.IsUnixLike
445
? Path.Combine(
NativeMethods
.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11)
454
return
NativeMethods
.IsUnixLike
455
? Path.Combine(
NativeMethods
.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20)
464
return
NativeMethods
.IsUnixLike
465
? Path.Combine(
NativeMethods
.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV30)
474
return
NativeMethods
.IsUnixLike
475
? Path.Combine(
NativeMethods
.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV35)
484
return
NativeMethods
.IsUnixLike
485
? Path.Combine(
NativeMethods
.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV40)
494
return
NativeMethods
.IsUnixLike
495
? Path.Combine(
NativeMethods
.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV45)
504
return
NativeMethods
.IsUnixLike
505
? Path.Combine(
NativeMethods
.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV11)
514
return
NativeMethods
.IsUnixLike
515
? Path.Combine(
NativeMethods
.FrameworkBasePath, dotNetFrameworkVersionFolderPrefixV20)
538
if (!
NativeMethods
.IsWindows)
540
s_fallbackDotNetFrameworkSdkInstallPath =
NativeMethods
.FrameworkCurrentPath;
588
if (
NativeMethods
.IsWindows)
635
if (
NativeMethods
.IsWindows)
829
if (!
NativeMethods
.IsWindows)
836
var frameworkPath = Path.Combine(
NativeMethods
.FrameworkBasePath, prefix ?? string.Empty);
986
combinedPath =
NativeMethods
.IsWindows
988
: Path.Combine(
NativeMethods
.FrameworkBasePath, "xbuild-frameworks");
1196
dotNetFrameworkVersionFolderPrefix:
NativeMethods
.IsWindows ? "v4.0" : "v4.5",
1444
string currentRuntimePath =
NativeMethods
.FrameworkCurrentPath;
1496
if (
NativeMethods
.IsUnixLike)
1498
string frameworkPath =
NativeMethods
.FrameworkBasePath;
1587
if (
NativeMethods
.IsWindows)
Utilities\ProcessExtensions.cs (4)
116
if (
NativeMethods
.IsWindows)
122
else if (
NativeMethods
.IsOSX ||
NativeMethods
.IsBSD)
127
else if (
NativeMethods
.IsLinux)
Microsoft.Build.Tasks.Core (42)
AssemblyDependency\AssemblyInformation.cs (1)
308
if (!
NativeMethodsShared
.IsWindows)
AssemblyDependency\AssemblyMetadata.cs (1)
30
ScatterFiles =
NativeMethodsShared
.IsWindows ? import.Files : null;
AssemblyDependency\Reference.cs (1)
514
else if (
NativeMethodsShared
.IsWindows)
AssemblyDependency\ResolveAssemblyReference.cs (1)
3858
p =>
NativeMethodsShared
.GetLastWriteFileUtcTime(p),
AssemblyInfo.cs (1)
4
global using NativeMethodsShared = Microsoft.Build.Framework.
NativeMethods
;
Copy.cs (3)
45
private static readonly int DefaultCopyParallelism =
NativeMethodsShared
.GetLogicalCoreCount() > 4 ? 6 : 4;
355
TryCopyViaLink(SymbolicLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out symbolicLinkCreated, ref errorMessage, (source, destination, errMessage) =>
NativeMethodsShared
.MakeSymbolicLink(destination, source, ref errorMessage));
358
if (!
NativeMethodsShared
.IsWindows)
Exec.cs (7)
75
if (
NativeMethodsShared
.IsUnixLike)
214
if (!
NativeMethodsShared
.IsUnixLike)
259
if (!
NativeMethodsShared
.IsUnixLike)
523
if (
NativeMethodsShared
.IsWindows)
602
if (
NativeMethodsShared
.IsUnixLike)
612
if (
NativeMethodsShared
.IsWindows)
673
protected override string ToolName =>
NativeMethodsShared
.IsWindows ? "cmd.exe" : "sh";
FormatUrl.cs (1)
47
if (InputUrl.Length > 0 &&
NativeMethodsShared
.IsWindows && string.IsNullOrWhiteSpace(InputUrl))
GenerateApplicationManifest.cs (1)
116
if (!
NativeMethodsShared
.IsWindows)
GenerateDeploymentManifest.cs (1)
160
if (!
NativeMethodsShared
.IsWindows)
GenerateLauncher.cs (1)
48
if (!
NativeMethodsShared
.IsWindows)
GenerateManifestBase.cs (1)
284
if (!
NativeMethodsShared
.IsWindows)
GenerateResource.cs (7)
1587
DateTime outputTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(outputFilePath);
1597
DateTime sourceTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(sourceFilePath);
1643
DateTime linkedFileTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(linkedFilePath);
1730
DateTime sourceTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(Sources[0].ItemSpec);
1731
DateTime outputTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(StronglyTypedFileName);
1789
DateTime time =
NativeMethodsShared
.GetLastWriteFileUtcTime(input.ItemSpec);
2898
if (!
NativeMethodsShared
.HasMaxPath)
GetInstalledSDKLocations.cs (1)
131
if (!
NativeMethodsShared
.IsWindows)
GetSDKReferenceFiles.cs (1)
230
if (!
NativeMethodsShared
.IsWindows)
ManifestUtil\SecurityUtil.cs (1)
891
if (
NativeMethodsShared
.IsWindows && (toolPath == null || !FileSystems.Default.FileExists(toolPath)))
Move.cs (1)
292
if (
NativeMethodsShared
.IsWindows)
NativeMethods.cs (4)
77
if (
NativeMethodsShared
.IsWindows)
230
private static readonly string s_gacPath = Path.Combine(
NativeMethodsShared
.FrameworkBasePath, "gac");
274
if (
NativeMethodsShared
.IsWindows)
338
if (
NativeMethodsShared
.IsWindows)
parent\Shared\AssemblyFolders\AssemblyFoldersEx.cs (1)
80
if (!
NativeMethodsShared
.IsWindows)
parent\Shared\NodePipeClient.cs (1)
18
private static readonly bool s_useHandhakeTimeout = !
NativeMethodsShared
.IsWindows;
parent\Shared\NodePipeServer.cs (1)
32
private static readonly int s_handshakeTimeout =
NativeMethodsShared
.IsWindows ? 0 : 60_000;
ResolveSDKReference.cs (1)
272
if (!
NativeMethodsShared
.IsWindows)
SignFile.cs (1)
52
if (!
NativeMethodsShared
.IsWindows)
SystemState.cs (1)
707
return lastModified != DateTime.MinValue && lastModified !=
NativeMethodsShared
.MinFileDate;
Unzip.cs (1)
269
if (mode != UnixFileMode.None &&
NativeMethodsShared
.IsUnixLike)
Microsoft.Build.Utilities.Core (29)
AssemblyInfo.cs (1)
4
global using NativeMethodsShared = Microsoft.Build.Framework.
NativeMethods
;
parent\Shared\AssemblyFolders\AssemblyFoldersEx.cs (1)
80
if (!
NativeMethodsShared
.IsWindows)
ProcessorArchitecture.cs (11)
84
string architecture =
NativeMethodsShared
.ProcessorArchitecture switch
86
NativeMethodsShared
.ProcessorArchitectures.X86 => X86,
87
NativeMethodsShared
.ProcessorArchitectures.X64 => AMD64,
88
NativeMethodsShared
.ProcessorArchitectures.IA64 => IA64,
89
NativeMethodsShared
.ProcessorArchitectures.ARM => ARM,
90
NativeMethodsShared
.ProcessorArchitectures.ARM64 => ARM64,
91
NativeMethodsShared
.ProcessorArchitectures.WASM => WASM,
92
NativeMethodsShared
.ProcessorArchitectures.S390X => S390X,
93
NativeMethodsShared
.ProcessorArchitectures.LOONGARCH64 => LOONGARCH64,
94
NativeMethodsShared
.ProcessorArchitectures.ARMV6 => ARMV6,
95
NativeMethodsShared
.ProcessorArchitectures.PPC64LE => PPC64LE,
ToolLocationHelper.cs (11)
1826
if (
NativeMethodsShared
.IsWindows && platformTarget != null)
2444
string registryRoot =
NativeMethodsShared
.IsWindows ? GetTargetPlatformMonikerRegistryRoots(registrySearchLocation) : string.Empty;
2469
if (
NativeMethodsShared
.IsWindows)
2895
if (
NativeMethodsShared
.IsWindows)
2917
diskRoots.Add(
NativeMethodsShared
.FrameworkBasePath);
3387
=>
NativeMethodsShared
.ProcessorArchitectureNative switch
3389
NativeMethodsShared
.ProcessorArchitectures.X64 => ProcessorArchitecture.AMD64,
3390
NativeMethodsShared
.ProcessorArchitectures.IA64 => ProcessorArchitecture.IA64,
3391
NativeMethodsShared
.ProcessorArchitectures.ARM64 => ProcessorArchitecture.ARM64,
3395
NativeMethodsShared
.ProcessorArchitectures.X86 => null,
3396
NativeMethodsShared
.ProcessorArchitectures.ARM => null,
ToolTask.cs (5)
669
if (
NativeMethodsShared
.IsWindows)
804
if (
NativeMethodsShared
.IsWindows)
1504
bool runningOnWindows =
NativeMethodsShared
.IsWindows;
1566
batchFileForCommandLine =
NativeMethodsShared
.GetShortFilePath(batchFileForCommandLine);
1733
if (
NativeMethodsShared
.IsWindows)
MSBuild (24)
AssemblyInfo.cs (1)
4
global using NativeMethodsShared = Microsoft.Build.Framework.
NativeMethods
;
CommandLine\CommandLineParser.cs (1)
287
int numberOfCpus =
NativeMethodsShared
.GetLogicalCoreCount();
FilteredBinlogReplay.cs (2)
156
NativeMethodsShared
.IsWindows ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
168
HashSet<string> outputPaths = new(
NativeMethodsShared
.IsWindows ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
OutOfProcTaskHostNode.cs (4)
1218
NativeMethodsShared
.SetCurrentDirectory(context.SavedCurrentDirectory);
1475
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
1514
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
1697
NativeMethodsShared
.SetCurrentDirectory(taskConfiguration.StartupDirectory);
XMake.cs (16)
1407
NativeMethodsShared
.RestoreConsoleMode(s_originalConsoleMode);
1443
NativeMethodsShared
.FrameworkName,
2163
NativeMethodsShared
.LongPathsStatus longPaths =
NativeMethodsShared
.IsLongPathsEnabled();
2164
if (longPaths !=
NativeMethodsShared
.LongPathsStatus.NotApplicable)
2175
NativeMethodsShared
.SAC_State SAC_State =
NativeMethodsShared
.GetSACState();
2176
if (SAC_State !=
NativeMethodsShared
.SAC_State.NotApplicable && SAC_State !=
NativeMethodsShared
.SAC_State.Missing)
2348
if (
NativeMethodsShared
.IsWindows &&
2922
(var acceptAnsiColorCodes, var outputIsScreen, s_originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
3075
(_, _, s_originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
3741
||
NativeMethodsShared
.IsWindows
3758
string physicalPwd =
NativeMethodsShared
.RealPath(logicalCurrentDirectory);
3759
string physicalCwd =
NativeMethodsShared
.RealPath(Directory.GetCurrentDirectory());
4737
Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage", ProjectCollection.DisplayVersion,
NativeMethods
.FrameworkName));