2 implementations of File
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (1)
52public abstract string File { get; }
ElementLocation\RegistryLocation.cs (1)
49public string File
31 references to File
Microsoft.Build (28)
BackEnd\Components\Logging\LoggingContext.cs (1)
147location.File,
BackEnd\Shared\EventsCreatorHelper.cs (2)
49location.File, 77location.File,
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (6)
64else if (CheckScopeClassifier.IsActionInObservedScope(_scope, context.Data.EnvironmentVariableLocation.File, context.Data.ProjectFilePath)) 86if (!CheckScopeClassifier.IsActionInObservedScope(_scope, context.Data.EnvironmentVariableLocation.File, projectPath)) 113Location.File == other.Location.File && 120hashCode = hashCode * 31 + (Location.File != null ? Location.File.GetHashCode() : 0);
BuildCheck\Infrastructure\CheckScopeClassifier.cs (1)
36=> IsActionInObservedScope(scope, location?.File, projectFileFullPath);
Definition\ProjectProperty.cs (2)
127EnvironmentVariableReadEventArgs args = new(Name, EvaluatedValueEscapedInternal, location.File, location.Line, location.Column); 134_location = (location.File, location.Line, location.Column);
Errors\ProjectErrorUtilities.cs (1)
1068location.File,
Evaluation\Expander.cs (1)
339T itemToAdd = itemFactory.CreateItem(split, elementLocation.File);
Evaluation\Expander.Function.cs (2)
490string startingDirectory = String.IsNullOrWhiteSpace(elementLocation.File) ? String.Empty : Path.GetDirectoryName(elementLocation.File);
Evaluation\Expander.ItemExpander.cs (4)
398T newItem = itemFactory.CreateItem(expandedItemVector, elementLocation.File); 426result.Add(itemFactory.CreateItem(itemSpec, elementLocation.File)); 431? itemFactory.CreateItem(originalItem, elementLocation.File) // itemspec came from direct item reference, no transforms 432: itemFactory.CreateItem(itemSpec, originalItem, elementLocation.File)); // itemspec came from a transform and is different from its original item
Evaluation\Expander.PropertyExpander.cs (1)
590return ExpandMSBuildThisFileProperty(propertyName, startIndex, length, _elementLocation.File);
Evaluation\Profiler\EvaluationProfiler.cs (1)
79return _shouldTrackElements ? new EvaluationFrame(this, CurrentLocation.WithFileLineAndCondition(location.File, location.Line, condition)) : null;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
311location?.File, 349location?.File, 471location.File, 491location.File,
Instance\ProjectPropertyInstance.cs (2)
119EnvironmentVariableReadEventArgs args = new(Name, _escapedValue, location.File, location.Line, location.Column); 126_location = (location.File, location.Line, location.Column);
Microsoft.Build.Framework (3)
BuildCheck\BuildCheckEventArgs.cs (3)
162: base(code: result.Code, file: result.Location.File, lineNumber: result.Location.Line, columnNumber: result.Location.Column, message: result.FormatMessage()) => 185: base(code: result.Code, file: result.Location.File, lineNumber: result.Location.Line, columnNumber: result.Location.Column, message: result.FormatMessage()) 208: base(code: result.Code, file: result.Location.File, lineNumber: result.Location.Line, columnNumber: result.Location.Column, message: result.FormatMessage())