51 writes to FullPath
Microsoft.Build.Engine.OM.UnitTests (32)
Definition\ProjectCollection_Tests.cs (29)
150
var project = new Project {
FullPath
= "c:\\x" };
324
var project1 = new Project {
FullPath
= "c:\\1" };
327
var project2 = new Project(collection) {
FullPath
= "c:\\1" };
373
_ = new Project {
FullPath
= "c:\\x" };
376
_ = new Project {
FullPath
= "c:\\x" };
387
var project = new Project {
FullPath
= "c:\\1" };
416
FullPath
= projectDirectory
423
FullPath
= projectDirectory
444
var project = new Project {
FullPath
= "c:\\1" };
511
var project1 = new Project(xml, null, "2.0") {
FullPath
= "c:\\1" };
513
var project2 = new Project(xml, null, ObjectModelHelpers.MSBuildDefaultToolsVersion) {
FullPath
= "c:\\1" };
533
project.
FullPath
= "c:\\123.proj";
555
project.
FullPath
= "c:\\123.proj";
570
var project = new Project(collection) {
FullPath
= "c:\\x" };
587
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
597
var project2 = new Project(collection) {
FullPath
= "c:\\x" };
614
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
636
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
646
var project2 = new Project(collection) {
FullPath
= "c:\\x" };
683
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
699
var project = new Project {
FullPath
= "c:\\x" };
715
var project = new Project {
FullPath
= "c:\\x" };
743
var project = new Project {
FullPath
= "c:\\x" };
758
var mainProject = new Project {
FullPath
= "c:\\main" };
760
var importProject = new Project {
FullPath
= "c:\\import" };
789
var project = new Project {
FullPath
= "c:\\x" };
791
project.
FullPath
= "c:\\y";
808
var project = new Project {
FullPath
= "c:\\1" };
816
project.
FullPath
= "c:\\2";
Definition\ProjectItem_Tests.cs (1)
1994
project.
FullPath
= Path.Combine(projectDirectory, "test.proj"); // assign a path so the wildcards can lock onto something.
Definition\ProjectProperty_Tests.cs (1)
208
project.
FullPath
= @"c:\x";
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (1)
56
viewProj.
FullPath
= savedPath;
Microsoft.Build.Engine.UnitTests (17)
BackEnd\BuildManager_Tests.cs (1)
3644
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)
153
project.
FullPath
= "file";
BackEnd\TargetEntry_Tests.cs (1)
760
project.
FullPath
= FileUtilities.GetTemporaryFile();
BackEnd\TaskBuilder_Tests.cs (1)
157
project.
FullPath
= env.CreateFile().Path;
Definition\Project_Internal_Tests.cs (1)
93
project.
FullPath
= "c:\\123.proj";
Evaluation\Evaluator_Tests.cs (4)
208
fooImport.
FullPath
= fooPath;
221
barImport.
FullPath
= barPath;
232
fooImport.
FullPath
= @"c:\temp\alteredfoo.import";
233
barImport.
FullPath
= @"c:\temp\alteredbar.import";
EvaluationProfiler_Tests.cs (1)
305
project.
FullPath
= _env.CreateFile().Path;
Instance\HostServices_Tests.cs (2)
484
project.
FullPath
= fileName;
511
project.
FullPath
= fileName;
Instance\TaskItem_Tests.cs (1)
335
project.
FullPath
= "test.proj";
Microsoft.Build.Tasks.UnitTests (1)
AssignLinkMetadata_Tests.cs (1)
179
FullPath
= Path.Combine(Path.GetTempPath(), "a.proj")
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
739
project.
FullPath
= Path.Combine(TempProjectDir, "Temporary" + guid.ToString("N") + ".csproj");
51 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)
47
_projectFullPath = FileUtilities.NormalizePath(project.
FullPath
);
Definition\ProjectCollection.cs (11)
1419
if (_hostServices != null && _loadedProjects.GetMatchingProjectsIfAny(project.
FullPath
).Count == 0)
1421
_hostServices.UnregisterProject(project.
FullPath
);
1455
ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.
FullPath
);
1476
_hostServices?.UnregisterProject(project.
FullPath
);
1632
if (project.
FullPath
== null)
1655
HostServices.OnRenameProject(oldFullPathIfAny, project.
FullPath
);
1675
if (project.
FullPath
== null)
2008
if (!_loadedProjects.TryGetValue(project.
FullPath
, out List<Project> projectList))
2011
_loadedProjects.Add(project.
FullPath
, projectList);
2018
ErrorUtilities.ThrowInvalidOperation("OM_MatchingProjectAlreadyInCollection", existing.
FullPath
);
2033
return RemoveProject(project.
FullPath
, project);
Evaluation\Preprocessor.cs (3)
101
_filePaths.Push(_project.
FullPath
);
103
if (!String.IsNullOrEmpty(_project.
FullPath
)) // Ignore in-memory projects
105
destinationDocument.AppendChild(destinationDocument.CreateComment($"\r\n{Equals140}\r\n{_project.
FullPath
.Replace("--", "__")}\r\n{Equals140}\r\n"));
Instance\ProjectInstance.cs (2)
380
var projectPath = project.
FullPath
;
433
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)
764
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());
3653
File.Delete(project.
FullPath
);
BackEnd\ConfigurationMetadata_Tests.cs (1)
76
Assert.Equal(project.
FullPath
, metadata.ProjectFullPath);
BackEnd\TargetEntry_Tests.cs (2)
762
File.Delete(project.
FullPath
);
771
project.
FullPath
,
BinaryLogger_Tests.cs (2)
208
File.WriteAllText(project.
FullPath
, projectText);
210
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)
29
ProjectItem item2 = factory.CreateItem(item1, item1.Project.
FullPath
);
EvaluationProfiler_Tests.cs (1)
290
File.Delete(project.
FullPath
);
Instance\HostServices_Tests.cs (5)
410
hostServices.RegisterHostObject(project.
FullPath
, "test", "Message", th);
414
Assert.False(hostServices.HasInProcessHostObject(project.
FullPath
));
430
hostServices.RegisterHostObject(project1.
FullPath
, "test", "Message", th);
434
Assert.True(hostServices.HasInProcessHostObject(project2.
FullPath
));
438
Assert.False(hostServices.HasInProcessHostObject(project2.
FullPath
));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectFile.cs (1)
26
=> project?.
FullPath
?? string.Empty;