74 references to Empty
Microsoft.Build (74)
BackEnd\BuildManager\BuildManager.cs (7)
1244entries = _multiThreadedStrictModeScope.VerifyUnresolvedPathWrites(ElementLocation.Empty, out recovered); 1266BuildEventContext.Invalid, DiagnosticSubcategory.None, warningCode, helpKeyword, ElementLocation.Empty, message); 3052ElementLocation.Empty, // no project file 3067ElementLocation.Empty, // no project file 3219ElementLocation.Empty, 3677location: ElementLocation.Empty, 3865ElementLocation.Empty,
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
46loggingService.LogWarning(BuildEventContext.Invalid, DiagnosticSubcategory.None, ElementLocation.Empty, "DotnetHostPathIsDirectory", dotnetHostPath);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
1581ElementLocation.Empty,
BackEnd\Components\Logging\LoggingContext.cs (1)
256_loggingService.LogWarning(_eventContext, DiagnosticSubcategory.None, ElementLocation.Empty, messageResourceName, messageArgs);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
208IElementLocation elementLocation = ElementLocation.Empty; 956IElementLocation elementLocation = ElementLocation.Empty;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
665ElementLocation.Empty,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
310ElementLocation.Empty, 838ElementLocation.Empty, 852(((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext).LogError(ElementLocation.Empty, "UnhandledMSBuildError", ex.ToString());
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
280ElementLocation.Empty, 302ElementLocation.Empty,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
602string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildArchitectureLocation ?? ElementLocation.Empty); 603string msbuildRuntime = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildRuntimeLocation ?? ElementLocation.Empty);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1166_taskLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ExpectedEventToBeSerializable", e.GetType().Name);
BackEnd\Node\OutOfProcNode.cs (1)
633ElementLocation.Empty,
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
83ElementLocation.Empty,
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
78ElementLocation.Empty,
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
74ElementLocation.Empty, 102ElementLocation.Empty,
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
80ElementLocation.Empty,
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
58ElementLocation.Empty,
BuildCheck\Checks\TargetFrameworkUnexpectedCheck.cs (1)
97ElementLocation.Empty,
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
52ElementLocation.Empty,
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
257ElementLocation.Empty,
Construction\ProjectRootElement.cs (1)
656public ElementLocation ProjectFileLocation => Link != null ? RootLink.ProjectFileLocation : _projectFileLocation ?? ElementLocation.Empty;
Definition\Toolset.cs (5)
599ElementLocation.Empty, 610ElementLocation.Empty, 867ElementLocation.Empty, 910loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "OverrideTasksFileFailure", rootedPathMessage); 917loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "OverrideTasksFileFailure", rootedPathMessage);
ElementLocation\ElementLocation.cs (8)
40/// This compatibility property returns <see cref="Empty"/>. Use <see cref="Empty"/> in new code. 43public static ElementLocation EmptyLocation => Empty; 170/// A file-only location, or <see cref="Empty"/> when <paramref name="file"/> is <see langword="null"/> or 178? Empty 198? Empty 214/// A location containing the supplied information. Returns <see cref="Empty"/> when 230? Empty
Evaluation\Evaluator.cs (2)
1274_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ChangeWave_InvalidFormat", Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{string.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]"); 1277_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ChangeWave_OutOfRotation", ChangeWaves.DisabledWave, Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{string.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]");
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
29ElementLocation.Empty,
Instance\ProjectInstance.cs (11)
2055new PropertyReadInfo(name, ElementLocation.Empty, false, PropertyReadContext.Other)); 2076_loggingContext?.ProcessPropertyWrite(new PropertyWriteInfo(name, false, ElementLocation.Empty)); 2996String.IsNullOrEmpty(condition) ? null : ElementLocation.Empty, 2997String.IsNullOrEmpty(inputs) ? null : ElementLocation.Empty, 2998String.IsNullOrEmpty(outputs) ? null : ElementLocation.Empty, 2999String.IsNullOrEmpty(returns) ? null : ElementLocation.Empty, 3000String.IsNullOrEmpty(keepDuplicateOutputs) ? null : ElementLocation.Empty, 3001String.IsNullOrEmpty(dependsOnTargets) ? null : ElementLocation.Empty, 3002String.IsNullOrEmpty(beforeTargets) ? null : ElementLocation.Empty, 3003String.IsNullOrEmpty(afterTargets) ? null : ElementLocation.Empty, 3263_projectFileLocation = xml.ProjectFileLocation ?? ElementLocation.Empty;
Instance\ProjectItemInstance.cs (1)
1442return expander.ExpandIntoStringLeaveEscaped(escapedValue, ExpanderOptions.ExpandBuiltInMetadata, ElementLocation.Empty);
Instance\ProjectTaskInstance.cs (13)
142condition == string.Empty ? null : ElementLocation.Empty, 143continueOnError == string.Empty ? null : ElementLocation.Empty, 144msbuildRuntime == string.Empty ? null : ElementLocation.Empty, 145msbuildArchitecture == string.Empty ? null : ElementLocation.Empty) 328_parameters[parameterName] = (unevaluatedValue, ElementLocation.Empty); 341_outputs.Add(new ProjectTaskOutputItemInstance(itemName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.Empty, ElementLocation.Empty, ElementLocation.Empty, condition == null ? null : ElementLocation.Empty)); 354_outputs.Add(new ProjectTaskOutputPropertyInstance(propertyName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.Empty, ElementLocation.Empty, ElementLocation.Empty, condition == null ? null : ElementLocation.Empty));
Instance\TaskFactoryEngineContext.cs (1)
392_loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ExpectedEventToBeSerializable", e.GetType().Name);