3 types derived from ElementLocation
Microsoft.Build (3)
ElementLocation\ElementLocation.cs (3)
298private sealed class FileOnly(string file) : ElementLocation 341private sealed class Regular(string file, int line, int column) : ElementLocation 391private sealed class Small(string file, ushort line, ushort column) : ElementLocation
570 references to ElementLocation
Microsoft.Build (570)
BackEnd\BuildManager\BuildManager.cs (8)
1244entries = _multiThreadedStrictModeScope.VerifyUnresolvedPathWrites(ElementLocation.Empty, out recovered); 1266BuildEventContext.Invalid, DiagnosticSubcategory.None, warningCode, helpKeyword, ElementLocation.Empty, message); 2416ElementLocation.Create(submission.BuildRequestData.ProjectFullPath)); 3052ElementLocation.Empty, // no project file 3067ElementLocation.Empty, // no project file 3219ElementLocation.Empty, 3677location: ElementLocation.Empty, 3865ElementLocation.Empty,
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
46loggingService.LogWarning(BuildEventContext.Invalid, DiagnosticSubcategory.None, ElementLocation.Empty, "DotnetHostPathIsDirectory", dotnetHostPath);
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (3)
157ElementLocation taskLocation, 220internal string? VerifyUnresolvedPathWrites(ElementLocation location, out bool recovered) 247private bool RecoverSentinelDirectory(ElementLocation location, Exception failure)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
1581ElementLocation.Empty,
BackEnd\Components\Logging\LoggingContext.cs (1)
256_loggingService.LogWarning(_eventContext, DiagnosticSubcategory.None, ElementLocation.Empty, messageResourceName, messageArgs);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (6)
208IElementLocation elementLocation = ElementLocation.Empty; 589ElementLocation elementLocation = ElementLocation.Create(buildRequest.ProjectFullPath); 875ElementLocation elementLocation = ElementLocation.Create(requestConfiguration.ProjectFullPath); 956IElementLocation elementLocation = ElementLocation.Empty;
BackEnd\Components\RequestBuilder\BatchingEngine.cs (6)
12using ElementLocation = Microsoft.Build.Construction.ElementLocation; 85ElementLocation elementLocation, 106ElementLocation elementLocation, 205ElementLocation elementLocation) 298ElementLocation elementLocation, 394ElementLocation elementLocation)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (4)
17using ElementLocation = Microsoft.Build.Construction.ElementLocation; 559private HashSet<string> EvaluateExcludePaths(IReadOnlyList<string> excludes, ElementLocation excludeLocation) 590ElementLocation specificationLocation, 665ElementLocation.Empty,
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\RequestBuilder.cs (4)
310ElementLocation.Empty, 838ElementLocation.Empty, 852(((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext).LogError(ElementLocation.Empty, "UnhandledMSBuildError", ex.ToString()); 1268ElementLocation location = _requestEntry.RequestConfiguration.Project.ProjectFileLocation;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (4)
17using ElementLocation = Microsoft.Build.Construction.ElementLocation; 245/// <param name="taskLocation">The <see cref="ElementLocation"/> of the task.</param> 253async Task<ITargetResult[]> ITargetBuilderCallback.LegacyCallTarget(string[] targets, bool continueOnError, ElementLocation taskLocation) 722ElementLocation targetLocation = targetSpecification.ReferenceLocation;
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
19using ElementLocation = Microsoft.Build.Construction.ElementLocation; 210internal ElementLocation ReferenceLocation 614ElementLocation 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 (4)
17using ElementLocation = Microsoft.Build.Construction.ElementLocation; 280ElementLocation.Empty, 302ElementLocation.Empty, 806ElementLocation elementLocation)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
24using ElementLocation = Microsoft.Build.Construction.ElementLocation; 262foreach (KeyValuePair<string, (string, ElementLocation)> taskParameter in _taskNode.ParametersForBuild) 602string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildArchitectureLocation ?? ElementLocation.Empty); 603string msbuildRuntime = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildRuntimeLocation ?? ElementLocation.Empty);
BackEnd\Components\RequestBuilder\TaskHost.cs (6)
21using ElementLocation = Microsoft.Build.Construction.ElementLocation; 61private ElementLocation _taskLocation; 114/// <param name="taskLocation">The <see cref="ElementLocation"/> of the task.</param> 116public TaskHost(IBuildComponentHost host, BuildRequestEntry requestEntry, ElementLocation taskLocation, ITargetBuilderCallback targetBuilderCallback) 1166_taskLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ExpectedEventToBeSerializable", e.GetType().Name); 1299location: ElementLocation.Create(ProjectFileOfTaskNode, LineNumberOfTaskNode, ColumnNumberOfTaskNode),
BackEnd\Components\SdkResolution\CachingSdkResolverLoader.cs (3)
77internal override IReadOnlyList<SdkResolver> LoadAllResolvers(ElementLocation location) 86internal override IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 96protected 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)
98public 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)
60internal virtual IReadOnlyList<SdkResolver> LoadAllResolvers(ElementLocation location) 89internal virtual IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 112internal virtual IReadOnlyList<string> FindPotentialSdkResolvers(string rootFolder, ElementLocation location) 119internal virtual IReadOnlyList<SdkResolverManifest> FindPotentialSdkResolversManifests(string rootFolder, ElementLocation location) 190private bool TryAddAssemblyManifestFromXml(string pathToManifest, string manifestFolder, List<SdkResolverManifest> manifestsList, ElementLocation location) 295protected internal virtual IReadOnlyList<SdkResolver> LoadResolversFromManifest(SdkResolverManifest manifest, ElementLocation location) 311protected 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)
112public virtual SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 168private SdkResult ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 270private List<SdkResolver> GetResolvers(IReadOnlyList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, SdkReference sdk) 316ElementLocation sdkReferenceLocation, 418internal virtual IReadOnlyList<SdkResolverManifest> GetResolverManifests(ElementLocation location) => _sdkResolverLoader.GetResolversManifests(location); 454private static void LogWarnings(LoggingContext loggingContext, ElementLocation location, IEnumerable<string> warnings) 492private void RegisterResolversManifests(ElementLocation location)
BackEnd\Components\SdkResolution\SdkResult.cs (1)
78public Construction.ElementLocation ElementLocation { get; set; }
BackEnd\Node\OutOfProcNode.cs (1)
633ElementLocation.Empty,
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1201ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(data.ProjectFullPath), "ProjectUpgradeNeededToVcxProj", data.ProjectFullPath);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (13)
126private ElementLocation _taskLocation; 281ElementLocation taskLocation, 559public bool SetTaskParameters(IDictionary<string, (string, ElementLocation)> parameters) 581foreach (KeyValuePair<string, (string, ElementLocation)> parameter in parameters) 640public bool GatherTaskOutputs(string parameterName, ElementLocation parameterLocation, bool outputTargetIsItem, string outputTargetName) 1004private bool SetParameterArray(TaskPropertyInfo parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation) 1385ElementLocation parameterLocation, 1634ElementLocation parameterLocation, 1774ElementLocation parameterLocation, 1820ElementLocation parameterLocation) 1899private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter) 1980private bool GatherProjectItemInstanceTaskItemOutputs(string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation) 2075private void GatherArrayStringAndValueOutputs(bool outputTargetIsItem, string outputTargetName, string[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter)
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
83ElementLocation.Empty,
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
78ElementLocation.Empty,
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
74ElementLocation.Empty, 102ElementLocation.Empty,
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
80ElementLocation.Empty,
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
58ElementLocation.Empty,
BuildCheck\Checks\TargetFrameworkUnexpectedCheck.cs (1)
97ElementLocation.Empty,
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
52ElementLocation.Empty,
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
164ElementLocation.Create(acquisitionData.ProjectPath),
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
309ElementLocation.Create(projectFullPath),
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
239ElementLocation.Create(projectPath), 350ElementLocation.Create(projectFullPath), 475ElementLocation.Create(evr.File, evr.LineNumber, evr.ColumnNumber));
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
147ElementLocation invocationLocation = ElementLocation.Create( 257ElementLocation.Empty,
BuildCheck\OM\ParsedItemsCheckData.cs (2)
146ElementLocation taskInvocationLocation, 161public ElementLocation TaskInvocationLocation { get; }
Construction\ProjectChooseElement.cs (2)
82public override ElementLocation ConditionLocation 83=> 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)
106internal 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 (21)
116private ElementLocation _projectFileLocation; 438_projectFileLocation = ElementLocation.Create(newFullPath); 648public override ElementLocation ConditionLocation 649=> InternalError.Throw<ElementLocation>("Should not evaluate this"); 656public ElementLocation ProjectFileLocation => Link != null ? RootLink.ProjectFileLocation : _projectFileLocation ?? ElementLocation.Empty; 661public ElementLocation ToolsVersionLocation => GetAttributeLocation(XMakeAttributes.toolsVersion); 666public ElementLocation DefaultTargetsLocation => GetAttributeLocation(XMakeAttributes.defaultTargets); 671public ElementLocation InitialTargetsLocation => GetAttributeLocation(XMakeAttributes.initialTargets); 676public ElementLocation SdkLocation => GetAttributeLocation(XMakeAttributes.sdk); 681public ElementLocation TreatAsLocalPropertyLocation => GetAttributeLocation(XMakeAttributes.treatAsLocalProperty); 1364public ProjectMetadataElement CreateMetadataElement(string name, string unevaluatedValue, ElementLocation location) 1818internal XmlElementWithLocation CreateElement(string name, ElementLocation location = null) 2057ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(projectFile), "ProjectUpgradeNeededToVcxProj", projectFile); 2069ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(projectFile), ex, "InvalidProjectFile", ex.Message); 2103_projectFileLocation = ElementLocation.Create(fullPath); 2120ElementLocation location = ex is XmlException xmlException 2121? ElementLocation.CreateFrom(fullPath, xmlException) 2122: ElementLocation.Create(fullPath); 2146ElementLocation location = ElementLocation.CreateFrom(ex);
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\ProjectInSolution.cs (2)
423ElementLocation.Create(ParentSolution.FullPath), 471ElementLocation.Create(ParentSolution.FullPath),
Construction\Solution\SolutionFile.cs (20)
314ElementLocation.Create(FullPath), 327var errorLocation = ElementLocation.Create(FullPath, solutionEx.Line ?? 0, solutionEx.Column ?? 0); 336ElementLocation.Create(FullPath), 581ElementLocation.Create(solutionFile), 593ElementLocation.Create(solutionFile), 624ElementLocation.Create(solutionFile), 638ElementLocation.Create(_solutionFile), 656ElementLocation.Create(solutionFilterFile), 678ElementLocation.Create(solutionFilterFile), 700private ElementLocation GetCurrentLocation() 701=> ElementLocation.Create(FullPath, _currentLineNumber); 750ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(_solutionFile), "InvalidProjectFile", e.Message); 898ElementLocation.Create(FullPath), 919ElementLocation.Create(FileUtilities.GetFullPath(project, Path.GetDirectoryName(_solutionFile))), 964ElementLocation.Create(FullPath), 1139ElementLocation.Create(FullPath), 1580ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath); 1720ElementLocation.Create(projectPath, lineNumber, 0), 1822ElementLocation.Create(FullPath),
Construction\Solution\SolutionProjectGenerator.cs (7)
289ElementLocation.Create(solutionFile.FullPath), 754ElementLocation.Create(_solutionFile.FullPath), 1226ElementLocation.Create(traversalProject.FullPath), 1296ElementLocation.Create(_solutionFile.FullPath), 1392ElementLocation.Create(traversalProject.FullPath), 2262ElementLocation.Create(project.RelativePath), 2290ElementLocation.Create(_solutionFile.FullPath),
Construction\UsingTaskParameterGroupElement.cs (2)
65public override ElementLocation ConditionLocation 66=> InternalError.Throw<ElementLocation>("Should not evaluate this");
Definition\Project.cs (12)
827public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation; 1771internal string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation) 1801internal string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation) 2493public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation; 3217ElementLocation.Create(FullPath), 3386public string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation) 3440public string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation) 3856string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation); 3860string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation); 3881public string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation) { throw new NotImplementedException(); } 3885public string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation) { throw new NotImplementedException(); } 4179ElementLocation toolsVersionLocation = Project.Xml.ProjectFileLocation;
Definition\ProjectCollection.cs (1)
449ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create("MSBUILD"), "InvalidProperty", ex.Message);
Definition\ProjectMetadata.cs (2)
223public ElementLocation Location 231public ElementLocation ConditionLocation
Definition\Toolset.cs (7)
599ElementLocation.Empty, 610ElementLocation.Empty, 867ElementLocation.Empty, 910loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "OverrideTasksFileFailure", rootedPathMessage); 917loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "OverrideTasksFileFailure", rootedPathMessage); 957ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.CreateFrom(currentTasksFile, e), 962loggingContext.LogError(ElementLocation.Create(currentTasksFile),
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 (18)
34public static ElementLocation Empty { get; } = new FileOnly(string.Empty); 43public static ElementLocation EmptyLocation => Empty; 79/// with potential user-derived <see cref="ElementLocation"/> instances. 89/// <see langword="true"/> when <paramref name="obj"/> is an <see cref="ElementLocation"/> with the same 97|| (obj is ElementLocation other && Equals(other)); 100/// Determines whether an <see cref="ElementLocation"/> represents the same file, line, and column as this location. 102/// <param name="other">The <see cref="ElementLocation"/> to compare with this location.</param> 109private bool Equals(ElementLocation other) 150/// A factory is required because <see cref="ElementLocation"/> is abstract and uses specialized 153internal static ElementLocation FactoryForDeserialization(ITranslator translator) 176internal static ElementLocation Create(string? file) 189internal static ElementLocation Create(string? file, int line) 220public static ElementLocation Create(string? file, int line, int column) 246internal static ElementLocation CreateFrom(XmlException exception) 266internal static ElementLocation CreateFrom(string? file, XmlException exception) 319ElementLocation { Line: 0, Column: 0 } other => StringComparer.OrdinalIgnoreCase.Equals(File, other.File), 368ElementLocation other => Equals(other), 418ElementLocation other => Equals(other),
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 (5)
416ElementLocation.Create(root.ProjectFileLocation.File), 1274_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ChangeWave_InvalidFormat", Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{string.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]"); 1277_evaluationLoggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ChangeWave_OutOfRotation", ChangeWaves.DisabledWave, Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{string.Join(", ", ChangeWaves.AllWaves.Select(x => x.ToString()))}]"); 2174ElementLocation importLocationInProject = importElement.Location; 2919private void VerifyVSDistributionPath(string path, ElementLocation importLocationInProject)
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
29ElementLocation.Empty,
Evaluation\ProjectParser.cs (1)
139ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(_document.FullPath), "NoRootProjectElement", XMakeElements.project);
Graph\GraphBuilder.cs (1)
370ElementLocation.Create(Solution.FullPath),
Graph\ProjectGraph.cs (1)
709ElementLocation.Create(Solution.FullPath),
Instance\IPropertyElementWithLocation.cs (1)
26ElementLocation Location { get; }
Instance\ProjectInstance.cs (19)
160private ElementLocation _projectFileLocation; 391_projectFileLocation = ElementLocation.Create(projectPath); 444_projectFileLocation = ElementLocation.Create(projectPath); 576_projectFileLocation = ElementLocation.Create(projectFile); 691_projectFileLocation = ElementLocation.Create(fullPath); 1622public ElementLocation ProjectFileLocation 2055new PropertyReadInfo(name, ElementLocation.Empty, false, PropertyReadContext.Other)); 2076_loggingContext?.ProcessPropertyWrite(new PropertyWriteInfo(name, false, ElementLocation.Empty)); 2576translator.Translate(ref _projectFileLocation, ElementLocation.FactoryForDeserialization); 2996String.IsNullOrEmpty(condition) ? null : ElementLocation.Empty, 2997String.IsNullOrEmpty(inputs) ? null : ElementLocation.Empty, 2998String.IsNullOrEmpty(outputs) ? null : ElementLocation.Empty, 2999String.IsNullOrEmpty(returns) ? null : ElementLocation.Empty, 3000String.IsNullOrEmpty(keepDuplicateOutputs) ? null : ElementLocation.Empty, 3001String.IsNullOrEmpty(dependsOnTargets) ? null : ElementLocation.Empty, 3002String.IsNullOrEmpty(beforeTargets) ? null : ElementLocation.Empty, 3003String.IsNullOrEmpty(afterTargets) ? null : ElementLocation.Empty, 3263_projectFileLocation = xml.ProjectFileLocation ?? ElementLocation.Empty; 3281ElementLocation 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.Empty);
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)
237internal static ProjectPropertyInstance Create(string name, string escapedValue, ElementLocation location) 246internal static ProjectPropertyInstance Create(string name, string escapedValue, ElementLocation location, bool isImmutable) 323private 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.Empty, 143continueOnError == string.Empty ? null : ElementLocation.Empty, 144msbuildRuntime == string.Empty ? null : ElementLocation.Empty, 145msbuildArchitecture == string.Empty ? null : ElementLocation.Empty) 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.Empty); 341_outputs.Add(new ProjectTaskOutputItemInstance(itemName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.Empty, ElementLocation.Empty, ElementLocation.Empty, condition == null ? null : ElementLocation.Empty)); 354_outputs.Add(new ProjectTaskOutputPropertyInstance(propertyName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.Empty, ElementLocation.Empty, ElementLocation.Empty, condition == null ? null : ElementLocation.Empty)); 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 (7)
25using ElementLocation = Microsoft.Build.Construction.ElementLocation; 247ElementLocation elementLocation, 285ElementLocation.Create(taskProjectFile), 312ElementLocation taskLocation, 404ElementLocation.Create(taskLoc, taskLine, taskColumn), 466internal bool TaskNameCreatableByFactory(string taskName, in TaskHostParameters taskIdentityParameters, string taskProjectFile, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation) 493ElementLocation.Create(taskProjectFile),
Instance\TaskFactoryEngineContext.cs (4)
7using ElementLocation = Microsoft.Build.Construction.ElementLocation; 33private ElementLocation _elementLocation; 72public TaskFactoryEngineContext(bool isRunningWithMultipleNodes, ElementLocation elementLocation, BuildLoggingContext loggingContext, bool isMultiThreadedBuild, bool forceOutOfProcessExecution) 392_loggingContext.LogWarning(DiagnosticSubcategory.None, ElementLocation.Empty, "ExpectedEventToBeSerializable", e.GetType().Name);
Instance\TaskRegistry.cs (7)
262ElementLocation elementLocation, 321ElementLocation elementLocation, 552ElementLocation elementLocation, 1075internal bool CanTaskBeCreatedByFactory(string taskName, string taskProjectFile, TaskHostParameters taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild) 1184internal TaskFactoryWrapper GetTaskFactoryFromRegistrationRecord(string taskName, string taskProjectFile, in TaskHostParameters taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild) 1199private bool GetTaskFactory(TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, string taskProjectFile, bool isMultiThreadedBuild) 1282ElementLocation.Create(taskProjectFile),
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; }
Utilities\EngineFileUtilities.cs (1)
436ElementLocation.Create(projectFilePath),
Xml\ProjectXmlUtilities.cs (1)
203internal static bool ThrowIfProjectInvalidChildElement(string name, string parentName, ElementLocation location, ParserIgnoreConfiguration config)