78 references to Location
Microsoft.Build (78)
Construction\ProjectChooseElement.cs (1)
114ProjectErrorUtilities.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)
72ValidateValidMetadataAsAttributeName(Name, Parent?.ElementName ?? "null", Parent?.Location); 136ValidateValidMetadataAsAttributeName(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)
1683ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}"); 1815ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.File); 2960property.UpdateEvaluatedValue(ExpandPropertyValueBestEffortLeaveEscaped(unevaluatedValue, property.Xml.Location)); 3407ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}"); 3594ErrorUtilities.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)
989elementXml.Location,
Evaluation\Evaluator.cs (43)
449output.Location, 462output.Location, 485ProjectPropertyGroupTaskPropertyInstance property = new ProjectPropertyGroupTaskPropertyInstance(propertyElement.Name, propertyElement.Value, propertyElement.Condition, propertyElement.Location, propertyElement.ConditionLocation); 489ProjectPropertyGroupTaskInstance propertyGroup = new ProjectPropertyGroupTaskInstance(propertyGroupElement.Condition, propertyGroupElement.Location, propertyGroupElement.ConditionLocation, properties); 500ProjectOnErrorInstance onError = new ProjectOnErrorInstance(projectOnErrorElement.ExecuteTargetsAttribute, projectOnErrorElement.Condition, projectOnErrorElement.Location, projectOnErrorElement.ExecuteTargetsLocation, projectOnErrorElement.ConditionLocation); 523metadataElement.Location, 538itemElement.Location, 551ProjectItemGroupTaskInstance itemGroup = new ProjectItemGroupTaskInstance(itemGroupElement.Condition, itemGroupElement.Location, itemGroupElement.ConditionLocation, items); 606targetElement.Location, 885XmlUtilities.VerifyThrowProjectValidElementName(propertyName, currentProjectOrImport.Location); 1052_evaluationLoggingContext.LogComment(MessageImportance.Low, "OverridingTarget", otherTarget.Name, otherTarget.Location.File, targetName, targetElement.Location.File); 1321string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(propertyElement.Value, ExpanderOptions.ExpandProperties, propertyElement.Location); 1379string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.Value, ExpanderOptions.ExpandPropertiesAndCustomMetadata, itemDefinitionElement.Location); 1713importElement.Location.Line, 1714importElement.Location.Column, 1718importElement.Location.Line, 1719importElement.Location.Column, 1814importElement.Location, 1832importElement.Location.Line, 1833importElement.Location.Column, 2025ElementLocation importLocationInProject = importElement.Location; 2033importElement.Location.Line, 2034importElement.Location.Column, 2038importElement.Location.Line, 2039importElement.Location.Column) 2094importElement.Location.Line, 2095importElement.Location.Column, 2099importElement.Location.Line, 2100importElement.Location.Column) 2179_evaluationLoggingContext.LogWarning(null, new BuildEventFileInfo(importLocationInProject), "DuplicateImport", importFileUnescaped, previouslyImportedAt.Location.LocationString, parenthesizedProjectLocation); 2235importElement.Location.Line, 2236importElement.Location.Column, 2240importElement.Location.Line, 2241importElement.Location.Column) 2266importElement.Location.Line, 2267importElement.Location.Column, 2271importElement.Location.Line, 2272importElement.Location.Column) 2321importElement.Location.Line, 2322importElement.Location.Column, 2326importElement.Location.Line, 2327importElement.Location.Column) 2545ProjectErrorUtilities.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)
598ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name); 607ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name); 630ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
127propertyElement.Location,
Instance\ProjectInstance.cs (2)
1936_sdkResolvedEnvironmentVariableProperties.Set(ProjectPropertyInstance.Create(environmentVariable.Key, environmentVariable.Value, importElement.Location, isImmutable: true)); 3212ElementLocation toolsVersionLocation = xml.Location;
Instance\ProjectTaskInstance.cs (1)
109_location = element.Location;
Instance\TaskRegistry.cs (3)
410ProjectErrorUtilities.ThrowInvalidProject(projectUsingTaskXml.Location, "InvalidAttributeValueWithException", assemblyFile, XMakeAttributes.assemblyFile, XMakeElements.usingTask, ex.Message); 1721_inlineTaskXmlBody = expander.ExpandIntoStringLeaveEscaped(taskElement.TaskBody, expanderOptions, taskElement.Location); 1800parameter.Location,
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
84/// Access to remote <see cref="ProjectElement.Location"/>.