50 writes to FullPath
Microsoft.Build.Engine.OM.UnitTests (32)
Definition\ProjectCollection_Tests.cs (29)
149
var project = new Project {
FullPath
= "c:\\x" };
323
var project1 = new Project {
FullPath
= "c:\\1" };
326
var project2 = new Project(collection) {
FullPath
= "c:\\1" };
372
_ = new Project {
FullPath
= "c:\\x" };
375
_ = new Project {
FullPath
= "c:\\x" };
386
var project = new Project {
FullPath
= "c:\\1" };
415
FullPath
= projectDirectory
422
FullPath
= projectDirectory
443
var project = new Project {
FullPath
= "c:\\1" };
510
var project1 = new Project(xml, null, "2.0") {
FullPath
= "c:\\1" };
512
var project2 = new Project(xml, null, ObjectModelHelpers.MSBuildDefaultToolsVersion) {
FullPath
= "c:\\1" };
532
project.
FullPath
= "c:\\123.proj";
554
project.
FullPath
= "c:\\123.proj";
569
var project = new Project(collection) {
FullPath
= "c:\\x" };
586
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
596
var project2 = new Project(collection) {
FullPath
= "c:\\x" };
613
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
635
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
645
var project2 = new Project(collection) {
FullPath
= "c:\\x" };
682
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
698
var project = new Project {
FullPath
= "c:\\x" };
714
var project = new Project {
FullPath
= "c:\\x" };
742
var project = new Project {
FullPath
= "c:\\x" };
757
var mainProject = new Project {
FullPath
= "c:\\main" };
759
var importProject = new Project {
FullPath
= "c:\\import" };
788
var project = new Project {
FullPath
= "c:\\x" };
790
project.
FullPath
= "c:\\y";
807
var project = new Project {
FullPath
= "c:\\1" };
815
project.
FullPath
= "c:\\2";
Definition\ProjectItem_Tests.cs (1)
1996
project.
FullPath
= Path.Combine(projectDirectory, "test.proj"); // assign a path so the wildcards can lock onto something.
Definition\ProjectProperty_Tests.cs (1)
209
project.
FullPath
= @"c:\x";
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (1)
56
viewProj.
FullPath
= savedPath;
Microsoft.Build.Engine.UnitTests (16)
BackEnd\BuildManager_Tests.cs (1)
3600
project.
FullPath
= _env.CreateFile().Path;
BackEnd\BuildRequestConfiguration_Tests.cs (4)
285
project.
FullPath
= "foo";
362
project.
FullPath
= "foo";
464
project.
FullPath
= "foo";
566
project.
FullPath
= _env.CreateFolder().Path;
BackEnd\ConfigurationMetadata_Tests.cs (1)
155
project.
FullPath
= "file";
BackEnd\TargetEntry_Tests.cs (1)
864
project.
FullPath
= FileUtilities.GetTemporaryFile();
BackEnd\TaskBuilder_Tests.cs (1)
170
project.
FullPath
= env.CreateFile().Path;
Definition\Project_Internal_Tests.cs (1)
94
project.
FullPath
= "c:\\123.proj";
Evaluation\Evaluator_Tests.cs (4)
173
fooImport.
FullPath
= fooPath;
186
barImport.
FullPath
= barPath;
197
fooImport.
FullPath
= @"c:\temp\alteredfoo.import";
198
barImport.
FullPath
= @"c:\temp\alteredbar.import";
EvaluationProfiler_Tests.cs (1)
306
project.
FullPath
= _env.CreateFile().Path;
Instance\HostServices_Tests.cs (2)
485
project.
FullPath
= fileName;
512
project.
FullPath
= fileName;
Microsoft.Build.Tasks.UnitTests (1)
AssignLinkMetadata_Tests.cs (1)
180
FullPath
= Path.Combine(Path.GetTempPath(), "a.proj")
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
741
project.
FullPath
= Path.Combine(TempProjectDir, "Temporary" + guid.ToString("N") + ".csproj");
55 references to FullPath
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
160
Warning.Write($"One or more references to {sourceFile} already exist in '{project.
FullPath
}'. Duplicate references could lead to unexpected behavior.");
169
Warning.Write($"A reference to '{sourceUrl}' already exists in '{project.
FullPath
}'.");
Microsoft.Build (17)
BackEnd\Shared\ConfigurationMetadata.cs (1)
46
_projectFullPath = FileUtilities.NormalizePath(project.
FullPath
);
Definition\ProjectCollection.cs (11)
1357
if (_hostServices != null && _loadedProjects.GetMatchingProjectsIfAny(project.
FullPath
).Count == 0)
1359
_hostServices.UnregisterProject(project.
FullPath
);
1393
ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.
FullPath
);
1414
_hostServices?.UnregisterProject(project.
FullPath
);
1570
if (project.
FullPath
== null)
1593
HostServices.OnRenameProject(oldFullPathIfAny, project.
FullPath
);
1613
if (project.
FullPath
== null)
2540
if (!_loadedProjects.TryGetValue(project.
FullPath
, out List<Project> projectList))
2543
_loadedProjects.Add(project.
FullPath
, projectList);
2550
ErrorUtilities.ThrowInvalidOperation("OM_MatchingProjectAlreadyInCollection", existing.
FullPath
);
2565
return RemoveProject(project.
FullPath
, project);
Evaluation\Preprocessor.cs (3)
98
_filePaths.Push(_project.
FullPath
);
100
if (!String.IsNullOrEmpty(_project.
FullPath
)) // Ignore in-memory projects
102
destinationDocument.AppendChild(destinationDocument.CreateComment("\r\n" + new String('=', 140) + "\r\n" + _project.
FullPath
.Replace("--", "__") + "\r\n" + new String('=', 140) + "\r\n"));
Instance\ProjectInstance.cs (2)
373
var projectPath = project.
FullPath
;
430
var projectPath = linkedProject.
FullPath
;
Microsoft.Build.Engine.OM.UnitTests (7)
Construction\ElementLocationPublic_Tests.cs (1)
148
locations = locations.Replace(project.
FullPath
, "c:\\foo\\bar.csproj");
Definition\ProjectCollection_Tests.cs (1)
763
mainProject.Xml.PrependChild(mainProject.Xml.CreateImportElement(importProject.
FullPath
));
Instance\ProjectTargetInstance_Tests.cs (1)
124
Assert.Equal(project.
FullPath
, target.FullPath);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
368
Assert.Equal(real.
FullPath
, view.
FullPath
);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (2)
47
Assert.Equal(proj1Path, viewProj.
FullPath
);
57
Assert.Equal(savedPath, realProj.
FullPath
);
Microsoft.Build.Engine.UnitTests (24)
BackEnd\BuildManager_Tests.cs (8)
651
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
704
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
774
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
834
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
901
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
932
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
1155
var brd = new BuildRequestData(project.
FullPath
, globalProperties, null, targets, new HostServices());
3609
File.Delete(project.
FullPath
);
BackEnd\ConfigurationMetadata_Tests.cs (1)
78
Assert.Equal(project.
FullPath
, metadata.ProjectFullPath);
BackEnd\TargetEntry_Tests.cs (2)
866
File.Delete(project.
FullPath
);
875
project.
FullPath
,
BinaryLogger_Tests.cs (2)
222
File.WriteAllText(project.
FullPath
, projectText);
224
File.Delete(project.
FullPath
);
Definition\ProjectEvaluationContext_Tests.cs (4)
462
var projectName = Path.GetFileNameWithoutExtension(project.
FullPath
);
517
var projectName = Path.GetFileNameWithoutExtension(project.
FullPath
);
580
var projectName = Path.GetFileNameWithoutExtension(project.
FullPath
);
645
var projectName = Path.GetFileNameWithoutExtension(project.
FullPath
);
Definition\ProjectItem_Tests.cs (1)
31
ProjectItem item2 = factory.CreateItem(item1, item1.Project.
FullPath
);
EvaluationProfiler_Tests.cs (1)
291
File.Delete(project.
FullPath
);
Instance\HostServices_Tests.cs (5)
411
hostServices.RegisterHostObject(project.
FullPath
, "test", "Message", th);
415
Assert.False(hostServices.HasInProcessHostObject(project.
FullPath
));
431
hostServices.RegisterHostObject(project1.
FullPath
, "test", "Message", th);
435
Assert.True(hostServices.HasInProcessHostObject(project2.
FullPath
));
439
Assert.False(hostServices.HasInProcessHostObject(project2.
FullPath
));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
MSBuild\ProjectFile\ProjectFile.cs (5)
28
public virtual string FilePath => _loadedProject?.
FullPath
?? string.Empty;
55
return [ProjectFileInfo.CreateEmpty(Language, _loadedProject?.
FullPath
)];
99
projectFileInfo ??= ProjectFileInfo.CreateEmpty(Language, _loadedProject?.
FullPath
);
108
return ProjectFileInfo.CreateEmpty(Language, _loadedProject?.
FullPath
);
115
: ProjectFileInfo.CreateEmpty(Language, _loadedProject.
FullPath
);