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