1 write to EscapeHatches
Microsoft.Build.Framework (1)
Traits.cs (1)
31EscapeHatches = new EscapeHatches();
50 references to EscapeHatches
Microsoft.Build (33)
BackEnd\Components\Communications\NodeLauncher.cs (3)
68if (Traits.Instance.EscapeHatches.EnsureStdOutForChildNodesIsPrimaryStdout) 75if (!Traits.Instance.EscapeHatches.EnsureStdOutForChildNodesIsPrimaryStdout) 106if (!Traits.Instance.EscapeHatches.EnsureStdOutForChildNodesIsPrimaryStdout)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
116Traits.Instance.EscapeHatches.EnsureStdOutForChildNodesIsPrimaryStdout;
BackEnd\Components\Logging\LoggingService.cs (2)
569bool? escapeHatch = Traits.Instance.EscapeHatches.LogPropertiesAndItemsAfterEvaluation; 987&& Traits.Instance.EscapeHatches.EnableWarningOnCustomBuildEvent)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
124bool truncateTaskInputs = Traits.Instance.EscapeHatches.TruncateTaskInputs;
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
46if (Traits.Instance.EscapeHatches.DisableSdkResolutionCache)
BackEnd\Node\OutOfProcNode.cs (1)
589&& Traits.Instance.EscapeHatches.EnableWarningOnCustomBuildEvent)
BackEnd\Shared\BuildResult.cs (1)
86private int _version = Traits.Instance.EscapeHatches.DoNotVersionBuildResult ? 0 : 1;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
173LogTaskInputs = Traits.Instance.EscapeHatches.LogTaskInputs;
BuildCheck\Infrastructure\CheckWrapper.cs (1)
38private readonly bool _limitReportsNumber = !Traits.Instance.EscapeHatches.DoNotLimitBuildCheckResultsNumber;
CoreCLRAssemblyLoader.cs (1)
58if (Traits.Instance.EscapeHatches.UseSingleLoadContext)
Definition\Project.cs (1)
3796var canEvaluateElementsWithFalseConditions = Traits.Instance.EscapeHatches.EvaluateElementsWithFalseConditionInProjectEvaluation ?? !loadSettings.HasFlag(ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition);
Evaluation\Evaluator.cs (5)
627_logProjectImportedEvents = Traits.Instance.EscapeHatches.LogProjectImports; 790if (Traits.Instance.EscapeHatches.DebugEvaluation) 868if (!Traits.Instance.EscapeHatches.IgnoreTreatAsLocalProperty) 1743Traits.Instance.EscapeHatches.SdkReferencePropertyExpansion ?? 2249if (((_loadSettings & ProjectLoadSettings.IgnoreEmptyImports) != 0 || Traits.Instance.EscapeHatches.IgnoreEmptyImports) && ProjectRootElement.IsEmptyXmlFile(importFileUnescaped))
Evaluation\Expander.cs (1)
697return (options & ExpanderOptions.Truncate) != 0 && !Traits.Instance.EscapeHatches.DoNotTruncateConditions;
Evaluation\LazyItemEvaluator.cs (2)
42private Dictionary<string, LazyItemList> _itemLists = Traits.Instance.EscapeHatches.UseCaseSensitiveItemNames ? 468public ImmutableDictionary<string, LazyItemList>.Builder ReferencedItemLists { get; } = Traits.Instance.EscapeHatches.UseCaseSensitiveItemNames ?
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
96bool skipGlob = !_conditionResult && globFragment.IsFullFileSystemScan && !Traits.Instance.EscapeHatches.AlwaysEvaluateDangerousGlobs;
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
116&& !Traits.Instance.EscapeHatches.DoNotExpandQualifiedMetadataInUpdateOperation)
Evaluation\ProjectRootElementCache.cs (1)
179if (!Traits.Instance.EscapeHatches.AlwaysDoImmutableFilesUpToDateCheck && FileClassifier.Shared.IsNonModifiable(projectFile))
Evaluation\PropertiesUseTracker.cs (1)
33private bool _warnForUninitializedProperties = BuildParameters.WarnOnUninitializedProperty || Traits.Instance.EscapeHatches.WarnOnUninitializedProperty;
Instance\ProjectInstance.cs (2)
2383var forcedProjectInstanceTranslationMode = Traits.Instance.EscapeHatches.ProjectInstanceTranslation; 3162if (Traits.Instance.EscapeHatches.DebugEvaluation)
Logging\BaseConsoleLogger.cs (1)
953bool logPropertiesAndItemsAfterEvaluation = Traits.Instance.EscapeHatches.LogPropertiesAndItemsAfterEvaluation ?? true;
Logging\BinaryLogger\BinaryLogger.cs (4)
165_initialLogImports = Traits.Instance.EscapeHatches.LogProjectImports; 172Traits.Instance.EscapeHatches.LogProjectImports = true; 173bool logPropertiesAndItemsAfterEvaluation = Traits.Instance.EscapeHatches.LogPropertiesAndItemsAfterEvaluation ?? true; 319Traits.Instance.EscapeHatches.LogProjectImports = _initialLogImports;
Microsoft.Build.Framework (4)
NativeMethods.cs (4)
593bool isMaxPathRestricted = Traits.Instance.EscapeHatches.DisableLongPaths || IsMaxPathLegacyWindows(); 1157if (Traits.Instance.EscapeHatches.AlwaysDoImmutableFilesUpToDateCheck) 1189if (Traits.Instance.EscapeHatches.AlwaysUseContentTimestamp) 1203if ((data.fileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) == FILE_ATTRIBUTE_REPARSE_POINT && !Traits.Instance.EscapeHatches.UseSymlinkTimeInsteadOfTargetTime)
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\ReferenceTable.cs (1)
3026if (!Traits.Instance.EscapeHatches.TargetPathForRelatedFiles)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2372Traits.Instance.EscapeHatches.CacheAssemblyInformation
Copy.cs (1)
290if (!Traits.Instance.EscapeHatches.CopyWithoutDelete &&
Exec.cs (1)
591if (!Traits.Instance.EscapeHatches.UseAutoRunWhenLaunchingProcessUnderCmd)
GenerateResource.cs (1)
3023if (Traits.Instance.EscapeHatches.UseMinimalResxParsingInCoreScenarios)
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (2)
1432if (Traits.Instance.EscapeHatches.AvoidUnicodeWhenWritingToolTaskBatch) 1470commandLineCommands = $"{(Traits.Instance.EscapeHatches.UseAutoRunWhenLaunchingProcessUnderCmd ? string.Empty : "/D ")}/C \"{batchFileForCommandLine}\"";
MSBuild (6)
CommandLineSwitches.cs (1)
716if (!unquoteParameter || !Traits.Instance.EscapeHatches.UnquoteTargetSwitchParameters)
CoreCLRAssemblyLoader.cs (1)
58if (Traits.Instance.EscapeHatches.UseSingleLoadContext)
OutOfProcTaskHostNode.cs (1)
801_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete;
XMake.cs (3)
262!Traits.Instance.EscapeHatches.EnsureStdOutForChildNodesIsPrimaryStdout && 1530if (!Traits.Instance.EscapeHatches.DoNotSendDeferredMessagesToBuildManager) 2854if (Traits.Instance.EscapeHatches.EnsureStdOutForChildNodesIsPrimaryStdout)