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" }; 532project.FullPath = "c:\\123.proj"; 554project.FullPath = "c:\\123.proj"; 569var project = new Project(collection) { FullPath = "c:\\x" }; 586var project1 = new Project(collection) { FullPath = "c:\\y" }; 596var project2 = new Project(collection) { FullPath = "c:\\x" }; 613var project1 = new Project(collection) { FullPath = "c:\\y" }; 635var project1 = new Project(collection) { FullPath = "c:\\y" }; 645var project2 = new Project(collection) { FullPath = "c:\\x" }; 682var project1 = new Project(collection) { FullPath = "c:\\y" }; 698var project = new Project { FullPath = "c:\\x" }; 714var project = new Project { FullPath = "c:\\x" }; 742var project = new Project { FullPath = "c:\\x" }; 757var mainProject = new Project { FullPath = "c:\\main" }; 759var importProject = new Project { FullPath = "c:\\import" }; 788var project = new Project { FullPath = "c:\\x" }; 790project.FullPath = "c:\\y"; 807var project = new Project { FullPath = "c:\\1" }; 815project.FullPath = "c:\\2";
Definition\ProjectItem_Tests.cs (1)
1996project.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)
3600project.FullPath = _env.CreateFile().Path;
BackEnd\BuildRequestConfiguration_Tests.cs (4)
285project.FullPath = "foo"; 362project.FullPath = "foo"; 464project.FullPath = "foo"; 566project.FullPath = _env.CreateFolder().Path;
BackEnd\ConfigurationMetadata_Tests.cs (1)
155project.FullPath = "file";
BackEnd\TargetEntry_Tests.cs (1)
864project.FullPath = FileUtilities.GetTemporaryFile();
BackEnd\TaskBuilder_Tests.cs (1)
170project.FullPath = env.CreateFile().Path;
Definition\Project_Internal_Tests.cs (1)
94project.FullPath = "c:\\123.proj";
Evaluation\Evaluator_Tests.cs (4)
173fooImport.FullPath = fooPath; 186barImport.FullPath = barPath; 197fooImport.FullPath = @"c:\temp\alteredfoo.import"; 198barImport.FullPath = @"c:\temp\alteredbar.import";
EvaluationProfiler_Tests.cs (1)
306project.FullPath = _env.CreateFile().Path;
Instance\HostServices_Tests.cs (2)
485project.FullPath = fileName; 512project.FullPath = fileName;
Microsoft.Build.Tasks.UnitTests (1)
AssignLinkMetadata_Tests.cs (1)
180FullPath = Path.Combine(Path.GetTempPath(), "a.proj")
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
741project.FullPath = Path.Combine(TempProjectDir, "Temporary" + guid.ToString("N") + ".csproj");
55 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)
1357if (_hostServices != null && _loadedProjects.GetMatchingProjectsIfAny(project.FullPath).Count == 0) 1359_hostServices.UnregisterProject(project.FullPath); 1393ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.FullPath); 1414_hostServices?.UnregisterProject(project.FullPath); 1570if (project.FullPath == null) 1593HostServices.OnRenameProject(oldFullPathIfAny, project.FullPath); 1613if (project.FullPath == null) 2540if (!_loadedProjects.TryGetValue(project.FullPath, out List<Project> projectList)) 2543_loadedProjects.Add(project.FullPath, projectList); 2550ErrorUtilities.ThrowInvalidOperation("OM_MatchingProjectAlreadyInCollection", existing.FullPath); 2565return 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)
373var projectPath = project.FullPath; 430var 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)
763mainProject.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)
651var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 704var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 774var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 834var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 901var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 932var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 1155var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new HostServices()); 3609File.Delete(project.FullPath);
BackEnd\ConfigurationMetadata_Tests.cs (1)
78Assert.Equal(project.FullPath, metadata.ProjectFullPath);
BackEnd\TargetEntry_Tests.cs (2)
866File.Delete(project.FullPath); 875project.FullPath,
BinaryLogger_Tests.cs (2)
222File.WriteAllText(project.FullPath, projectText); 224File.Delete(project.FullPath);
Definition\ProjectEvaluationContext_Tests.cs (4)
462var projectName = Path.GetFileNameWithoutExtension(project.FullPath); 517var projectName = Path.GetFileNameWithoutExtension(project.FullPath); 580var projectName = Path.GetFileNameWithoutExtension(project.FullPath); 645var 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));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
MSBuild\ProjectFile\ProjectFile.cs (5)
28public virtual string FilePath => _loadedProject?.FullPath ?? string.Empty; 55return [ProjectFileInfo.CreateEmpty(Language, _loadedProject?.FullPath)]; 99projectFileInfo ??= ProjectFileInfo.CreateEmpty(Language, _loadedProject?.FullPath); 108return ProjectFileInfo.CreateEmpty(Language, _loadedProject?.FullPath); 115: ProjectFileInfo.CreateEmpty(Language, _loadedProject.FullPath);