Implemented interface member:
property
File
Microsoft.Build.Shared.IMSBuildElementLocation.File
3 overrides of File
Microsoft.Build (3)
ElementLocation\ElementLocation.cs (3)
302
public override string
File
=> _file;
347
public override string
File
=> _file;
397
public override string
File
=> _file;
43 references to File
Microsoft.Build (43)
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (2)
226
MSBuildEventSource.Log.StrictModeDirectoryScanStart(BuildId, location.
File
);
242
MSBuildEventSource.Log.StrictModeDirectoryScanStop(BuildId, location.
File
);
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
46
projectLoggingContext.BuildEventContext, target.Name, projectFullPath, target.Location.
File
,
100
LoggingService.LogTargetFinished(BuildEventContext, _target.Name, projectFullPath, _target.Location.
File
, success, targetOutputWrapper);
BackEnd\Components\Logging\TaskLoggingContext.cs (2)
53
task.Location.
File
,
137
_task.Location.
File
,
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
476
originalItem.Location.
File
,
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
594
TargetFile = currentTargetEntry.Target.Location.
File
,
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
388
TargetFile = _target.Location.
File
,
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
201
return _taskLocation.
File
;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
1992
parameterLocationEscaped ??= EscapingUtilities.Escape(parameterLocation.
File
, cache: true);
2093
parameterLocationEscaped ??= EscapingUtilities.Escape(parameterLocation.
File
, cache: true);
Construction\ProjectRootElement.cs (4)
416
get => Link != null ? RootLink.FullPath : _projectFileLocation?.
File
;
427
string oldFullPath = _projectFileLocation?.
File
;
1555
using (var projectWriter = new ProjectWriter(_projectFileLocation.
File
, saveEncoding))
1563
FileInfo fileInfo = FileUtilities.GetFileInfoNoThrow(_projectFileLocation.
File
);
Construction\Solution\SolutionProjectGenerator.cs (1)
1064
if (traversalInstance.Targets[targetName].Location.
File
== traversalProject.FullPath)
Definition\Project.cs (2)
1833
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.
File
);
3470
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.
File
);
ElementLocation\ElementLocation.cs (5)
72
public string LocationString => GetLocationString(
File
, Line, Column);
112
&& StringComparer.OrdinalIgnoreCase.Equals(
File
, other.
File
);
134
string file =
File
;
319
ElementLocation { Line: 0, Column: 0 } other => StringComparer.OrdinalIgnoreCase.Equals(File, other.
File
),
ElementLocation\XmlAttributeWithLocation.cs (1)
77
if (!String.Equals(_elementLocation.
File
, ownerDocumentWithLocation.FullPath ?? String.Empty, StringComparison.OrdinalIgnoreCase))
ElementLocation\XmlElementWithLocation.cs (1)
97
if (!String.Equals(_elementLocation.
File
, ownerDocumentWithLocation.FullPath ?? String.Empty, StringComparison.OrdinalIgnoreCase))
Evaluation\Evaluator.cs (7)
354
string projectFile = root.ProjectFileLocation.
File
?? string.Empty;
416
ElementLocation.Create(root.ProjectFileLocation.
File
),
709
string projectFile = string.IsNullOrEmpty(_projectRootElement.ProjectFileLocation.
File
) ? "(null)" : _projectRootElement.ProjectFileLocation.
File
;
735
MSBuildEventSource.Log.EvaluatePass0Start(_projectRootElement.ProjectFileLocation.
File
);
1200
_evaluationLoggingContext.LogComment(MessageImportance.Low, "OverridingTarget", otherTarget.Name, otherTarget.Location.
File
, targetName, targetElement.Location.
File
);
Evaluation\Profiler\EvaluationProfiler.cs (1)
72
return _shouldTrackElements ? new EvaluationFrame(this, CurrentLocation.WithFileLineAndElement(element.Location.
File
, element.Location.Line, element)) : null;
Evaluation\ProjectParser.cs (2)
121
MSBuildEventSource.Log.ParseStart(projectRootElement.ProjectFileLocation.
File
);
126
MSBuildEventSource.Log.ParseStop(projectRootElement.ProjectFileLocation.
File
);
Instance\ProjectInstance.cs (1)
1274
get => _projectFileLocation?.
File
?? string.Empty;
Instance\ProjectTargetInstance.cs (1)
345
get { return _location.
File
; }
Instance\ProjectTargetInstanceChild.cs (1)
28
get { return Location.
File
; }
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
399
taskLocation.
File
,
Instance\TaskFactoryEngineContext.cs (1)
148
return _elementLocation.
File
;
Xml\ProjectXmlUtilities.cs (2)
93
if (Path.GetExtension(element.Location.
File
).Equals(".dwproj", StringComparison.OrdinalIgnoreCase))
101
throw new UnbuildableProjectTypeException(element.Location.
File
);