237 references to NativeMethods
Microsoft.Build (65)
AssemblyInfo.cs (1)
4
global using NativeMethodsShared = Microsoft.Build.Framework.
NativeMethods
;
BackEnd\BuildManager\BuildManager.cs (7)
506
if (
NativeMethodsShared
.IsWindows || parameters.LowPriority)
1145
_buildTelemetry.BuildEngineFrameworkName =
NativeMethodsShared
.FrameworkName;
1159
var sacState =
NativeMethodsShared
.GetSACState();
1161
_buildTelemetry.SACEnabled = sacState ==
NativeMethodsShared
.SAC_State.Evaluation || sacState ==
NativeMethodsShared
.SAC_State.Enforcement;
1251
NativeMethodsShared
.FrameworkName,
1273
BuildEngineFrameworkName =
NativeMethodsShared
.FrameworkName,
BackEnd\BuildManager\BuildParameters.cs (1)
65
private static string s_startupDirectory =
NativeMethodsShared
.GetCurrentDirectory();
BackEnd\Client\MSBuildClient.cs (2)
223
NativeMethodsShared
.RestoreConsoleMode(_originalConsoleMode);
367
(var acceptAnsiColorCodes, var outputIsScreen, _originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
BackEnd\Components\Caching\ResultsCache.cs (1)
252
capacity => new ConcurrentDictionary<int, BuildResult>(
NativeMethodsShared
.GetLogicalCoreCount(), capacity));
BackEnd\Components\Communications\NodeLauncher.cs (1)
77
return
NativeMethodsShared
.IsUnixLike
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
633
return Math.Max(1, (3 *
NativeMethodsShared
.GetLogicalCoreCount()) / 2);
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
56
if (
NativeMethodsShared
.IsWindows)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
988
oldestOutputFileTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(oldestOutputFullPath);
1013
candidateOutputFileTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(candidateOutputFullPath);
1048
inputFileTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(unescapedInputFullPath);
1203
var path1WriteTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(path1);
1206
var path2WriteTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(path2);
BackEnd\Components\Scheduler\Scheduler.cs (1)
255
_coreLimit =
NativeMethodsShared
.GetLogicalCoreCount();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
547
NativeMethodsShared
.GetLogicalCoreCount(),
BackEnd\Node\InProcNode.cs (3)
149
_savedCurrentDirectory =
NativeMethodsShared
.GetCurrentDirectory();
352
NativeMethodsShared
.SetCurrentDirectory(_savedCurrentDirectory);
488
_savedCurrentDirectory =
NativeMethodsShared
.GetCurrentDirectory();
BackEnd\Node\OutOfProcNode.cs (4)
495
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
722
NativeMethodsShared
.SetCurrentDirectory(BuildParameters.StartupDirectory);
727
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
884
if (!lowPriority ||
NativeMethodsShared
.IsWindows)
BackEnd\Node\OutOfProcServerNode.cs (3)
262
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
417
if (
NativeMethodsShared
.IsWindows && command.ConsoleConfiguration.BufferWidth > 0)
452
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
BackEnd\Shared\BuildRequestConfiguration.cs (2)
473
NativeMethodsShared
.SetCurrentDirectory(BuildParameters.StartupDirectory);
478
NativeMethodsShared
.SetCurrentDirectory(
Construction\ProjectRootElement.cs (3)
179
_directory =
NativeMethodsShared
.GetCurrentDirectory();
204
_directory =
NativeMethodsShared
.GetCurrentDirectory();
261
_directory =
NativeMethodsShared
.GetCurrentDirectory();
Definition\ToolsetReader.cs (2)
167
var libraryPath =
NativeMethodsShared
.FrameworkBasePath;
493
var importSearchPathsTable = GetProjectImportSearchPathsTable(toolsVersion.Name,
NativeMethodsShared
.GetOSNameForExtensionsPath());
Evaluation\Evaluator.cs (3)
1159
if (!
NativeMethodsShared
.IsWindows)
1161
SetBuiltInProperty(ReservedPropertyNames.osName,
NativeMethodsShared
.OSName);
1162
SetBuiltInProperty(ReservedPropertyNames.frameworkToolsRoot,
NativeMethodsShared
.FrameworkBasePath);
Evaluation\Expander.cs (3)
1746
if (!
NativeMethodsShared
.IsWindows)
1786
if (!
NativeMethodsShared
.IsWindows && !registryKeyName.StartsWith("HKEY_CURRENT_USER", StringComparison.OrdinalIgnoreCase))
1796
return
NativeMethodsShared
.FrameworkBasePath + Path.DirectorySeparatorChar;
Evaluation\IntrinsicFunctions.cs (8)
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))
297
return Path.Combine(
NativeMethodsShared
.FrameworkBasePath, m.Groups[0].Value) + Path.DirectorySeparatorChar;
588
return
NativeMethodsShared
.IsUnixLike;
597
return
NativeMethodsShared
.IsBSD;
Graph\ProjectGraph.cs (2)
341
NativeMethodsShared
.GetLogicalCoreCount(),
382
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)
265
(bool supportsAnsi, bool outputIsScreen, uint? originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
277
(bool supportsAnsi, bool outputIsScreen, uint? originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
367
NativeMethodsShared
.RestoreConsoleMode(originalConsoleMode);
381
NativeMethodsShared
.RestoreConsoleMode(originalConsoleMode);
542
NativeMethodsShared
.RestoreConsoleMode(_originalConsoleMode);
src\msbuild\src\Shared\NamedPipeUtil.cs (1)
26
if (
NativeMethodsShared
.IsUnixLike)
Microsoft.Build.Framework (80)
BackEnd\CommunicationsUtilities.cs (2)
473
if (!
NativeMethods
.IsWindows)
639
NativeMethods
.IsWindows &&
BackEnd\Handshake.cs (1)
90
if (includeSessionId &&
NativeMethods
.IsWindows)
BuildEnvironmentHelper.cs (12)
133
if (!
NativeMethods
.IsWindows)
165
if (
NativeMethods
.IsWindows &&
239
if (
NativeMethods
.IsWindows &&
369
NativeMethods
.ProcessorArchitecture ==
NativeMethods
.ProcessorArchitectures.X64 ? "amd64" :
370
NativeMethods
.ProcessorArchitecture ==
NativeMethods
.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
590
MSBuildToolsDirectoryRoot =
NativeMethods
.ProcessorArchitecture switch
592
NativeMethods
.ProcessorArchitectures.X86 => CurrentMSBuildToolsDirectory,
593
NativeMethods
.ProcessorArchitectures.X64 or
NativeMethods
.ProcessorArchitectures.ARM64
595
_ => throw new InternalErrorException("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;
EncodingUtilities.cs (1)
229
if (!
NativeMethods
.IsWindows)
FileUtilities.cs (11)
234
=> path.Length >=
NativeMethods
.MaxPath; // >= not > because MAX_PATH assumes a trailing null
240
=>
NativeMethods
.IsUnixLike && path.IndexOf(WindowsDirectorySeparator) >= 0;
246
=>
NativeMethods
.IsWindows && path.IndexOf(UnixDirectorySeparator) >= 0;
430
if (
NativeMethods
.GetLastWriteDirectoryUtcTime(directoryPath, out lastModifiedTime))
772
if (
NativeMethods
.IsWindows || string.IsNullOrEmpty(value)
793
if (
NativeMethods
.IsWindows || value.IsEmpty)
874
if (
NativeMethods
.IsWindows)
1002
if (
NativeMethods
.IsWindows && !EndsWithSlash(fullPath))
1454
bool hasMaxPath =
NativeMethods
.HasMaxPath;
1455
int maxPath =
NativeMethods
.MaxPath;
1457
return hasMaxPath && !IsRootedNoThrow(path) &&
NativeMethods
.GetCurrentDirectory().Length + path.Length + 1 /* slash */ >= maxPath;
ItemSpecModifiers.cs (1)
547
if (
NativeMethods
.IsWindows)
MSBuildNameIgnoreCaseComparer.cs (4)
25
private static readonly
NativeMethods
.ProcessorArchitectures s_runningProcessorArchitecture =
NativeMethods
.ProcessorArchitecture;
123
if ((s_runningProcessorArchitecture !=
NativeMethods
.ProcessorArchitectures.IA64)
124
&& (s_runningProcessorArchitecture !=
NativeMethods
.ProcessorArchitectures.ARM))
MultiProcessTaskEnvironmentDriver.cs (2)
35
get => new AbsolutePath(
NativeMethods
.GetCurrentDirectory(), ignoreRootedCheck: true);
36
set =>
NativeMethods
.SetCurrentDirectory(value.Value);
PathHelpers\AbsolutePath.cs (1)
29
private static readonly StringComparer s_pathComparer =
NativeMethods
.IsFileSystemCaseSensitive ? StringComparer.Ordinal : StringComparer.OrdinalIgnoreCase;
Utilities\FileMatcher.cs (5)
1063
if (
NativeMethods
.IsLinux && recursionState.SearchData.DirectoryPattern != null)
1204
using (var matchFileExpression = new ReuseableStringBuilder(FileSpecRegexMinLength +
NativeMethods
.MAX_PATH))
1257
bool isUncPath =
NativeMethods
.IsWindows && fixedDir.Length > 1
2273
if (
NativeMethods
.IsWindows &&
2595
var maxTasks = Math.Max(1,
NativeMethods
.GetLogicalCoreCount() / 2);
Utilities\FrameworkLocationHelper.cs (34)
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",
1481
if (
NativeMethods
.IsUnixLike)
1483
string frameworkPath =
NativeMethods
.FrameworkBasePath;
1572
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 (43)
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)
AssemblyDependency\ResolveAssemblyReference.cs (1)
3306
p =>
NativeMethodsShared
.GetLastWriteFileUtcTime(p),
AssemblyInfo.cs (1)
4
global using NativeMethodsShared = Microsoft.Build.Framework.
NativeMethods
;
Copy.cs (4)
44
private static readonly int DefaultCopyParallelism =
NativeMethodsShared
.GetLogicalCoreCount() > 4 ? 6 : 4;
354
TryCopyViaLink(SymbolicLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out symbolicLinkCreated, ref errorMessage, (source, destination, errMessage) =>
NativeMethodsShared
.MakeSymbolicLink(destination, source, ref errorMessage));
357
if (!
NativeMethodsShared
.IsWindows)
1045
if (!_alwaysRetryCopy && (
NativeMethodsShared
.IsWindows || !ChangeWaves.AreFeaturesEnabled(ChangeWaves.Wave18_7)))
Exec.cs (7)
74
if (
NativeMethodsShared
.IsUnixLike)
213
if (!
NativeMethodsShared
.IsUnixLike)
258
if (!
NativeMethodsShared
.IsUnixLike)
501
if (
NativeMethodsShared
.IsWindows)
578
if (
NativeMethodsShared
.IsUnixLike)
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)
GenerateResource.cs (7)
1510
DateTime outputTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(outputFilePath);
1520
DateTime sourceTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(sourceFilePath);
1566
DateTime linkedFileTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(linkedFilePath);
1653
DateTime sourceTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(Sources[0].ItemSpec);
1654
DateTime outputTime =
NativeMethodsShared
.GetLastWriteFileUtcTime(StronglyTypedFileName);
1712
DateTime time =
NativeMethodsShared
.GetLastWriteFileUtcTime(input.ItemSpec);
2823
if (!
NativeMethodsShared
.HasMaxPath)
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 (5)
542
if (
NativeMethodsShared
.IsWindows)
582
if (
NativeMethodsShared
.IsWindows)
848
private static readonly string s_gacPath = Path.Combine(
NativeMethodsShared
.FrameworkBasePath, "gac");
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\NamedPipeUtil.cs (1)
26
if (
NativeMethodsShared
.IsUnixLike)
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;
SystemState.cs (1)
667
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
;
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,
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (1)
80
if (!
NativeMethodsShared
.IsWindows)
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);
3392
return
NativeMethodsShared
.ProcessorArchitectureNative switch
3394
NativeMethodsShared
.ProcessorArchitectures.X64 => ProcessorArchitecture.AMD64,
3395
NativeMethodsShared
.ProcessorArchitectures.IA64 => ProcessorArchitecture.IA64,
3396
NativeMethodsShared
.ProcessorArchitectures.ARM64 => ProcessorArchitecture.ARM64,
3399
NativeMethodsShared
.ProcessorArchitectures.X86 => null,
3400
NativeMethodsShared
.ProcessorArchitectures.ARM => null,
ToolTask.cs (5)
673
if (
NativeMethodsShared
.IsWindows)
808
if (
NativeMethodsShared
.IsWindows)
1507
bool runningOnWindows =
NativeMethodsShared
.IsWindows;
1572
batchFileForCommandLine =
NativeMethodsShared
.GetShortFilePath(batchFileForCommandLine);
1740
if (
NativeMethodsShared
.IsWindows)
MSBuild (20)
AssemblyInfo.cs (1)
4
global using NativeMethodsShared = Microsoft.Build.Framework.
NativeMethods
;
CommandLine\CommandLineParser.cs (1)
287
int numberOfCpus =
NativeMethodsShared
.GetLogicalCoreCount();
OutOfProcTaskHostNode.cs (4)
1128
context.SavedCurrentDirectory =
NativeMethodsShared
.GetCurrentDirectory();
1152
NativeMethodsShared
.SetCurrentDirectory(context.SavedCurrentDirectory);
1302
NativeMethodsShared
.SetCurrentDirectory(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory);
1425
NativeMethodsShared
.SetCurrentDirectory(taskConfiguration.StartupDirectory);
src\msbuild\src\Shared\NamedPipeUtil.cs (1)
26
if (
NativeMethodsShared
.IsUnixLike)
XMake.cs (13)
1086
NativeMethodsShared
.RestoreConsoleMode(s_originalConsoleMode);
1120
NativeMethodsShared
.FrameworkName,
1808
NativeMethodsShared
.LongPathsStatus longPaths =
NativeMethodsShared
.IsLongPathsEnabled();
1809
if (longPaths !=
NativeMethodsShared
.LongPathsStatus.NotApplicable)
1820
NativeMethodsShared
.SAC_State SAC_State =
NativeMethodsShared
.GetSACState();
1821
if (SAC_State !=
NativeMethodsShared
.SAC_State.NotApplicable && SAC_State !=
NativeMethodsShared
.SAC_State.Missing)
1926
if (
NativeMethodsShared
.IsWindows &&
2417
(var acceptAnsiColorCodes, var outputIsScreen, s_originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
2570
(_, _, s_originalConsoleMode) =
NativeMethodsShared
.QueryIsScreenAndTryEnableAnsiColorCodes();
4198
Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage", ProjectCollection.DisplayVersion,
NativeMethods
.FrameworkName));