Implemented interface member:
property
File
Microsoft.Build.Shared.IMSBuildElementLocation.File
3 overrides of File
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (2)
269
public override string
File
345
public override string
File
Microsoft.Build.Engine.UnitTests (1)
MockElementLocation.cs (1)
42
public override string
File
57 references to File
Microsoft.Build (42)
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
53
projectLoggingContext.BuildEventContext, target.Name, projectFullPath, target.Location.
File
,
114
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)
466
originalItem.Location.
File
,
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
563
TargetFile = currentTargetEntry.Target.Location.
File
,
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
390
TargetFile = _target.Location.
File
,
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
195
return _taskLocation.
File
;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
1389
string parameterLocationEscaped = EscapingUtilities.EscapeWithCaching(parameterLocation.
File
);
1521
_batchBucket.Lookup.AddNewItem(new ProjectItemInstance(_projectInstance, outputTargetName, EscapingUtilities.Escape(output), EscapingUtilities.Escape(parameterLocation.
File
)));
Construction\ProjectRootElement.cs (4)
396
get => Link != null ? RootLink.FullPath : _projectFileLocation?.
File
;
407
string oldFullPath = _projectFileLocation?.
File
;
1529
using (var projectWriter = new ProjectWriter(_projectFileLocation.
File
, saveEncoding))
1537
FileInfo fileInfo = FileUtilities.GetFileInfoNoThrow(_projectFileLocation.
File
);
Construction\Solution\SolutionProjectGenerator.cs (1)
1017
if (traversalInstance.Targets[targetName].Location.
File
== traversalProject.FullPath)
Definition\Project.cs (2)
1809
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.
File
);
3585
ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(Xml, otherXml), "OM_CannotModifyEvaluatedObjectInImportedFile", otherXml.Location.
File
);
ElementLocation\ElementLocation.cs (3)
74
get { return GetLocationString(
File
, Line, Column); }
120
if (!String.Equals(this.
File
, that.File, StringComparison.OrdinalIgnoreCase))
145
string file =
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 (9)
225
string.IsNullOrEmpty(projectRootElement.ProjectFileLocation.
File
) ? "(null)" : projectRootElement.ProjectFileLocation.
File
);
315
MSBuildEventSource.Log.EvaluateStart(root.ProjectFileLocation.
File
);
356
MSBuildEventSource.Log.EvaluateStop(root.ProjectFileLocation.
File
);
616
string projectFile = String.IsNullOrEmpty(_projectRootElement.ProjectFileLocation.
File
) ? "(null)" : _projectRootElement.ProjectFileLocation.
File
;
635
MSBuildEventSource.Log.EvaluatePass0Start(_projectRootElement.ProjectFileLocation.
File
);
1039
_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)
116
MSBuildEventSource.Log.ParseStart(projectRootElement.ProjectFileLocation.
File
);
121
MSBuildEventSource.Log.ParseStop(projectRootElement.ProjectFileLocation.
File
);
Instance\ProjectInstance.cs (1)
1198
get => _projectFileLocation?.
File
?? string.Empty;
Instance\ProjectTargetInstance.cs (1)
346
get { return _location.
File
; }
Instance\ProjectTargetInstanceChild.cs (1)
31
get { return Location.
File
; }
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
385
taskLocation.
File
,
Instance\TaskFactoryLoggingHost.cs (1)
135
return _elementLocation.
File
;
Instance\TaskRegistry.cs (1)
1520
new BuildEventFileInfo(elementLocation.
File
, elementLocation.Line, elementLocation.Column),
Xml\ProjectXmlUtilities.cs (2)
101
if (Path.GetExtension(element.Location.
File
).Equals(".dwproj", StringComparison.OrdinalIgnoreCase))
109
throw new UnbuildableProjectTypeException(element.Location.
File
);
Microsoft.Build.Engine.OM.UnitTests (10)
Construction\ElementLocationPublic_Tests.cs (6)
35
Assert.Equal(project.FullPath, target.Location.
File
);
36
Assert.Equal(project.FullPath, target.OutputsLocation.
File
);
52
Assert.Equal(project.FullPath, target.Location.
File
);
53
Assert.Equal(project.FullPath, target.OutputsLocation.
File
);
57
Assert.Equal(project.FullPath, target.Location.
File
);
58
Assert.Equal(project.FullPath, target.OutputsLocation.
File
);
Construction\ProjectRootElement_Tests.cs (2)
1768
projectFileAssert.Invoke(initialLocation, reloadLocation, rootElement.ProjectFileLocation.
File
);
1769
projectFileAssert.Invoke(initialLocation, reloadLocation, rootElement.AllChildren.Last().Location.
File
);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
264
Assert.Equal(expected.
File
, actual.
File
);
Microsoft.Build.Engine.UnitTests (2)
BackEnd\MockTaskBuilder.cs (2)
102
lookupForInference.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.
File
));
106
lookupForExecution.AddNewItem(new ProjectItemInstance(requestEntry.RequestConfiguration.Project, taskInstance.Name + "_Item", "Item", task.Location.
File
));
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
2045
if (!string.Equals(x.
File
, y.
File
, StringComparison.OrdinalIgnoreCase))
2055
return obj.Line.GetHashCode() ^ obj.Column.GetHashCode() ^ obj.
File
.GetHashCode();