78 references to Location
Microsoft.Build (78)
Construction\ProjectChooseElement.cs (1)
115
ProjectErrorUtilities.VerifyThrowInvalidProject(nestingDepth <= ProjectParser.MaximumChooseNesting, immediateParent.
Location
, "ChooseOverflow", ProjectParser.MaximumChooseNesting);
Construction\ProjectItemDefinitionElement.cs (1)
81
ProjectMetadataElement.ValidateValidMetadataAsAttributeName(name, ElementName,
Location
);
Construction\ProjectItemElement.cs (1)
402
ProjectMetadataElement.ValidateValidMetadataAsAttributeName(name, ElementName,
Location
);
Construction\ProjectMetadataElement.cs (2)
73
ValidateValidMetadataAsAttributeName(Name, Parent?.ElementName ?? "null", Parent?.
Location
);
137
ValidateValidMetadataAsAttributeName(newName, Parent.ElementName, Parent.
Location
);
Construction\ProjectUsingTaskBodyElement.cs (1)
116
public ElementLocation EvaluateLocation => GetAttributeLocation(XMakeAttributes.evaluate) ??
Location
;
Construction\ProjectUsingTaskParameterElement.cs (3)
146
public ElementLocation ParameterTypeLocation => GetAttributeLocation(XMakeAttributes.parameterType) ??
Location
;
153
public ElementLocation OutputLocation => GetAttributeLocation(XMakeAttributes.output) ??
Location
;
160
public ElementLocation RequiredLocation => GetAttributeLocation(XMakeAttributes.required) ??
Location
;
Definition\Project.cs (5)
1701
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.
Location
, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
1833
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.
Location
.File);
2832
property.UpdateEvaluatedValue(ExpandPropertyValueBestEffortLeaveEscaped(unevaluatedValue, property.Xml.
Location
));
3283
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.
Location
, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
3470
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.
Location
.File);
Definition\ProjectItem.cs (1)
601
string evaluatedValueEscaped = _project.ExpandMetadataValueBestEffortLeaveEscaped(this, unevaluatedValue, metadatumXml.
Location
);
Definition\ProjectItemDefinition.cs (1)
179
string evaluatedValueEscaped = _project.ExpandMetadataValueBestEffortLeaveEscaped(this, unevaluatedValue, metadatumXml.
Location
);
Definition\ProjectMetadata.cs (1)
225
get { return _xml.
Location
; }
Definition\ProjectProperty.cs (1)
409
_evaluatedValueEscaped = _project.ExpandPropertyValueBestEffortLeaveEscaped(value, _xml.
Location
);
Definition\Toolset.cs (1)
992
elementXml.
Location
,
Evaluation\Evaluator.cs (43)
529
output.
Location
,
542
output.
Location
,
565
ProjectPropertyGroupTaskPropertyInstance property = new ProjectPropertyGroupTaskPropertyInstance(propertyElement.Name, propertyElement.Value, propertyElement.Condition, propertyElement.
Location
, propertyElement.ConditionLocation);
569
ProjectPropertyGroupTaskInstance propertyGroup = new ProjectPropertyGroupTaskInstance(propertyGroupElement.Condition, propertyGroupElement.
Location
, propertyGroupElement.ConditionLocation, properties);
580
ProjectOnErrorInstance onError = new ProjectOnErrorInstance(projectOnErrorElement.ExecuteTargetsAttribute, projectOnErrorElement.Condition, projectOnErrorElement.
Location
, projectOnErrorElement.ExecuteTargetsLocation, projectOnErrorElement.ConditionLocation);
603
metadataElement.
Location
,
618
itemElement.
Location
,
631
ProjectItemGroupTaskInstance itemGroup = new ProjectItemGroupTaskInstance(itemGroupElement.Condition, itemGroupElement.
Location
, itemGroupElement.ConditionLocation, items);
686
targetElement.
Location
,
1033
XmlUtilities.VerifyThrowProjectValidElementName(propertyName, currentProjectOrImport.
Location
);
1200
_evaluationLoggingContext.LogComment(MessageImportance.Low, "OverridingTarget", otherTarget.Name, otherTarget.Location.File, targetName, targetElement.
Location
.File);
1469
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(propertyElement.Value, ExpanderOptions.ExpandProperties, propertyElement.
Location
);
1527
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.Value, ExpanderOptions.ExpandPropertiesAndCustomMetadata, itemDefinitionElement.
Location
);
1864
importElement.
Location
.Line,
1865
importElement.
Location
.Column,
1869
importElement.
Location
.Line,
1870
importElement.
Location
.Column,
1963
importElement.
Location
,
1981
importElement.
Location
.Line,
1982
importElement.
Location
.Column,
2174
ElementLocation importLocationInProject = importElement.
Location
;
2182
importElement.
Location
.Line,
2183
importElement.
Location
.Column,
2187
importElement.
Location
.Line,
2188
importElement.
Location
.Column)
2243
importElement.
Location
.Line,
2244
importElement.
Location
.Column,
2248
importElement.
Location
.Line,
2249
importElement.
Location
.Column)
2328
_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, importLocationInProject, "DuplicateImport", importFileUnescaped, previouslyImportedAt.
Location
.LocationString, parenthesizedProjectLocation);
2384
importElement.
Location
.Line,
2385
importElement.
Location
.Column,
2389
importElement.
Location
.Line,
2390
importElement.
Location
.Column)
2415
importElement.
Location
.Line,
2416
importElement.
Location
.Column,
2420
importElement.
Location
.Line,
2421
importElement.
Location
.Column)
2470
importElement.
Location
.Line,
2471
importElement.
Location
.Column,
2475
importElement.
Location
.Line,
2476
importElement.
Location
.Column)
2699
ProjectErrorUtilities.ThrowInvalidProject(importElement.
Location
, "InvalidAttributeValueWithException", importExpandedWithDefaultPath, XMakeAttributes.project, XMakeElements.import, ex.Message);
Evaluation\LazyItemEvaluator.cs (1)
645
metadatumElement.
Location
);
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
212
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.Value, metadataExpansionOptions, metadataElement.
Location
);
250
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.Value, metadataExpansionOptions, metadataElement.
Location
);
Evaluation\Profiler\EvaluationProfiler.cs (2)
72
return _shouldTrackElements ? new EvaluationFrame(this, CurrentLocation.WithFileLineAndElement(element.
Location
.File, element.
Location
.Line, element)) : null;
Evaluation\ProjectParser.cs (3)
621
ProjectErrorUtilities.ThrowInvalidProject(onError.
Location
, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
630
ProjectErrorUtilities.ThrowInvalidProject(onError.
Location
, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
653
ProjectErrorUtilities.ThrowInvalidProject(onError.
Location
, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
127
propertyElement.
Location
,
Instance\ProjectInstance.cs (2)
1987
_sdkResolvedEnvironmentVariableProperties.Set(ProjectPropertyInstance.Create(environmentVariable.Key, environmentVariable.Value, importElement.
Location
, isImmutable: true));
3281
ElementLocation toolsVersionLocation = xml.
Location
;
Instance\ProjectTaskInstance.cs (1)
109
_location = element.
Location
;
Instance\TaskRegistry.cs (2)
1528
_inlineTaskXmlBody = expander.ExpandIntoStringLeaveEscaped(taskElement.TaskBody, expanderOptions, taskElement.
Location
);
1631
parameter.
Location
,
Instance\TaskRegistry.UsingTaskInfo.cs (1)
426
projectUsingTaskXml.
Location
,
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
84
/// Access to remote <see cref="ProjectElement.
Location
"/>.