92 references to Location
Microsoft.Build (77)
Construction\ProjectChooseElement.cs (1)
119
ProjectErrorUtilities.VerifyThrowInvalidProject(nestingDepth <= ProjectParser.MaximumChooseNesting, immediateParent.
Location
, "ChooseOverflow", ProjectParser.MaximumChooseNesting);
Construction\ProjectItemDefinitionElement.cs (1)
80
ProjectMetadataElement.ValidateValidMetadataAsAttributeName(name, ElementName,
Location
);
Construction\ProjectItemElement.cs (1)
397
ProjectMetadataElement.ValidateValidMetadataAsAttributeName(name, ElementName,
Location
);
Construction\ProjectMetadataElement.cs (2)
70
ValidateValidMetadataAsAttributeName(Name, Parent?.ElementName ?? "null", Parent?.
Location
);
134
ValidateValidMetadataAsAttributeName(newName, Parent.ElementName, Parent.
Location
);
Construction\ProjectUsingTaskBodyElement.cs (1)
121
public ElementLocation EvaluateLocation => GetAttributeLocation(XMakeAttributes.evaluate) ??
Location
;
Construction\ProjectUsingTaskParameterElement.cs (3)
152
public ElementLocation ParameterTypeLocation => GetAttributeLocation(XMakeAttributes.parameterType) ??
Location
;
159
public ElementLocation OutputLocation => GetAttributeLocation(XMakeAttributes.output) ??
Location
;
166
public ElementLocation RequiredLocation => GetAttributeLocation(XMakeAttributes.required) ??
Location
;
Definition\Project.cs (5)
1677
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.
Location
, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
1809
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.
Location
.File);
2951
property.UpdateEvaluatedValue(ExpandPropertyValueBestEffortLeaveEscaped(unevaluatedValue, property.Xml.
Location
));
3398
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.
Location
, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
3585
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.
Location
.File);
Definition\ProjectItem.cs (1)
606
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)
1084
elementXml.
Location
,
Evaluation\Evaluator.cs (43)
436
output.
Location
,
449
output.
Location
,
472
ProjectPropertyGroupTaskPropertyInstance property = new ProjectPropertyGroupTaskPropertyInstance(propertyElement.Name, propertyElement.Value, propertyElement.Condition, propertyElement.
Location
, propertyElement.ConditionLocation);
476
ProjectPropertyGroupTaskInstance propertyGroup = new ProjectPropertyGroupTaskInstance(propertyGroupElement.Condition, propertyGroupElement.
Location
, propertyGroupElement.ConditionLocation, properties);
487
ProjectOnErrorInstance onError = new ProjectOnErrorInstance(projectOnErrorElement.ExecuteTargetsAttribute, projectOnErrorElement.Condition, projectOnErrorElement.
Location
, projectOnErrorElement.ExecuteTargetsLocation, projectOnErrorElement.ConditionLocation);
510
metadataElement.
Location
,
525
itemElement.
Location
,
538
ProjectItemGroupTaskInstance itemGroup = new ProjectItemGroupTaskInstance(itemGroupElement.Condition, itemGroupElement.
Location
, itemGroupElement.ConditionLocation, items);
593
targetElement.
Location
,
872
XmlUtilities.VerifyThrowProjectValidElementName(propertyName, currentProjectOrImport.
Location
);
1039
_evaluationLoggingContext.LogComment(MessageImportance.Low, "OverridingTarget", otherTarget.Name, otherTarget.Location.File, targetName, targetElement.
Location
.File);
1302
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(propertyElement.Value, ExpanderOptions.ExpandProperties, propertyElement.
Location
);
1360
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.Value, ExpanderOptions.ExpandPropertiesAndCustomMetadata, itemDefinitionElement.
Location
);
1694
importElement.
Location
.Line,
1695
importElement.
Location
.Column,
1699
importElement.
Location
.Line,
1700
importElement.
Location
.Column,
1791
sdkResult = _sdkResolverService.ResolveSdk(_submissionId, sdkReference, _evaluationLoggingContext, importElement.
Location
, solutionPath, projectPath, _interactive, _isRunningInVisualStudio,
1806
importElement.
Location
.Line,
1807
importElement.
Location
.Column,
1974
ElementLocation importLocationInProject = importElement.
Location
;
1982
importElement.
Location
.Line,
1983
importElement.
Location
.Column,
1987
importElement.
Location
.Line,
1988
importElement.
Location
.Column)
2043
importElement.
Location
.Line,
2044
importElement.
Location
.Column,
2048
importElement.
Location
.Line,
2049
importElement.
Location
.Column)
2128
_evaluationLoggingContext.LogWarning(null, new BuildEventFileInfo(importLocationInProject), "DuplicateImport", importFileUnescaped, previouslyImportedAt.
Location
.LocationString, parenthesizedProjectLocation);
2184
importElement.
Location
.Line,
2185
importElement.
Location
.Column,
2189
importElement.
Location
.Line,
2190
importElement.
Location
.Column)
2215
importElement.
Location
.Line,
2216
importElement.
Location
.Column,
2220
importElement.
Location
.Line,
2221
importElement.
Location
.Column)
2270
importElement.
Location
.Line,
2271
importElement.
Location
.Column,
2275
importElement.
Location
.Line,
2276
importElement.
Location
.Column)
2494
ProjectErrorUtilities.ThrowInvalidProject(importElement.
Location
, "InvalidAttributeValueWithException", importExpandedWithDefaultPath, XMakeAttributes.project, XMakeElements.import, ex.Message);
Evaluation\LazyItemEvaluator.cs (1)
642
metadatumElement.
Location
);
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
213
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.Value, metadataExpansionOptions, metadataElement.
Location
);
251
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)
598
ProjectErrorUtilities.ThrowInvalidProject(onError.
Location
, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
607
ProjectErrorUtilities.ThrowInvalidProject(onError.
Location
, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
630
ProjectErrorUtilities.ThrowInvalidProject(onError.
Location
, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
120
propertyElement.
Location
,
Instance\ProjectInstance.cs (1)
3107
ElementLocation toolsVersionLocation = xml.
Location
;
Instance\ProjectTaskInstance.cs (1)
110
_location = element.
Location
;
Instance\TaskRegistry.cs (3)
420
ProjectErrorUtilities.ThrowInvalidProject(projectUsingTaskXml.
Location
, "InvalidAttributeValueWithException", assemblyFile, XMakeAttributes.assemblyFile, XMakeElements.usingTask, ex.Message);
1661
_inlineTaskXmlBody = expander.ExpandIntoStringLeaveEscaped(taskElement.TaskBody, expanderOptions, taskElement.
Location
);
1740
parameter.
Location
,
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
84
/// Access to remote <see cref="ProjectElement.
Location
"/>.
Microsoft.Build.Engine.OM.UnitTests (14)
Construction\ElementLocationPublic_Tests.cs (6)
35
Assert.Equal(project.FullPath, target.
Location
.File);
52
Assert.Equal(project.FullPath, target.
Location
.File);
57
Assert.Equal(project.FullPath, target.
Location
.File);
73
ElementLocation e1 = target.
Location
;
76
Assert.True(Object.ReferenceEquals(e1, target.
Location
));
119
string locations = project.Xml.
Location
.LocationString + "\r\n";
Construction\ProjectItemElement_Tests.cs (4)
103
Assert.Equal(4, metadatum1.
Location
.Line);
104
Assert.Equal(4, metadatum2.
Location
.Line);
105
Assert.Equal(27, metadatum1.
Location
.Column);
106
Assert.Equal(43, metadatum2.
Location
.Column);
Construction\ProjectRootElement_Tests.cs (1)
1769
projectFileAssert.Invoke(initialLocation, reloadLocation, rootElement.AllChildren.Last().
Location
.File);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
402
VerifySameLocation(realXml.
Location
, viewXml.
Location
, context);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementLink.cs (1)
37
public ElementLocation Location => Source.
Location
;
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskRegistry_Tests.cs (1)
1794
string expandedBody = RegistryExpander.ExpandIntoStringAndUnescape(body, ExpanderOptions.ExpandPropertiesAndItems, bodyElement.
Location
);