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)
118private 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 (6)
111public virtual SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
170private SdkResult ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
261private List<SdkResolver> GetResolvers(IList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation)
292ElementLocation sdkReferenceLocation,
422private static void LogWarnings(LoggingContext loggingContext, ElementLocation location, IEnumerable<string> warnings)
460private void RegisterResolversManifests(ElementLocation location)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (11)
113private ElementLocation _taskLocation;
245public void InitializeForTask(IBuildEngine2 buildEngine, TargetLoggingContext loggingContext, ProjectInstance projectInstance, string taskName, ElementLocation taskLocation, ITaskHost taskHost, bool continueOnError,
353public bool SetTaskParameters(IDictionary<string, (string, ElementLocation)> parameters)
365foreach (KeyValuePair<string, (string, ElementLocation)> parameter in parameters)
424public bool GatherTaskOutputs(string parameterName, ElementLocation parameterLocation, bool outputTargetIsItem, string outputTargetName)
725private bool SetParameterArray(TaskPropertyInfo parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation)
1006ElementLocation parameterLocation,
1135ElementLocation parameterLocation,
1259ElementLocation parameterLocation,
1369private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter)
1507private 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)
814public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation;
1747internal string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation)
1777internal string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation)
2468public ElementLocation ProjectFileLocation => Xml.ProjectFileLocation;
3501public string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation)
3555public string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation)
3970string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation);
3974string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation);
3995public string ExpandPropertyValueBestEffortLeaveEscaped(string unevaluatedValue, ElementLocation propertyLocation) { throw new NotImplementedException(); }
3999public string ExpandMetadataValueBestEffortLeaveEscaped(IMetadataTable metadataTable, string unevaluatedValue, ElementLocation metadataLocation) { throw new NotImplementedException(); }
4289ElementLocation toolsVersionLocation = Project.Xml.ProjectFileLocation;
Instance\ProjectInstance.cs (19)
153private ElementLocation _projectFileLocation;
375_projectFileLocation = ElementLocation.Create(projectPath);
432_projectFileLocation = ElementLocation.Create(projectPath);
534_projectFileLocation = ElementLocation.Create(projectFile);
648_projectFileLocation = ElementLocation.Create(fullPath);
1477public ElementLocation ProjectFileLocation
1911new PropertyReadInfo(name, ElementLocation.EmptyLocation, false, PropertyReadContext.Other));
1932_loggingContext?.ProcessPropertyWrite(new PropertyWriteInfo(name, false, ElementLocation.EmptyLocation));
2419translator.Translate(ref _projectFileLocation, ElementLocation.FactoryForDeserialization);
2825String.IsNullOrEmpty(condition) ? null : ElementLocation.EmptyLocation,
2826String.IsNullOrEmpty(inputs) ? null : ElementLocation.EmptyLocation,
2827String.IsNullOrEmpty(outputs) ? null : ElementLocation.EmptyLocation,
2828String.IsNullOrEmpty(returns) ? null : ElementLocation.EmptyLocation,
2829String.IsNullOrEmpty(keepDuplicateOutputs) ? null : ElementLocation.EmptyLocation,
2830String.IsNullOrEmpty(dependsOnTargets) ? null : ElementLocation.EmptyLocation,
2831String.IsNullOrEmpty(beforeTargets) ? null : ElementLocation.EmptyLocation,
2832String.IsNullOrEmpty(afterTargets) ? null : ElementLocation.EmptyLocation,
3089_projectFileLocation = xml.ProjectFileLocation ?? ElementLocation.EmptyLocation;
3107ElementLocation toolsVersionLocation = xml.Location;
Instance\ProjectItemGroupTaskItemInstance.cs (40)
75private ElementLocation _location;
80private ElementLocation _includeLocation;
85private ElementLocation _excludeLocation;
90private ElementLocation _removeLocation;
95private ElementLocation _matchOnMetadataLocation;
100private ElementLocation _matchOnMetadataOptionsLocation;
105private ElementLocation _keepMetadataLocation;
110private ElementLocation _removeMetadataLocation;
115private ElementLocation _keepDuplicatesLocation;
120private ElementLocation _conditionLocation;
150ElementLocation location,
151ElementLocation includeLocation,
152ElementLocation excludeLocation,
153ElementLocation removeLocation,
154ElementLocation matchOnMetadataLocation,
155ElementLocation matchOnMetadataOptionsLocation,
156ElementLocation keepMetadataLocation,
157ElementLocation removeMetadataLocation,
158ElementLocation keepDuplicatesLocation,
159ElementLocation conditionLocation,
336public ElementLocation Location
346public ElementLocation IncludeLocation
356public ElementLocation ExcludeLocation
366public ElementLocation RemoveLocation
376public ElementLocation MatchOnMetadataLocation
386public ElementLocation MatchOnMetadataOptionsLocation
396public ElementLocation KeepMetadataLocation
406public ElementLocation RemoveMetadataLocation
416public ElementLocation KeepDuplicatesLocation
426public ElementLocation ConditionLocation
453translator.Translate(ref _location, ElementLocation.FactoryForDeserialization);
454translator.Translate(ref _includeLocation, ElementLocation.FactoryForDeserialization);
455translator.Translate(ref _excludeLocation, ElementLocation.FactoryForDeserialization);
456translator.Translate(ref _removeLocation, ElementLocation.FactoryForDeserialization);
457translator.Translate(ref _keepMetadataLocation, ElementLocation.FactoryForDeserialization);
458translator.Translate(ref _removeMetadataLocation, ElementLocation.FactoryForDeserialization);
459translator.Translate(ref _keepDuplicatesLocation, ElementLocation.FactoryForDeserialization);
460translator.Translate(ref _matchOnMetadataLocation, ElementLocation.FactoryForDeserialization);
461translator.Translate(ref _matchOnMetadataOptionsLocation, ElementLocation.FactoryForDeserialization);
462translator.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)
89private ElementLocation _location;
94private ElementLocation _conditionLocation;
99private ElementLocation _inputsLocation;
104private ElementLocation _outputsLocation;
109private ElementLocation _returnsLocation;
114private ElementLocation _keepDuplicateOutputsLocation;
119private ElementLocation _dependsOnTargetsLocation;
124private ElementLocation _beforeTargetsLocation;
129private ElementLocation _afterTargetsLocation;
152ElementLocation location,
153ElementLocation conditionLocation,
154ElementLocation inputsLocation,
155ElementLocation outputsLocation,
156ElementLocation returnsLocation,
157ElementLocation keepDuplicateOutputsLocation,
158ElementLocation dependsOnTargetsLocation,
159ElementLocation beforeTargetsLocation,
160ElementLocation afterTargetsLocation,
352public ElementLocation Location
362public ElementLocation ConditionLocation
372public ElementLocation InputsLocation
382public ElementLocation OutputsLocation
392public ElementLocation ReturnsLocation
402public ElementLocation KeepDuplicateOutputsLocation
412public ElementLocation DependsOnTargetsLocation
422public ElementLocation BeforeTargetsLocation
432public ElementLocation AfterTargetsLocation
561translator.Translate(ref _location, ElementLocation.FactoryForDeserialization);
562translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
563translator.Translate(ref _inputsLocation, ElementLocation.FactoryForDeserialization);
564translator.Translate(ref _outputsLocation, ElementLocation.FactoryForDeserialization);
565translator.Translate(ref _returnsLocation, ElementLocation.FactoryForDeserialization);
566translator.Translate(ref _keepDuplicateOutputsLocation, ElementLocation.FactoryForDeserialization);
567translator.Translate(ref _dependsOnTargetsLocation, ElementLocation.FactoryForDeserialization);
568translator.Translate(ref _beforeTargetsLocation, ElementLocation.FactoryForDeserialization);
569translator.Translate(ref _afterTargetsLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectTaskInstance.cs (49)
58private CopyOnWriteDictionary<(string, ElementLocation)> _parameters;
70private ElementLocation _location;
75private ElementLocation _conditionLocation;
80private ElementLocation _continueOnErrorLocation;
85private ElementLocation _msbuildRuntimeLocation;
90private ElementLocation _msbuildArchitectureLocation;
130ElementLocation location,
140new CopyOnWriteDictionary<(string, ElementLocation)>(StringComparer.OrdinalIgnoreCase),
143condition == string.Empty ? null : ElementLocation.EmptyLocation,
144continueOnError == string.Empty ? null : ElementLocation.EmptyLocation,
145msbuildRuntime == string.Empty ? null : ElementLocation.EmptyLocation,
146msbuildArchitecture == string.Empty ? null : ElementLocation.EmptyLocation)
156CopyOnWriteDictionary<(string, ElementLocation)> parameters,
158ElementLocation location,
159ElementLocation conditionLocation,
160ElementLocation continueOnErrorElementLocation,
161ElementLocation msbuildRuntimeLocation,
162ElementLocation msbuildArchitectureLocation)
239foreach (KeyValuePair<string, (string, ElementLocation)> parameter in _parameters)
248internal IDictionary<string, (string, ElementLocation)> TestGetParameters => _parameters;
262public ElementLocation ContinueOnErrorLocation
270public ElementLocation MSBuildRuntimeLocation
278public ElementLocation MSBuildArchitectureLocation
286public override ElementLocation Location
294public override ElementLocation ConditionLocation
302internal IDictionary<string, (string, ElementLocation)> ParametersForBuild
329_parameters[parameterName] = (unevaluatedValue, ElementLocation.EmptyLocation);
342_outputs.Add(new ProjectTaskOutputItemInstance(itemName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, condition == null ? null : ElementLocation.EmptyLocation));
355_outputs.Add(new ProjectTaskOutputPropertyInstance(propertyName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, condition == null ? null : ElementLocation.EmptyLocation));
372translator.Translate(ref _location, ElementLocation.FactoryForDeserialization);
373translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
374translator.Translate(ref _continueOnErrorLocation, ElementLocation.FactoryForDeserialization);
375translator.Translate(ref _msbuildRuntimeLocation, ElementLocation.FactoryForDeserialization);
376translator.Translate(ref _msbuildArchitectureLocation, ElementLocation.FactoryForDeserialization);
378IDictionary<string, (string, ElementLocation)> localParameters = _parameters;
383count => new CopyOnWriteDictionary<(string, ElementLocation)>());
387_parameters = (CopyOnWriteDictionary<(string, ElementLocation)>)localParameters;
396private static void ParametersValueTranslator(ITranslator translator, ref (string, ElementLocation) value)
401var item2 = value.Item2;
404translator.Translate(ref item2, ElementLocation.FactoryForDeserialization);
409var item2 = default(ElementLocation);
412translator.Translate(ref item2, ElementLocation.FactoryForDeserialization);
Instance\ProjectTaskOutputItemInstance.cs (16)
38private ElementLocation _location;
43private ElementLocation _itemTypeLocation;
48private ElementLocation _taskParameterLocation;
53private ElementLocation _conditionLocation;
58internal ProjectTaskOutputItemInstance(string itemType, string taskParameter, string condition, ElementLocation location, ElementLocation itemTypeLocation, ElementLocation taskParameterLocation, ElementLocation conditionLocation)
107public override ElementLocation Location
115public override ElementLocation ConditionLocation
123public override ElementLocation TaskParameterLocation
131public ElementLocation ItemTypeLocation
147translator.Translate(ref _location, ElementLocation.FactoryForDeserialization);
148translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
149translator.Translate(ref _itemTypeLocation, ElementLocation.FactoryForDeserialization);
150translator.Translate(ref _taskParameterLocation, ElementLocation.FactoryForDeserialization);
Instance\ProjectTaskOutputPropertyInstance.cs (16)
38private ElementLocation _location;
43private ElementLocation _propertyNameLocation;
48private ElementLocation _taskParameterLocation;
53private ElementLocation _conditionLocation;
58internal ProjectTaskOutputPropertyInstance(string propertyName, string taskParameter, string condition, ElementLocation location, ElementLocation propertyNameLocation, ElementLocation taskParameterLocation, ElementLocation conditionLocation)
107public ElementLocation PropertyNameLocation
115public override ElementLocation Location
123public override ElementLocation ConditionLocation
131public override ElementLocation TaskParameterLocation
147translator.Translate(ref _location, ElementLocation.FactoryForDeserialization);
148translator.Translate(ref _conditionLocation, ElementLocation.FactoryForDeserialization);
149translator.Translate(ref _propertyNameLocation, ElementLocation.FactoryForDeserialization);
150translator.Translate(ref _taskParameterLocation, ElementLocation.FactoryForDeserialization);
Instance\TaskFactories\AssemblyTaskFactory.cs (4)
15using ElementLocation = Microsoft.Build.Construction.ElementLocation;
257ElementLocation elementLocation,
316internal ITask CreateTaskInstance(ElementLocation taskLocation, TaskLoggingContext taskLoggingContext, IBuildComponentHost buildComponentHost, IDictionary<string, string> taskIdentityParameters,
419internal bool TaskNameCreatableByFactory(string taskName, IDictionary<string, string> taskIdentityParameters, string taskProjectFile, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation)
Instance\TaskRegistry.cs (6)
464ElementLocation elementLocation)
520ElementLocation elementLocation,
768ElementLocation elementLocation)
1265internal bool CanTaskBeCreatedByFactory(string taskName, string taskProjectFile, IDictionary<string, string> taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation)
1355internal TaskFactoryWrapper GetTaskFactoryFromRegistrationRecord(string taskName, string taskProjectFile, IDictionary<string, string> taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation)
1369private bool GetTaskFactory(TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, string taskProjectFile)