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\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\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)
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);
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;
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\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\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\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\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\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)