50 writes to FullPath
Microsoft.Build.Engine.OM.UnitTests (32)
Definition\ProjectCollection_Tests.cs (29)
149var project = new Project { FullPath = "c:\\x" }; 323var project1 = new Project { FullPath = "c:\\1" }; 326var project2 = new Project(collection) { FullPath = "c:\\1" }; 372_ = new Project { FullPath = "c:\\x" }; 375_ = new Project { FullPath = "c:\\x" }; 386var project = new Project { FullPath = "c:\\1" }; 415FullPath = projectDirectory 422FullPath = projectDirectory 443var project = new Project { FullPath = "c:\\1" }; 510var project1 = new Project(xml, null, "2.0") { FullPath = "c:\\1" }; 512var project2 = new Project(xml, null, ObjectModelHelpers.MSBuildDefaultToolsVersion) { FullPath = "c:\\1" }; 530var project = new Project(XmlReader.Create(new StringReader(content))) { FullPath = "c:\\123.proj" }; 550var project = new Project(XmlReader.Create(new StringReader(content))) { FullPath = "c:\\123.proj" }; 565var project = new Project(collection) { FullPath = "c:\\x" }; 582var project1 = new Project(collection) { FullPath = "c:\\y" }; 592var project2 = new Project(collection) { FullPath = "c:\\x" }; 609var project1 = new Project(collection) { FullPath = "c:\\y" }; 631var project1 = new Project(collection) { FullPath = "c:\\y" }; 641var project2 = new Project(collection) { FullPath = "c:\\x" }; 678var project1 = new Project(collection) { FullPath = "c:\\y" }; 694var project = new Project { FullPath = "c:\\x" }; 710var project = new Project { FullPath = "c:\\x" }; 738var project = new Project { FullPath = "c:\\x" }; 753var mainProject = new Project { FullPath = "c:\\main" }; 755var importProject = new Project { FullPath = "c:\\import" }; 784var project = new Project { FullPath = "c:\\x" }; 786project.FullPath = "c:\\y"; 803var project = new Project { FullPath = "c:\\1" }; 811project.FullPath = "c:\\2";
Definition\ProjectItem_Tests.cs (1)
1990project.FullPath = Path.Combine(projectDirectory, "test.proj"); // assign a path so the wildcards can lock onto something.
Definition\ProjectProperty_Tests.cs (1)
209project.FullPath = @"c:\x";
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (1)
56viewProj.FullPath = savedPath;
Microsoft.Build.Engine.UnitTests (16)
BackEnd\BuildManager_Tests.cs (1)
3533FullPath = _env.CreateFile().Path
BackEnd\BuildRequestConfiguration_Tests.cs (4)
282project.FullPath = "foo"; 358project.FullPath = "foo"; 458project.FullPath = "foo"; 559project.FullPath = _env.CreateFolder().Path;
BackEnd\ConfigurationMetadata_Tests.cs (1)
154project.FullPath = "file";
BackEnd\TargetEntry_Tests.cs (1)
862{ FullPath = FileUtilities.GetTemporaryFile() };
BackEnd\TaskBuilder_Tests.cs (1)
168FullPath = env.CreateFile().Path
Definition\Project_Internal_Tests.cs (1)
92project.FullPath = "c:\\123.proj";
Evaluation\Evaluator_Tests.cs (4)
154fooImport.FullPath = fooPath; 166barImport.FullPath = barPath; 177fooImport.FullPath = @"c:\temp\alteredfoo.import"; 178barImport.FullPath = @"c:\temp\alteredbar.import";
EvaluationProfiler_Tests.cs (1)
306FullPath = _env.CreateFile().Path
Instance\HostServices_Tests.cs (2)
485project.FullPath = fileName; 511project.FullPath = fileName;
Microsoft.Build.Tasks.UnitTests (1)
AssignLinkMetadata_Tests.cs (1)
179FullPath = Path.Combine(Path.GetTempPath(), "a.proj")
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
734project.FullPath = Path.Combine(TempProjectDir, "Temporary" + guid.ToString("N") + ".csproj");
50 references to FullPath
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
160Warning.Write($"One or more references to {sourceFile} already exist in '{project.FullPath}'. Duplicate references could lead to unexpected behavior."); 169Warning.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)
1342if (_hostServices != null && _loadedProjects.GetMatchingProjectsIfAny(project.FullPath).Count == 0) 1344_hostServices.UnregisterProject(project.FullPath); 1390ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.FullPath); 1412_hostServices?.UnregisterProject(project.FullPath); 1569if (project.FullPath == null) 1592HostServices.OnRenameProject(oldFullPathIfAny, project.FullPath); 1612if (project.FullPath == null) 2526if (!_loadedProjects.TryGetValue(project.FullPath, out List<Project> projectList)) 2529_loadedProjects.Add(project.FullPath, projectList); 2536ErrorUtilities.ThrowInvalidOperation("OM_MatchingProjectAlreadyInCollection", existing.FullPath); 2551return RemoveProject(project.FullPath, project);
Evaluation\Preprocessor.cs (3)
98_filePaths.Push(_project.FullPath); 100if (!String.IsNullOrEmpty(_project.FullPath)) // Ignore in-memory projects 102destinationDocument.AppendChild(destinationDocument.CreateComment("\r\n" + new String('=', 140) + "\r\n" + _project.FullPath.Replace("--", "__") + "\r\n" + new String('=', 140) + "\r\n"));
Instance\ProjectInstance.cs (2)
371var projectPath = project.FullPath; 428var projectPath = linkedProject.FullPath;
Microsoft.Build.Engine.OM.UnitTests (7)
Construction\ElementLocationPublic_Tests.cs (1)
148locations = locations.Replace(project.FullPath, "c:\\foo\\bar.csproj");
Definition\ProjectCollection_Tests.cs (1)
759mainProject.Xml.PrependChild(mainProject.Xml.CreateImportElement(importProject.FullPath));
Instance\ProjectTargetInstance_Tests.cs (1)
124Assert.Equal(project.FullPath, target.FullPath);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
368Assert.Equal(real.FullPath, view.FullPath);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (2)
47Assert.Equal(proj1Path, viewProj.FullPath); 57Assert.Equal(savedPath, realProj.FullPath);
Microsoft.Build.Engine.UnitTests (24)
BackEnd\BuildManager_Tests.cs (8)
652var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 705var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 765var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 816var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 883var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 914var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 1137var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new HostServices()); 3543File.Delete(project.FullPath);
BackEnd\ConfigurationMetadata_Tests.cs (1)
78Assert.Equal(project.FullPath, metadata.ProjectFullPath);
BackEnd\TargetEntry_Tests.cs (2)
864File.Delete(project.FullPath); 873project.FullPath,
BinaryLogger_Tests.cs (2)
222File.WriteAllText(project.FullPath, projectText); 224File.Delete(project.FullPath);
Definition\ProjectEvaluationContext_Tests.cs (4)
461var projectName = Path.GetFileNameWithoutExtension(project.FullPath); 516var projectName = Path.GetFileNameWithoutExtension(project.FullPath); 579var projectName = Path.GetFileNameWithoutExtension(project.FullPath); 644var projectName = Path.GetFileNameWithoutExtension(project.FullPath);
Definition\ProjectItem_Tests.cs (1)
31ProjectItem item2 = factory.CreateItem(item1, item1.Project.FullPath);
EvaluationProfiler_Tests.cs (1)
291File.Delete(project.FullPath);
Instance\HostServices_Tests.cs (5)
411hostServices.RegisterHostObject(project.FullPath, "test", "Message", th); 415Assert.False(hostServices.HasInProcessHostObject(project.FullPath)); 431hostServices.RegisterHostObject(project1.FullPath, "test", "Message", th); 435Assert.True(hostServices.HasInProcessHostObject(project2.FullPath)); 439Assert.False(hostServices.HasInProcessHostObject(project2.FullPath));