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" };
530
var project = new Project(XmlReader.Create(new StringReader(content))) {
FullPath
= "c:\\123.proj" };
550
var project = new Project(XmlReader.Create(new StringReader(content))) {
FullPath
= "c:\\123.proj" };
565
var project = new Project(collection) {
FullPath
= "c:\\x" };
582
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
592
var project2 = new Project(collection) {
FullPath
= "c:\\x" };
609
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
631
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
641
var project2 = new Project(collection) {
FullPath
= "c:\\x" };
678
var project1 = new Project(collection) {
FullPath
= "c:\\y" };
694
var project = new Project {
FullPath
= "c:\\x" };
710
var project = new Project {
FullPath
= "c:\\x" };
738
var project = new Project {
FullPath
= "c:\\x" };
753
var mainProject = new Project {
FullPath
= "c:\\main" };
755
var importProject = new Project {
FullPath
= "c:\\import" };
784
var project = new Project {
FullPath
= "c:\\x" };
786
project.
FullPath
= "c:\\y";
803
var project = new Project {
FullPath
= "c:\\1" };
811
project.
FullPath
= "c:\\2";
Definition\ProjectItem_Tests.cs (1)
1990
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)
3533
FullPath
= _env.CreateFile().Path
BackEnd\BuildRequestConfiguration_Tests.cs (4)
282
project.
FullPath
= "foo";
358
project.
FullPath
= "foo";
458
project.
FullPath
= "foo";
559
project.
FullPath
= _env.CreateFolder().Path;
BackEnd\ConfigurationMetadata_Tests.cs (1)
154
project.
FullPath
= "file";
BackEnd\TargetEntry_Tests.cs (1)
862
{
FullPath
= FileUtilities.GetTemporaryFile() };
BackEnd\TaskBuilder_Tests.cs (1)
168
FullPath
= env.CreateFile().Path
Definition\Project_Internal_Tests.cs (1)
92
project.
FullPath
= "c:\\123.proj";
Evaluation\Evaluator_Tests.cs (4)
154
fooImport.
FullPath
= fooPath;
166
barImport.
FullPath
= barPath;
177
fooImport.
FullPath
= @"c:\temp\alteredfoo.import";
178
barImport.
FullPath
= @"c:\temp\alteredbar.import";
EvaluationProfiler_Tests.cs (1)
306
FullPath
= _env.CreateFile().Path
Instance\HostServices_Tests.cs (2)
485
project.
FullPath
= fileName;
511
project.
FullPath
= fileName;
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)
734
project.
FullPath
= Path.Combine(TempProjectDir, "Temporary" + guid.ToString("N") + ".csproj");
50 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)
1342
if (_hostServices != null && _loadedProjects.GetMatchingProjectsIfAny(project.
FullPath
).Count == 0)
1344
_hostServices.UnregisterProject(project.
FullPath
);
1390
ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.
FullPath
);
1412
_hostServices?.UnregisterProject(project.
FullPath
);
1569
if (project.
FullPath
== null)
1592
HostServices.OnRenameProject(oldFullPathIfAny, project.
FullPath
);
1612
if (project.
FullPath
== null)
2526
if (!_loadedProjects.TryGetValue(project.
FullPath
, out List<Project> projectList))
2529
_loadedProjects.Add(project.
FullPath
, projectList);
2536
ErrorUtilities.ThrowInvalidOperation("OM_MatchingProjectAlreadyInCollection", existing.
FullPath
);
2551
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)
371
var projectPath = project.
FullPath
;
428
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)
759
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)
652
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
705
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
765
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
816
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
883
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
914
var data = new BuildRequestData(project.
FullPath
, new Dictionary<string, string>(),
1137
var brd = new BuildRequestData(project.
FullPath
, globalProperties, null, targets, new HostServices());
3543
File.Delete(project.
FullPath
);
BackEnd\ConfigurationMetadata_Tests.cs (1)
78
Assert.Equal(project.
FullPath
, metadata.ProjectFullPath);
BackEnd\TargetEntry_Tests.cs (2)
864
File.Delete(project.
FullPath
);
873
project.
FullPath
,
BinaryLogger_Tests.cs (2)
222
File.WriteAllText(project.
FullPath
, projectText);
224
File.Delete(project.
FullPath
);
Definition\ProjectEvaluationContext_Tests.cs (4)
461
var projectName = Path.GetFileNameWithoutExtension(project.
FullPath
);
516
var projectName = Path.GetFileNameWithoutExtension(project.
FullPath
);
579
var projectName = Path.GetFileNameWithoutExtension(project.
FullPath
);
644
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
));