78 references to Location
Microsoft.Build (78)
Construction\ProjectChooseElement.cs (1)
114
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)
72
ValidateValidMetadataAsAttributeName(Name, Parent?.ElementName ?? "null", Parent?.
Location
);
136
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)
1700
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.
Location
, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
1832
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.
Location
.File);
2831
property.UpdateEvaluatedValue(ExpandPropertyValueBestEffortLeaveEscaped(unevaluatedValue, property.Xml.
Location
));
3279
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.
Location
, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
3466
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)
989
elementXml.
Location
,
Evaluation\Evaluator.cs (43)
485
output.
Location
,
498
output.
Location
,
521
ProjectPropertyGroupTaskPropertyInstance property = new ProjectPropertyGroupTaskPropertyInstance(propertyElement.Name, propertyElement.Value, propertyElement.Condition, propertyElement.
Location
, propertyElement.ConditionLocation);
525
ProjectPropertyGroupTaskInstance propertyGroup = new ProjectPropertyGroupTaskInstance(propertyGroupElement.Condition, propertyGroupElement.
Location
, propertyGroupElement.ConditionLocation, properties);
536
ProjectOnErrorInstance onError = new ProjectOnErrorInstance(projectOnErrorElement.ExecuteTargetsAttribute, projectOnErrorElement.Condition, projectOnErrorElement.
Location
, projectOnErrorElement.ExecuteTargetsLocation, projectOnErrorElement.ConditionLocation);
559
metadataElement.
Location
,
574
itemElement.
Location
,
587
ProjectItemGroupTaskInstance itemGroup = new ProjectItemGroupTaskInstance(itemGroupElement.Condition, itemGroupElement.
Location
, itemGroupElement.ConditionLocation, items);
642
targetElement.
Location
,
961
XmlUtilities.VerifyThrowProjectValidElementName(propertyName, currentProjectOrImport.
Location
);
1128
_evaluationLoggingContext.LogComment(MessageImportance.Low, "OverridingTarget", otherTarget.Name, otherTarget.Location.File, targetName, targetElement.
Location
.File);
1397
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(propertyElement.Value, ExpanderOptions.ExpandProperties, propertyElement.
Location
);
1455
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.Value, ExpanderOptions.ExpandPropertiesAndCustomMetadata, itemDefinitionElement.
Location
);
1792
importElement.
Location
.Line,
1793
importElement.
Location
.Column,
1797
importElement.
Location
.Line,
1798
importElement.
Location
.Column,
1893
importElement.
Location
,
1911
importElement.
Location
.Line,
1912
importElement.
Location
.Column,
2104
ElementLocation importLocationInProject = importElement.
Location
;
2112
importElement.
Location
.Line,
2113
importElement.
Location
.Column,
2117
importElement.
Location
.Line,
2118
importElement.
Location
.Column)
2173
importElement.
Location
.Line,
2174
importElement.
Location
.Column,
2178
importElement.
Location
.Line,
2179
importElement.
Location
.Column)
2258
_evaluationLoggingContext.LogWarning(null, new BuildEventFileInfo(importLocationInProject), "DuplicateImport", importFileUnescaped, previouslyImportedAt.
Location
.LocationString, parenthesizedProjectLocation);
2314
importElement.
Location
.Line,
2315
importElement.
Location
.Column,
2319
importElement.
Location
.Line,
2320
importElement.
Location
.Column)
2345
importElement.
Location
.Line,
2346
importElement.
Location
.Column,
2350
importElement.
Location
.Line,
2351
importElement.
Location
.Column)
2400
importElement.
Location
.Line,
2401
importElement.
Location
.Column,
2405
importElement.
Location
.Line,
2406
importElement.
Location
.Column)
2629
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)
620
ProjectErrorUtilities.ThrowInvalidProject(onError.
Location
, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
629
ProjectErrorUtilities.ThrowInvalidProject(onError.
Location
, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
652
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 (3)
411
ProjectErrorUtilities.ThrowInvalidProject(projectUsingTaskXml.
Location
, "InvalidAttributeValueWithException", assemblyFile, XMakeAttributes.assemblyFile, XMakeElements.usingTask, ex.Message);
1727
_inlineTaskXmlBody = expander.ExpandIntoStringLeaveEscaped(taskElement.TaskBody, expanderOptions, taskElement.
Location
);
1830
parameter.
Location
,
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
84
/// Access to remote <see cref="ProjectElement.
Location
"/>.