2 types derived from ElementLocation
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (2)
230private class RegularElementLocation : ElementLocation 307private class SmallElementLocation : ElementLocation
469 references to ElementLocation
Microsoft.Build (469)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (6)
15using ElementLocation = Microsoft.Build.Construction.ElementLocation; 88ElementLocation elementLocation, 109ElementLocation elementLocation, 208ElementLocation elementLocation) 301ElementLocation elementLocation, 397ElementLocation elementLocation)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (3)
16using ElementLocation = Microsoft.Build.Construction.ElementLocation; 558private HashSet<string> EvaluateExcludePaths(IReadOnlyList<string> excludes, ElementLocation excludeLocation) 589ElementLocation specificationLocation,
BackEnd\Components\RequestBuilder\ITargetBuilderCallback.cs (3)
6using ElementLocation = Microsoft.Build.Construction.ElementLocation; 22/// <param name="referenceLocation">The <see cref="ElementLocation"/> of the reference.</param> 35Task<ITargetResult[]> LegacyCallTarget(string[] targets, bool continueOnError, ElementLocation referenceLocation);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (4)
16using ElementLocation = Microsoft.Build.Construction.ElementLocation; 242/// <param name="taskLocation">The <see cref="ElementLocation"/> of the task.</param> 250async Task<ITargetResult[]> ITargetBuilderCallback.LegacyCallTarget(string[] targets, bool continueOnError, ElementLocation taskLocation) 685ElementLocation targetLocation = targetSpecification.ReferenceLocation;
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
18using ElementLocation = Microsoft.Build.Construction.ElementLocation; 204internal ElementLocation ReferenceLocation 593ElementLocation targetReturnsLocation = _target.ReturnsLocation;
BackEnd\Components\RequestBuilder\TargetSpecification.cs (5)
7using ElementLocation = Microsoft.Build.Construction.ElementLocation; 20private ElementLocation _referenceLocation; 30internal TargetSpecification(string targetName, ElementLocation referenceLocation, TargetBuiltReason targetBuiltReason = TargetBuiltReason.None) 54public ElementLocation ReferenceLocation => _referenceLocation; 59translator.Translate(ref _referenceLocation, ElementLocation.FactoryForDeserialization);
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
16using ElementLocation = Microsoft.Build.Construction.ElementLocation; 797ElementLocation elementLocation)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
26using ElementLocation = Microsoft.Build.Construction.ElementLocation; 264foreach (KeyValuePair<string, (string, ElementLocation)> taskParameter in _taskNode.ParametersForBuild) 557string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildArchitectureLocation ?? ElementLocation.EmptyLocation); 558string msbuildRuntime = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildRuntimeLocation ?? ElementLocation.EmptyLocation);
BackEnd\Components\RequestBuilder\TaskHost.cs (4)
21using ElementLocation = Microsoft.Build.Construction.ElementLocation; 62private ElementLocation _taskLocation; 115/// <param name="taskLocation">The <see cref="ElementLocation"/> of the task.</param> 117public TaskHost(IBuildComponentHost host, BuildRequestEntry requestEntry, ElementLocation taskLocation, ITargetBuilderCallback targetBuilderCallback)
BackEnd\Components\SdkResolution\CachingSdkResolverLoader.cs (3)
75internal override IReadOnlyList<SdkResolver> LoadAllResolvers(ElementLocation location) 84internal override IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 93protected internal override IReadOnlyList<SdkResolver> LoadResolversFromManifest(SdkResolverManifest manifest, ElementLocation location)
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
38public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
BackEnd\Components\SdkResolution\HostedSdkResolverServiceBase.cs (1)
56public abstract SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk);
BackEnd\Components\SdkResolution\ISdkResolverService.cs (2)
45/// <param name="sdkReferenceLocation">The <see cref="ElementLocation"/> of the element which referenced the SDK.</param> 52SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
99public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (2)
67public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 123private SdkResult RequestSdkPathFromMainNode(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (7)
45internal virtual IReadOnlyList<SdkResolver> LoadAllResolvers(ElementLocation location) 74internal virtual IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 97internal virtual IReadOnlyList<string> FindPotentialSdkResolvers(string rootFolder, ElementLocation location) 104internal virtual IReadOnlyList<SdkResolverManifest> FindPotentialSdkResolversManifests(string rootFolder, ElementLocation location) 175private bool TryAddAssemblyManifestFromXml(string pathToManifest, string manifestFolder, List<SdkResolverManifest> manifestsList, ElementLocation location) 281protected internal virtual IReadOnlyList<SdkResolver> LoadResolversFromManifest(SdkResolverManifest manifest, ElementLocation location) 296protected virtual void LoadResolvers(string resolverPath, ElementLocation location, List<SdkResolver> resolvers)
BackEnd\Components\SdkResolution\SdkResolverRequest.cs (5)
18private ElementLocation _elementLocation; 33private SdkResolverRequest(int submissionId, string name, string version, string minimumVersion, BuildEventContext buildEventContext, ElementLocation elementLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio) 49public ElementLocation ElementLocation => _elementLocation; 71public static SdkResolverRequest Create(int submissionId, SdkReference sdkReference, BuildEventContext buildEventContext, ElementLocation elementLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio) 84translator.Translate(ref _elementLocation, ElementLocation.FactoryForDeserialization);
BackEnd\Components\SdkResolution\SdkResolverService.cs (7)
114public virtual SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 173private SdkResult ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 274private List<SdkResolver> GetResolvers(IReadOnlyList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation) 303ElementLocation sdkReferenceLocation, 405internal virtual IReadOnlyList<SdkResolverManifest> GetResolverManifests(ElementLocation location) => _sdkResolverLoader.GetResolversManifests(location); 441private static void LogWarnings(LoggingContext loggingContext, ElementLocation location, IEnumerable<string> warnings) 479private void RegisterResolversManifests(ElementLocation location)
BackEnd\Components\SdkResolution\SdkResult.cs (1)
78public Construction.ElementLocation ElementLocation { get; set; }
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (11)
119private ElementLocation _taskLocation; 267ElementLocation taskLocation, 414public bool SetTaskParameters(IDictionary<string, (string, ElementLocation)> parameters) 426foreach (KeyValuePair<string, (string, ElementLocation)> parameter in parameters) 485public bool GatherTaskOutputs(string parameterName, ElementLocation parameterLocation, bool outputTargetIsItem, string outputTargetName) 787private bool SetParameterArray(TaskPropertyInfo parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation) 1104ElementLocation parameterLocation, 1233ElementLocation parameterLocation, 1361ElementLocation parameterLocation, 1471private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter) 1637private void GatherArrayStringAndValueOutputs(bool outputTargetIsItem, string outputTargetName, string[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter)
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
83ElementLocation.EmptyLocation,
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
78ElementLocation.EmptyLocation,
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
74ElementLocation.EmptyLocation, 102ElementLocation.EmptyLocation,
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
80ElementLocation.EmptyLocation,
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
58ElementLocation.EmptyLocation,
BuildCheck\Checks\TargetFrameworkUnexpectedCheck.cs (1)
97ElementLocation.EmptyLocation,
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
52ElementLocation.EmptyLocation,
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
472ElementLocation.Create(evr.File, evr.LineNumber, evr.ColumnNumber));
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
145ElementLocation invocationLocation = ElementLocation.Create(
BuildCheck\OM\ParsedItemsCheckData.cs (2)
146ElementLocation taskInvocationLocation, 161public ElementLocation TaskInvocationLocation { get; }
Construction\ProjectChooseElement.cs (2)
81public override ElementLocation ConditionLocation 82=> InternalError.Throw<ElementLocation>("Should not evaluate this");
Construction\ProjectElement.cs (4)
279public virtual ElementLocation ConditionLocation => GetAttributeLocation(XMakeAttributes.condition); 285public ElementLocation LabelLocation => GetAttributeLocation(XMakeAttributes.label); 294public ElementLocation Location => Link != null ? Link.Location : XmlElement.Location; 534internal ElementLocation GetAttributeLocation(string attributeName)
Construction\ProjectExtensionsElement.cs (2)
87public override ElementLocation ConditionLocation 88=> InternalError.Throw<ElementLocation>("Should not evaluate this");
Construction\ProjectImportElement.cs (2)
68public ElementLocation ProjectLocation => GetAttributeLocation(XMakeAttributes.project); 119public ElementLocation SdkLocation => GetAttributeLocation(XMakeAttributes.sdk);
Construction\ProjectItemElement.cs (9)
296public ElementLocation IncludeLocation => GetAttributeLocation(XMakeAttributes.include); 301public ElementLocation ExcludeLocation => GetAttributeLocation(XMakeAttributes.exclude); 306public ElementLocation RemoveLocation => GetAttributeLocation(XMakeAttributes.remove); 311public ElementLocation UpdateLocation => GetAttributeLocation(XMakeAttributes.update); 316public ElementLocation MatchOnMetadataLocation => GetAttributeLocation(XMakeAttributes.matchOnMetadata); 321public ElementLocation MatchOnMetadataOptionsLocation => GetAttributeLocation(XMakeAttributes.matchOnMetadataOptions); 326public ElementLocation KeepMetadataLocation => GetAttributeLocation(XMakeAttributes.keepMetadata); 331public ElementLocation RemoveMetadataLocation => GetAttributeLocation(XMakeAttributes.removeMetadata); 336public ElementLocation KeepDuplicatesLocation => GetAttributeLocation(XMakeAttributes.keepDuplicates);
Construction\ProjectMetadataElement.cs (1)
105internal static ProjectMetadataElement CreateDisconnected(string name, ProjectRootElement containingProject, ElementLocation location = null)
Construction\ProjectOnErrorElement.cs (1)
69public ElementLocation ExecuteTargetsLocation => GetAttributeLocation(XMakeAttributes.executeTargets);
Construction\ProjectOtherwiseElement.cs (2)
76public override ElementLocation ConditionLocation 77=> InternalError.Throw<ElementLocation>("Should not evaluate this");
Construction\ProjectOutputElement.cs (3)
121public ElementLocation TaskParameterLocation => GetAttributeLocation(XMakeAttributes.taskParameter); 126public ElementLocation PropertyNameLocation => GetAttributeLocation(XMakeAttributes.propertyName); 131public ElementLocation ItemTypeLocation => GetAttributeLocation(XMakeAttributes.itemName);
Construction\ProjectRootElement.cs (14)
116private ElementLocation _projectFileLocation; 436_projectFileLocation = ElementLocation.Create(newFullPath); 646public override ElementLocation ConditionLocation 647=> InternalError.Throw<ElementLocation>("Should not evaluate this"); 654public ElementLocation ProjectFileLocation => Link != null ? RootLink.ProjectFileLocation : _projectFileLocation ?? ElementLocation.EmptyLocation; 659public ElementLocation ToolsVersionLocation => GetAttributeLocation(XMakeAttributes.toolsVersion); 664public ElementLocation DefaultTargetsLocation => GetAttributeLocation(XMakeAttributes.defaultTargets); 669public ElementLocation InitialTargetsLocation => GetAttributeLocation(XMakeAttributes.initialTargets); 674public ElementLocation SdkLocation => GetAttributeLocation(XMakeAttributes.sdk); 679public ElementLocation TreatAsLocalPropertyLocation => GetAttributeLocation(XMakeAttributes.treatAsLocalProperty); 1362public ProjectMetadataElement CreateMetadataElement(string name, string unevaluatedValue, ElementLocation location) 1816internal XmlElementWithLocation CreateElement(string name, ElementLocation location = null) 2101_projectFileLocation = ElementLocation.Create(fullPath);
Construction\ProjectTargetElement.cs (9)
293public ElementLocation NameLocation => GetAttributeLocation(XMakeAttributes.name); 298public ElementLocation InputsLocation => GetAttributeLocation(XMakeAttributes.inputs); 303public ElementLocation OutputsLocation => GetAttributeLocation(XMakeAttributes.outputs); 308public ElementLocation KeepDuplicateOutputsLocation 312ElementLocation location = GetAttributeLocation(XMakeAttributes.keepDuplicateOutputs); 327public ElementLocation DependsOnTargetsLocation => GetAttributeLocation(XMakeAttributes.dependsOnTargets); 332public ElementLocation BeforeTargetsLocation => GetAttributeLocation(XMakeAttributes.beforeTargets); 337public ElementLocation ReturnsLocation => GetAttributeLocation(XMakeAttributes.returns); 342public ElementLocation AfterTargetsLocation => GetAttributeLocation(XMakeAttributes.afterTargets);
Construction\ProjectTaskElement.cs (12)
36private CopyOnWriteDictionary<(string, ElementLocation)> _parameters; 151foreach (KeyValuePair<string, (string, ElementLocation)> entry in _parameters) 166public IEnumerable<KeyValuePair<string, ElementLocation>> ParameterLocations 178var parameterLocations = new List<KeyValuePair<string, ElementLocation>>(); 180foreach (KeyValuePair<string, (string, ElementLocation)> entry in _parameters) 182parameterLocations.Add(new KeyValuePair<string, ElementLocation>(entry.Key, entry.Value.Item2)); 194public ElementLocation ContinueOnErrorLocation => GetAttributeLocation(XMakeAttributes.continueOnError); 200public ElementLocation MSBuildRuntimeLocation => GetAttributeLocation(XMakeAttributes.msbuildRuntime); 206public ElementLocation MSBuildArchitectureLocation => GetAttributeLocation(XMakeAttributes.msbuildArchitecture); 211internal CopyOnWriteDictionary<(string, ElementLocation)> ParametersForEvaluation 303if (_parameters.TryGetValue(name, out (string, ElementLocation) parameter)) 444_parameters = new CopyOnWriteDictionary<(string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
Construction\ProjectUsingTaskBodyElement.cs (3)
108public override ElementLocation ConditionLocation 109=> InternalError.Throw<ElementLocation>("Should not evaluate this"); 116public ElementLocation EvaluateLocation => GetAttributeLocation(XMakeAttributes.evaluate) ?? Location;
Construction\ProjectUsingTaskElement.cs (7)
172public ElementLocation TaskNameLocation => GetAttributeLocation(XMakeAttributes.taskName); 177public ElementLocation AssemblyFileLocation => GetAttributeLocation(XMakeAttributes.assemblyFile); 182public ElementLocation AssemblyNameLocation => GetAttributeLocation(XMakeAttributes.assemblyName); 187public ElementLocation RuntimeLocation => GetAttributeLocation(XMakeAttributes.runtime); 192public ElementLocation ArchitectureLocation => GetAttributeLocation(XMakeAttributes.architecture); 197public ElementLocation TaskFactoryLocation => GetAttributeLocation(XMakeAttributes.taskFactory); 202public ElementLocation OverrideLocation => GetAttributeLocation(XMakeAttributes.overrideUsingTask);
Construction\ProjectUsingTaskParameterElement.cs (5)
138public override ElementLocation ConditionLocation 139=> InternalError.Throw<ElementLocation>("Should not evaluate this"); 146public ElementLocation ParameterTypeLocation => GetAttributeLocation(XMakeAttributes.parameterType) ?? Location; 153public ElementLocation OutputLocation => GetAttributeLocation(XMakeAttributes.output) ?? Location; 160public ElementLocation RequiredLocation => GetAttributeLocation(XMakeAttributes.required) ?? Location;
Construction\Solution\SolutionFile.cs (2)
328var errorLocation = ElementLocation.Create(FullPath, solutionEx.Line ?? 0, solutionEx.Column ?? 0);
Construction\UsingTaskParameterGroupElement.cs (2)
65public override ElementLocation ConditionLocation 66=> InternalError.Throw<ElementLocation>("Should not evaluate this");
Definition\Project.cs (11)
820public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation; 1753internal string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation) 1783internal string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation) 2463public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation; 3510public string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation) 3564public string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation) 3980string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation); 3984string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation); 4005public string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation) { throw new NotImplementedException(); } 4009public string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation) { throw new NotImplementedException(); } 4303ElementLocation toolsVersionLocation = Project.Xml.ProjectFileLocation;
Definition\ProjectCollection.cs (1)
383ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create("MSBUILD"), "InvalidProperty", ex.Message);
Definition\ProjectMetadata.cs (2)
223public ElementLocation Location 231public ElementLocation ConditionLocation
Definition\ToolsetConfigurationReader.cs (5)
87ElementLocation location = ElementLocation.Create( 141InvalidToolsetDefinitionException.Throw(ex, "ConfigFileReadError", ElementLocation.Create(ex.Source, ex.Line, 0).LocationString, ex.BareMessage); 167ElementLocation location = ElementLocation.Create(propertyElement.ElementInformation.Source, propertyElement.ElementInformation.LineNumber, 0);
ElementLocation\ElementLocation.cs (7)
28private static readonly ElementLocation s_emptyElementLocation = new SmallElementLocation(null, 0, 0); 83public static ElementLocation EmptyLocation 157internal static ElementLocation FactoryForDeserialization(ITranslator translator) 174internal static ElementLocation Create(string file) 188public static ElementLocation Create(string file, int line, int column) 196? new ElementLocation.SmallElementLocation(file, line, column) 197: new ElementLocation.RegularElementLocation(file, line, column);
ElementLocation\XmlAttributeWithLocation.cs (4)
20private ElementLocation _elementLocation; 38_elementLocation = ElementLocation.Create(documentWithLocation.FullPath, lineNumber, columnNumber); 71internal ElementLocation Location 79_elementLocation = ElementLocation.Create(ownerDocumentWithLocation.FullPath, _elementLocation.Line, _elementLocation.Column);
ElementLocation\XmlDocumentWithLocation.cs (3)
59private readonly AsyncLocal<ElementLocation> _elementLocation = new AsyncLocal<ElementLocation>(); 180internal XmlElement CreateElement(string localName, string namespaceURI, ElementLocation location)
ElementLocation\XmlElementWithLocation.cs (5)
27private ElementLocation _elementLocation; 50_elementLocation = ElementLocation.Create(documentWithLocation.FullPath, lineNumber, adjustedColumn); 91internal ElementLocation Location 99_elementLocation = ElementLocation.Create(ownerDocumentWithLocation.FullPath, _elementLocation.Line, _elementLocation.Column); 151internal ElementLocation GetAttributeLocation(string name)
Evaluation\Conditionals\Parser.cs (3)
8using ElementLocation = Microsoft.Build.Construction.ElementLocation; 47private ElementLocation _elementLocation; 98internal GenericExpressionNode Parse(string expression, ParserOptions optionSettings, ElementLocation elementLocation)
Evaluation\ConditionEvaluator.cs (6)
12using ElementLocation = Microsoft.Build.Construction.ElementLocation; 186ElementLocation elementLocation, 220ElementLocation elementLocation, 352ElementLocation ElementLocation { get; } 407public ElementLocation ElementLocation { get; } 432ElementLocation elementLocation,
Evaluation\Evaluator.cs (2)
2025ElementLocation importLocationInProject = importElement.Location; 2630private void VerifyVSDistributionPath(string path, ElementLocation importLocationInProject)
Evaluation\ProjectParser.cs (1)
134ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(_document.FullPath), "NoRootProjectElement", XMakeElements.project);
Graph\ProjectGraph.cs (1)
679ElementLocation.Create(Solution.FullPath),
Instance\IPropertyElementWithLocation.cs (1)
26ElementLocation Location { get; }
Instance\ProjectInstance.cs (19)
160private ElementLocation _projectFileLocation; 382_projectFileLocation = ElementLocation.Create(projectPath); 435_projectFileLocation = ElementLocation.Create(projectPath); 565_projectFileLocation = ElementLocation.Create(projectFile); 680_projectFileLocation = ElementLocation.Create(fullPath); 1571public ElementLocation ProjectFileLocation 2004new PropertyReadInfo(name, ElementLocation.EmptyLocation, false, PropertyReadContext.Other)); 2025_loggingContext?.ProcessPropertyWrite(new PropertyWriteInfo(name, false, ElementLocation.EmptyLocation)); 2514translator.Translate(ref _projectFileLocation, ElementLocation.FactoryForDeserialization); 2930String.IsNullOrEmpty(condition) ? null : ElementLocation.EmptyLocation, 2931String.IsNullOrEmpty(inputs) ? null : ElementLocation.EmptyLocation, 2932String.IsNullOrEmpty(outputs) ? null : ElementLocation.EmptyLocation, 2933String.IsNullOrEmpty(returns) ? null : ElementLocation.EmptyLocation, 2934String.IsNullOrEmpty(keepDuplicateOutputs) ? null : ElementLocation.EmptyLocation, 2935String.IsNullOrEmpty(dependsOnTargets) ? null : ElementLocation.EmptyLocation, 2936String.IsNullOrEmpty(beforeTargets) ? null : ElementLocation.EmptyLocation, 2937String.IsNullOrEmpty(afterTargets) ? null : ElementLocation.EmptyLocation, 3194_projectFileLocation = xml.ProjectFileLocation ?? ElementLocation.EmptyLocation; 3212ElementLocation toolsVersionLocation = xml.Location;
Instance\ProjectItemGroupTaskInstance.cs (8)
35private ElementLocation _location; 40private ElementLocation _conditionLocation; 48ElementLocation location, 49ElementLocation conditionLocation, 104public override ElementLocation Location 112public override ElementLocation ConditionLocation 135translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 136translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectItemGroupTaskItemInstance.cs (40)
74private ElementLocation _location; 79private ElementLocation _includeLocation; 84private ElementLocation _excludeLocation; 89private ElementLocation _removeLocation; 94private ElementLocation _matchOnMetadataLocation; 99private ElementLocation _matchOnMetadataOptionsLocation; 104private ElementLocation _keepMetadataLocation; 109private ElementLocation _removeMetadataLocation; 114private ElementLocation _keepDuplicatesLocation; 119private ElementLocation _conditionLocation; 149ElementLocation location, 150ElementLocation includeLocation, 151ElementLocation excludeLocation, 152ElementLocation removeLocation, 153ElementLocation matchOnMetadataLocation, 154ElementLocation matchOnMetadataOptionsLocation, 155ElementLocation keepMetadataLocation, 156ElementLocation removeMetadataLocation, 157ElementLocation keepDuplicatesLocation, 158ElementLocation conditionLocation, 335public ElementLocation Location 345public ElementLocation IncludeLocation 355public ElementLocation ExcludeLocation 365public ElementLocation RemoveLocation 375public ElementLocation MatchOnMetadataLocation 385public ElementLocation MatchOnMetadataOptionsLocation 395public ElementLocation KeepMetadataLocation 405public ElementLocation RemoveMetadataLocation 415public ElementLocation KeepDuplicatesLocation 425public ElementLocation ConditionLocation 452translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 453translator.Translate(ref _includeLocation, ElementLocation.FactoryForDeserialization); 454translator.Translate(ref _excludeLocation, ElementLocation.FactoryForDeserialization); 455translator.Translate(ref _removeLocation, ElementLocation.FactoryForDeserialization); 456translator.Translate(ref _keepMetadataLocation, ElementLocation.FactoryForDeserialization); 457translator.Translate(ref _removeMetadataLocation, ElementLocation.FactoryForDeserialization); 458translator.Translate(ref _keepDuplicatesLocation, ElementLocation.FactoryForDeserialization); 459translator.Translate(ref _matchOnMetadataLocation, ElementLocation.FactoryForDeserialization); 460translator.Translate(ref _matchOnMetadataOptionsLocation, ElementLocation.FactoryForDeserialization); 461translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectItemGroupTaskMetadataInstance.cs (8)
37private ElementLocation _location; 42private ElementLocation _conditionLocation; 47internal ProjectItemGroupTaskMetadataInstance(string name, string value, string condition, ElementLocation location, ElementLocation conditionLocation) 109public ElementLocation Location 119public ElementLocation ConditionLocation 139translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 140translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectItemInstance.cs (1)
1442return expander.ExpandIntoStringLeaveEscaped(escapedValue, ExpanderOptions.ExpandBuiltInMetadata, ElementLocation.EmptyLocation);
Instance\ProjectOnErrorInstance.cs (12)
34private ElementLocation _location; 39private ElementLocation _conditionLocation; 44private ElementLocation _executeTargetsLocation; 53ElementLocation location, 54ElementLocation executeTargetsLocation, 55ElementLocation conditionLocation) 93public override ElementLocation Location 101public override ElementLocation ConditionLocation 109public ElementLocation ExecuteTargetsLocation 124translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 125translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 126translator.Translate(ref _executeTargetsLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectPropertyGroupTaskInstance.cs (8)
35private ElementLocation _location; 40private ElementLocation _conditionLocation; 48ElementLocation location, 49ElementLocation conditionLocation, 104public override ElementLocation Location 112public override ElementLocation ConditionLocation 134translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 135translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectPropertyGroupTaskPropertyInstance.cs (8)
37private ElementLocation _location; 42private ElementLocation _conditionLocation; 47internal ProjectPropertyGroupTaskPropertyInstance(string name, string value, string condition, ElementLocation location, ElementLocation conditionLocation) 111public ElementLocation Location 119public ElementLocation ConditionLocation 137translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 138translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectPropertyInstance.cs (3)
236internal static ProjectPropertyInstance Create(string name, string escapedValue, ElementLocation location) 245internal static ProjectPropertyInstance Create(string name, string escapedValue, ElementLocation location, bool isImmutable) 322private static ProjectPropertyInstance Create(string name, string escapedValue, bool mayBeReserved, ElementLocation location, bool isImmutable, bool isEnvironmentProperty = false, LoggingContext loggingContext = null)
Instance\ProjectTargetInstance.cs (36)
88private ElementLocation _location; 93private ElementLocation _conditionLocation; 98private ElementLocation _inputsLocation; 103private ElementLocation _outputsLocation; 108private ElementLocation _returnsLocation; 113private ElementLocation _keepDuplicateOutputsLocation; 118private ElementLocation _dependsOnTargetsLocation; 123private ElementLocation _beforeTargetsLocation; 128private ElementLocation _afterTargetsLocation; 151ElementLocation location, 152ElementLocation conditionLocation, 153ElementLocation inputsLocation, 154ElementLocation outputsLocation, 155ElementLocation returnsLocation, 156ElementLocation keepDuplicateOutputsLocation, 157ElementLocation dependsOnTargetsLocation, 158ElementLocation beforeTargetsLocation, 159ElementLocation afterTargetsLocation, 351public ElementLocation Location 361public ElementLocation ConditionLocation 371public ElementLocation InputsLocation 381public ElementLocation OutputsLocation 391public ElementLocation ReturnsLocation 401public ElementLocation KeepDuplicateOutputsLocation 411public ElementLocation DependsOnTargetsLocation 421public ElementLocation BeforeTargetsLocation 431public ElementLocation AfterTargetsLocation 560translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 561translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 562translator.Translate(ref _inputsLocation, ElementLocation.FactoryForDeserialization); 563translator.Translate(ref _outputsLocation, ElementLocation.FactoryForDeserialization); 564translator.Translate(ref _returnsLocation, ElementLocation.FactoryForDeserialization); 565translator.Translate(ref _keepDuplicateOutputsLocation, ElementLocation.FactoryForDeserialization); 566translator.Translate(ref _dependsOnTargetsLocation, ElementLocation.FactoryForDeserialization); 567translator.Translate(ref _beforeTargetsLocation, ElementLocation.FactoryForDeserialization); 568translator.Translate(ref _afterTargetsLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectTargetInstanceChild.cs (2)
34public abstract ElementLocation Location { get; } 40public abstract ElementLocation ConditionLocation { get; }
Instance\ProjectTaskInstance.cs (49)
57private CopyOnWriteDictionary<(string, ElementLocation)> _parameters; 69private ElementLocation _location; 74private ElementLocation _conditionLocation; 79private ElementLocation _continueOnErrorLocation; 84private ElementLocation _msbuildRuntimeLocation; 89private ElementLocation _msbuildArchitectureLocation; 129ElementLocation location, 139new CopyOnWriteDictionary<(string, ElementLocation)>(StringComparer.OrdinalIgnoreCase), 142condition == string.Empty ? null : ElementLocation.EmptyLocation, 143continueOnError == string.Empty ? null : ElementLocation.EmptyLocation, 144msbuildRuntime == string.Empty ? null : ElementLocation.EmptyLocation, 145msbuildArchitecture == string.Empty ? null : ElementLocation.EmptyLocation) 155CopyOnWriteDictionary<(string, ElementLocation)> parameters, 157ElementLocation location, 158ElementLocation conditionLocation, 159ElementLocation continueOnErrorElementLocation, 160ElementLocation msbuildRuntimeLocation, 161ElementLocation msbuildArchitectureLocation) 238foreach (KeyValuePair<string, (string, ElementLocation)> parameter in _parameters) 247internal IDictionary<string, (string, ElementLocation)> TestGetParameters => _parameters; 261public ElementLocation ContinueOnErrorLocation 269public ElementLocation MSBuildRuntimeLocation 277public ElementLocation MSBuildArchitectureLocation 285public override ElementLocation Location 293public override ElementLocation ConditionLocation 301internal CopyOnWriteDictionary<(string, ElementLocation)> ParametersForBuild 328_parameters[parameterName] = (unevaluatedValue, ElementLocation.EmptyLocation); 341_outputs.Add(new ProjectTaskOutputItemInstance(itemName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, condition == null ? null : ElementLocation.EmptyLocation)); 354_outputs.Add(new ProjectTaskOutputPropertyInstance(propertyName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, condition == null ? null : ElementLocation.EmptyLocation)); 371translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 372translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 373translator.Translate(ref _continueOnErrorLocation, ElementLocation.FactoryForDeserialization); 374translator.Translate(ref _msbuildRuntimeLocation, ElementLocation.FactoryForDeserialization); 375translator.Translate(ref _msbuildArchitectureLocation, ElementLocation.FactoryForDeserialization); 377IDictionary<string, (string, ElementLocation)> localParameters = _parameters; 382count => new CopyOnWriteDictionary<(string, ElementLocation)>()); 386_parameters = (CopyOnWriteDictionary<(string, ElementLocation)>)localParameters; 395private static void ParametersValueTranslator(ITranslator translator, ref (string, ElementLocation) value) 400var item2 = value.Item2; 403translator.Translate(ref item2, ElementLocation.FactoryForDeserialization); 408var item2 = default(ElementLocation); 411translator.Translate(ref item2, ElementLocation.FactoryForDeserialization);
Instance\ProjectTaskInstanceChild.cs (3)
26public abstract ElementLocation Location 34public abstract ElementLocation TaskParameterLocation 42public abstract ElementLocation ConditionLocation
Instance\ProjectTaskOutputItemInstance.cs (16)
37private ElementLocation _location; 42private ElementLocation _itemTypeLocation; 47private ElementLocation _taskParameterLocation; 52private ElementLocation _conditionLocation; 57internal ProjectTaskOutputItemInstance(string itemType, string taskParameter, string condition, ElementLocation location, ElementLocation itemTypeLocation, ElementLocation taskParameterLocation, ElementLocation conditionLocation) 106public override ElementLocation Location 114public override ElementLocation ConditionLocation 122public override ElementLocation TaskParameterLocation 130public ElementLocation ItemTypeLocation 146translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 147translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 148translator.Translate(ref _itemTypeLocation, ElementLocation.FactoryForDeserialization); 149translator.Translate(ref _taskParameterLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectTaskOutputPropertyInstance.cs (16)
37private ElementLocation _location; 42private ElementLocation _propertyNameLocation; 47private ElementLocation _taskParameterLocation; 52private ElementLocation _conditionLocation; 57internal ProjectTaskOutputPropertyInstance(string propertyName, string taskParameter, string condition, ElementLocation location, ElementLocation propertyNameLocation, ElementLocation taskParameterLocation, ElementLocation conditionLocation) 106public ElementLocation PropertyNameLocation 114public override ElementLocation Location 122public override ElementLocation ConditionLocation 130public override ElementLocation TaskParameterLocation 146translator.Translate(ref _location, ElementLocation.FactoryForDeserialization); 147translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization); 148translator.Translate(ref _propertyNameLocation, ElementLocation.FactoryForDeserialization); 149translator.Translate(ref _taskParameterLocation, ElementLocation.FactoryForDeserialization);
Instance\TaskFactories\AssemblyTaskFactory.cs (4)
21using ElementLocation = Microsoft.Build.Construction.ElementLocation; 238ElementLocation elementLocation, 297ElementLocation taskLocation, 462internal bool TaskNameCreatableByFactory(string taskName, in TaskHostParameters taskIdentityParameters, string taskProjectFile, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation)
Instance\TaskFactoryEngineContext.cs (3)
8using ElementLocation = Microsoft.Build.Construction.ElementLocation; 33private ElementLocation _elementLocation; 72public TaskFactoryEngineContext(bool isRunningWithMultipleNodes, ElementLocation elementLocation, BuildLoggingContext loggingContext, bool isMultiThreadedBuild, bool forceOutOfProcessExecution)
Instance\TaskRegistry.cs (6)
454ElementLocation elementLocation, 512ElementLocation elementLocation, 762ElementLocation elementLocation, 1284internal bool CanTaskBeCreatedByFactory(string taskName, string taskProjectFile, TaskHostParameters taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild) 1392internal TaskFactoryWrapper GetTaskFactoryFromRegistrationRecord(string taskName, string taskProjectFile, in TaskHostParameters taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild) 1406private bool GetTaskFactory(TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, string taskProjectFile, bool isMultiThreadedBuild)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (3)
86public abstract ElementLocation Location { get; } 102public abstract ElementLocation GetAttributeLocation(string attributeName); 129public static ElementLocation GetAttributeLocation(ProjectElement xml, string attributeName) => xml.GetAttributeLocation(attributeName);
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
51public abstract ElementLocation ProjectFileLocation { get; }
ObjectModelRemoting\ConstructionObjectLinks\ProjectTaskElementLink.cs (1)
23public abstract IEnumerable<KeyValuePair<string, ElementLocation>> ParameterLocations { get; }
src\msbuild\src\Shared\BuildEventFileInfo.cs (1)
17internal static BuildEventFileInfo Empty = new BuildEventFileInfo(ElementLocation.EmptyLocation);
Xml\ProjectXmlUtilities.cs (1)
78internal static void ThrowProjectInvalidChildElement(string name, string parentName, ElementLocation location)