39 writes to FullPath
Microsoft.Build (7)
Construction\ProjectRootElement.cs (2)
791
{
FullPath
= path };
1579
FullPath
= path;
Construction\Solution\SolutionProjectGenerator.cs (2)
863
traversalProject.
FullPath
= _solutionFile.FullPath + ".metaproj";
995
traversalProject.
FullPath
= path;
Definition\Project.cs (2)
764
set => Xml.
FullPath
= value;
2414
set => Xml.
FullPath
= value;
Evaluation\Evaluator.cs (1)
1921
project.
FullPath
= projectPath;
Microsoft.Build.Engine.OM.UnitTests (27)
Construction\ElementLocationPublic_Tests.cs (4)
30
project.
FullPath
= "c:\\x";
47
project.
FullPath
= "c:\\x";
55
project.
FullPath
= "c:\\y";
68
project.
FullPath
= "c:\\x";
Construction\ProjectRootElement_Tests.cs (8)
161
project.
FullPath
= "X";
192
projectXml1.
FullPath
= Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc");
208
projectXml1.
FullPath
= @"xyz\abc";
227
projectXml1.
FullPath
= @"xyz\abc";
246
projectXml1.
FullPath
= Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc");
260
projectXml1.
FullPath
= Microsoft.Build.Shared.FileUtilities.GetTemporaryFile();
263
projectXml2.
FullPath
= projectXml1.FullPath;
763
project.
FullPath
= FileUtilities.GetTemporaryFile();
Definition\Project_Tests.cs (3)
716
xml.
FullPath
= file;
752
xml.
FullPath
= file;
790
xml.
FullPath
= file;
Definition\ProjectCollection_Tests.cs (2)
1360
pre.
FullPath
= FileUtilities.GetTemporaryFile();
1423
pre.
FullPath
= FileUtilities.GetTemporaryFile();
Instance\ProjectInstance_Tests.cs (6)
421
projA.
FullPath
= Path.Combine(Path.GetTempPath(), "a.proj");
422
projB.
FullPath
= Path.Combine(Path.GetTempPath(), "b.proj");
457
projA.
FullPath
= Path.Combine(Path.GetTempPath(), "a.proj");
458
projB.
FullPath
= Path.Combine(Path.GetTempPath(), "b.proj");
505
projA.
FullPath
= Path.Combine(tempDir, "a.proj");
506
projB.
FullPath
= Path.Combine(tempDir, "b.proj");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
44
newReal.Xml.
FullPath
= tempPath;
59
xmlPair.VerifySetter(this.StdGroup.Disk.GetAbsolutePath("tempRenamed"), (p) => p.FullPath, (p, v) => p.
FullPath
= v);
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (1)
81
newReal.Xml.
FullPath
= tempPath;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
37
public string FullPath { get => this.ProjectXml.FullPath; set => this.ProjectXml.
FullPath
= value; }
Microsoft.Build.Engine.UnitTests (4)
BackEnd\BuildManager_Tests.cs (2)
3701
mainRootElement.
FullPath
= testFiles.CreatedFiles[1];
3852
root.
FullPath
= Path.GetTempFileName();
Evaluation\Preprocessor_Tests.cs (1)
361
twoXml.
FullPath
= "p2";
ExpressionTreeExpression_Tests.cs (1)
372
xml.
FullPath
= @"c:\abc\foo.proj";
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
103
xml.
FullPath
= path;
147 references to FullPath
Microsoft.Build (76)
Construction\ProjectRootElement.cs (7)
383
public string EscapedFullPath => _escapedFullPath ?? (_escapedFullPath = ProjectCollection.Escape(
FullPath
));
438
MarkDirty("Set project FullPath to '{0}'",
FullPath
);
1624
ErrorUtilities.VerifyThrowInvalidOperation(!string.IsNullOrEmpty(
FullPath
), "ValueNotSet", $"{nameof(ProjectRootElement)}.{nameof(
FullPath
)}");
1626
ReloadFrom(
FullPath
, throwIfUnsavedChanges, preserveFormatting);
1657
/// Reloading from an XMLReader will retain the previous root element location (<see cref="
FullPath
"/>, <see cref="DirectoryPath"/>, <see cref="ProjectFileLocation"/>).
1680
document.FullPath =
FullPath
;
Construction\Solution\SolutionProjectGenerator.cs (2)
992
string path = traversalProject.
FullPath
;
1017
if (traversalInstance.Targets[targetName].Location.File == traversalProject.
FullPath
)
Definition\Project.cs (4)
762
get => Xml.
FullPath
;
2089
Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1} - {2}] [PC Hash {3}]", reason, FullPath, import.ImportedProject.
FullPath
== FullPath ? String.Empty : import.ImportedProject.
FullPath
, ProjectCollection.GetHashCode()));
2412
get => Xml.
FullPath
;
Definition\ProjectCollection.cs (1)
1393
ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.
FullPath
, conflictingProject.FullPath);
Definition\ProjectItem.cs (1)
862
value = BuiltInMetadata.GetMetadataValueEscaped(_project.DirectoryPath, _evaluatedIncludeBeforeWildcardExpansionEscaped, _evaluatedIncludeEscaped, this.Xml.ContainingProject.
FullPath
, name, ref _fullPath);
Evaluation\Evaluator.cs (30)
268
if (projectRootElement.
FullPath
!= null)
410
items.Add(itemFactory.CreateItem(includeSplitFileEscaped, includeSplitEscaped, itemElement.ContainingProject.
FullPath
));
810
string output = String.Format(CultureInfo.CurrentUICulture, "###: MSBUILD: Evaluating or reevaluating project {0} with {1} global properties and {2} tools version, child count {3}, CurrentSolutionConfigurationContents hash {4} other properties:\n{5}", _projectRootElement.
FullPath
, globalPropertiesCount, _data.Toolset.ToolsVersion, _projectRootElement.Count, hash, propertyDump);
862
using (_evaluationProfiler.TrackFile(currentProjectOrImport.
FullPath
))
1159
if (String.IsNullOrEmpty(_projectRootElement.
FullPath
))
1173
string projectFileWithoutExtension = EscapingUtilities.Escape(Path.GetFileNameWithoutExtension(_projectRootElement.
FullPath
));
1174
string projectExtension = EscapingUtilities.Escape(Path.GetExtension(_projectRootElement.
FullPath
));
1698
importElement.ContainingProject.
FullPath
,
1706
ProjectFile = importElement.ContainingProject.
FullPath
1813
ProjectFile = importElement.ContainingProject.
FullPath
,
1916
string projectPath = _projectRootElement.
FullPath
+ ".SdkResolver." + propertiesAndItemsHash + ".proj";
1986
importElement.ContainingProject.
FullPath
,
1992
ProjectFile = importElement.ContainingProject.
FullPath
,
2047
importElement.ContainingProject.
FullPath
,
2053
ProjectFile = importElement.ContainingProject.
FullPath
,
2082
if (String.Equals(_projectRootElement.
FullPath
, importFileUnescaped, StringComparison.OrdinalIgnoreCase) /* We are trying to import ourselves */)
2099
string importedBy = importElement.ContainingProject.
FullPath
?? String.Empty;
2125
parenthesizedProjectLocation = "[" + _projectRootElement.
FullPath
+ "]";
2177
_streamImports.Add(importedProjectElement.
FullPath
);
2187
importedProjectElement.
FullPath
,
2188
importElement.ContainingProject.
FullPath
,
2193
ImportedProjectFile = importedProjectElement.
FullPath
,
2195
ProjectFile = importElement.ContainingProject.
FullPath
2219
importElement.ContainingProject.
FullPath
,
2225
ProjectFile = importElement.ContainingProject.
FullPath
,
2274
importElement.ContainingProject.
FullPath
,
2280
ProjectFile = importElement.ContainingProject.
FullPath
,
2350
string importedBy = importElement.ContainingProject.
FullPath
;
2570
? $"{_lastModifiedProject.
FullPath
}{streamImports}"
2571
: $"{_lastModifiedProject.
FullPath
}{streamImports};{oldValue.EvaluatedValue}",
Evaluation\LazyItemEvaluator.cs (1)
135
var clonedItem = itemFactory.CreateItem(Item, OriginatingItemElement.ContainingProject.
FullPath
);
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
89
itemsToAdd.Add(_itemFactory.CreateItem(value, value, _itemElement.ContainingProject.
FullPath
));
132
itemsToAdd.Add(_itemFactory.CreateItem(includeSplitFileEscaped, glob, _itemElement.ContainingProject.
FullPath
));
Evaluation\Preprocessor.cs (2)
313
$"\r\n{new String('=', 140)}\r\n{importTag}\r\n\r\n{resolved.
FullPath
.Replace("--", "__")}\r\n{new String('=', 140)}\r\n"));
315
_filePaths.Push(resolved.
FullPath
);
Evaluation\ProjectParser.cs (1)
136
ProjectErrorUtilities.VerifyThrowInvalidProject(element.Name != XMakeElements.visualStudioProject, element.Location, "ProjectUpgradeNeeded", _project.
FullPath
);
Evaluation\ProjectRootElementCache.cs (14)
211
using (var xtr = XmlReaderExtension.Create(projectRootElement.
FullPath
, projectRootElement.ProjectRootElementCache.LoadProjectsReadOnly))
352
projectRootElement.
FullPath
.Equals(projectFile, StringComparison.OrdinalIgnoreCase),
355
projectRootElement.
FullPath
);
521
if (projectRootElement.
FullPath
!= null)
525
_weakCache.Remove(projectRootElement.
FullPath
);
539
ErrorUtilities.VerifyThrowInternalNull(projectRootElement.
FullPath
, "FullPath");
559
_weakCache.TryGetValue(projectRootElement.
FullPath
, out existingWeakEntry);
566
DebugTraceCache("Adding: ", projectRootElement.
FullPath
);
567
_weakCache[projectRootElement.
FullPath
] = projectRootElement;
607
DebugTraceCache("Shedding: ", node.Value.
FullPath
);
620
DebugTraceCache("Forgetting: ", projectRootElement.
FullPath
);
622
_weakCache.Remove(projectRootElement.
FullPath
);
630
DebugTraceCache("Out of date dropped from XML cache: ", projectRootElement.
FullPath
);
640
if (_weakCache.TryGetValue(projectRootElement.
FullPath
, out var cached) && cached == projectRootElement)
Evaluation\SimpleProjectRootElementCache.cs (5)
67
rootElement.
FullPath
.Equals(key, StringComparison.OrdinalIgnoreCase),
70
rootElement.
FullPath
);
83
if (_cache.TryAdd(projectRootElement.
FullPath
, projectRootElement))
127
if (projectRootElement.
FullPath
!= null)
129
_cache.TryRemove(projectRootElement.
FullPath
, out _);
Instance\ProjectInstance.cs (5)
1845
_importPaths.Add(import.
FullPath
);
1854
_importPathsIncludingDuplicates.Add(import.
FullPath
);
3239
importPaths.Add(resolvedImport.ImportedProject.
FullPath
);
3252
importPathsIncludingDuplicates.Add(resolvedImport.ImportedProject.
FullPath
);
3426
return import.ImportedProject.
FullPath
;
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
46
/// Access to remote <see cref="ProjectRootElement.
FullPath
"/>.
Microsoft.Build.Engine.OM.UnitTests (56)
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 (10)
163
Assert.Equal(project.
FullPath
, Path.Combine(Directory.GetCurrentDirectory(), "X"));
178
ProjectRootElement projectXml2 = ProjectRootElement.Open(projectXml1.
FullPath
);
263
projectXml2.FullPath = projectXml1.
FullPath
;
645
Assert.Equal(path, project.
FullPath
);
677
Assert.Equal(path, project.
FullPath
);
764
string projectFullPath = project.
FullPath
;
1303
var xml0 = ProjectRootElement.TryOpen(projectXml.
FullPath
, projectCollection, preserveFormatting: true);
1306
var xml1 = ProjectRootElement.TryOpen(projectXml.
FullPath
, projectCollection, preserveFormatting: false);
1309
var xml2 = ProjectRootElement.TryOpen(projectXml.
FullPath
, projectCollection, preserveFormatting: null);
1767
projectFileAssert.Invoke(initialLocation, reloadLocation, EmptyIfNull(rootElement.
FullPath
));
Definition\Project_Tests.cs (25)
2558
zero.AddImport(one.
FullPath
);
2559
zero.AddImport(two.
FullPath
);
2560
zero.AddImport(two.
FullPath
); // Duplicated import: only the first one should be entered
2561
zero.AddImport(zero.
FullPath
); // Ignored self import
2565
one.AddImport(three.
FullPath
);
2569
one.AddImport(four.
FullPath
).Condition = "false"; // False condition; should not be entered
3917
eventArgs.ProjectFile.ShouldBe(pre.
FullPath
);
3922
logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.
FullPath
}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to false condition; ( \'$(Something)\' == \'nothing\' ) was evaluated as ( \'\' == \'nothing\' ).");
3958
eventArgs.ProjectFile.ShouldBe(pre.
FullPath
);
3963
logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.
FullPath
}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files.");
4003
eventArgs.ProjectFile.ShouldBe(pre.
FullPath
);
4008
logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.
FullPath
}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being empty.");
4050
eventArgs.ProjectFile.ShouldBe(pre.
FullPath
);
4055
logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.
FullPath
}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being invalid.");
4090
eventArgs.ProjectFile.ShouldBe(pre.
FullPath
);
4095
logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.
FullPath
}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the expression evaluating to an empty string.");
4133
eventArgs.ProjectFile.ShouldBe(pre.
FullPath
);
4138
logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.
FullPath
}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file not existing.");
4176
eventArgs.ProjectFile.ShouldBe(pre.
FullPath
);
4181
logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.
FullPath
}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files.");
4206
var import = pre2.AddImport(pre1.
FullPath
);
4219
eventArgs.ImportedProjectFile.ShouldBe(pre1.
FullPath
);
4221
eventArgs.ProjectFile.ShouldBe(pre2.
FullPath
);
4227
logger.AssertLogContains($"Importing project \"{pre1.
FullPath
}\" into project \"{pre2.
FullPath
}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}).");
Definition\ProjectCollection_Tests.cs (1)
726
ProjectCollection.GlobalProjectCollection.LoadProject(xml.
FullPath
);
Definition\ProtectImports_Tests.cs (3)
529
Assert.Equal(_importFilename, item.Xml.ContainingProject.
FullPath
); // "Item was not found in the imported project."
620
Assert.Equal(_importFilename, property.Xml.ContainingProject.
FullPath
); // "Property was not found in the imported project."
636
Assert.Null(item.Xml.ContainingProject.
FullPath
); // "Item was not found in the project." // null because XML is in-memory
Instance\ProjectInstance_Tests.cs (6)
431
Assert.Equal(projB.
FullPath
, projBInstanceItem.GetMetadataValue(CapturedMetadataName));
432
Assert.Equal(projA.
FullPath
, projAInstanceItem.GetMetadataValue(CapturedMetadataName));
473
Assert.Equal(projB.
FullPath
, projBInstanceItem.GetMetadataValue(CapturedMetadataName));
474
Assert.Equal(projA.
FullPath
, projAInstanceItem.GetMetadataValue(CapturedMetadataName));
515
Assert.Equal(projA.
FullPath
, projAInstanceItem.GetMetadataValue(CapturedMetadataName));
516
Assert.Equal(projB.
FullPath
, projBInstanceItem.GetMetadataValue(CapturedMetadataName));
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
525
Assert.Equal(realXml.
FullPath
, viewXml.
FullPath
);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
59
xmlPair.VerifySetter(this.StdGroup.Disk.GetAbsolutePath("tempRenamed"), (p) => p.
FullPath
, (p, v) => p.FullPath = v);
136
Assert.True(string.IsNullOrEmpty(clone.
FullPath
));
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
37
public string FullPath { get => this.ProjectXml.
FullPath
; set => this.ProjectXml.FullPath = value; }
Microsoft.Build.Engine.UnitTests (14)
Definition\Project_Internal_Tests.cs (2)
280
projectRootElement.
FullPath
,
335
using (XmlReader xmlReader = XmlReader.Create(projectRootElement.
FullPath
))
Evaluation\Evaluator_Tests.cs (2)
1011
bool circularImportsAreRecorded = project.ImportsIncludingDuplicates.Any(resolvedImport => string.Equals(resolvedImport.ImportingElement.ContainingProject.
FullPath
, importPath2, StringComparison.OrdinalIgnoreCase));
1479
ProjectRootElement importXml = ProjectRootElement.Open(project.Items.ElementAt(0).Xml.ContainingProject.
FullPath
);
Evaluation\Preprocessor_Tests.cs (5)
779
File.Delete(xml1.
FullPath
);
780
File.Delete(xml2.
FullPath
);
781
File.Delete(xml3.
FullPath
);
994
var virtualImport = project.Imports.First(i => i.ImportedProject.
FullPath
.StartsWith(projectPath + ".SdkResolver"));
995
string virtualProjectPath = virtualImport.ImportedProject.
FullPath
;
Evaluation\ProjectSdkImplicitImport_Tests.cs (4)
144
Assert.Equal(_sdkPropsPath, initialResolvedImport.ImportedProject.
FullPath
);
148
Assert.Equal(_sdkTargetsPath, finalResolvedImport.ImportedProject.
FullPath
);
825
Assert.NotNull(property?.Xml?.ContainingProject?.
FullPath
);
827
Assert.Equal(expectedContainingProjectPath, property.Xml.ContainingProject.
FullPath
);
Instance\ProjectInstance_Internal_Tests.cs (1)
900
projectRootElement.
FullPath
,
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
289
UsingTaskData taskData = new UsingTaskData(evaluatedTaskName, evaluatedTaskAssemblyPath, pre.
FullPath
);