2 implementations of File
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (1)
52
public abstract string
File
{ get; }
ElementLocation\RegistryLocation.cs (1)
49
public string
File
31 references to File
Microsoft.Build (28)
BackEnd\Components\Logging\LoggingContext.cs (1)
147
location.
File
,
BackEnd\Shared\EventsCreatorHelper.cs (2)
49
location.
File
,
77
location.
File
,
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (6)
64
else if (CheckScopeClassifier.IsActionInObservedScope(_scope, context.Data.EnvironmentVariableLocation.
File
, context.Data.ProjectFilePath))
86
if (!CheckScopeClassifier.IsActionInObservedScope(_scope, context.Data.EnvironmentVariableLocation.
File
, projectPath))
113
Location.
File
== other.Location.
File
&&
120
hashCode = hashCode * 31 + (Location.
File
!= null ? Location.
File
.GetHashCode() : 0);
BuildCheck\Infrastructure\CheckScopeClassifier.cs (1)
36
=> IsActionInObservedScope(scope, location?.
File
, projectFileFullPath);
Definition\ProjectProperty.cs (2)
127
EnvironmentVariableReadEventArgs args = new(Name, EvaluatedValueEscapedInternal, location.
File
, location.Line, location.Column);
134
_location = (location.
File
, location.Line, location.Column);
Errors\ProjectErrorUtilities.cs (1)
1068
location.
File
,
Evaluation\Expander.cs (1)
339
T itemToAdd = itemFactory.CreateItem(split, elementLocation.
File
);
Evaluation\Expander.Function.cs (2)
490
string startingDirectory = String.IsNullOrWhiteSpace(elementLocation.
File
) ? String.Empty : Path.GetDirectoryName(elementLocation.
File
);
Evaluation\Expander.ItemExpander.cs (4)
398
T newItem = itemFactory.CreateItem(expandedItemVector, elementLocation.
File
);
426
result.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)
590
return ExpandMSBuildThisFileProperty(propertyName, startIndex, length, _elementLocation.
File
);
Evaluation\Profiler\EvaluationProfiler.cs (1)
79
return _shouldTrackElements ? new EvaluationFrame(this, CurrentLocation.WithFileLineAndCondition(location.
File
, location.Line, condition)) : null;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
311
location?.
File
,
349
location?.
File
,
471
location.
File
,
491
location.
File
,
Instance\ProjectPropertyInstance.cs (2)
119
EnvironmentVariableReadEventArgs 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())