63 references to LoadProject
Microsoft.Build.Engine.OM.UnitTests (20)
Construction\ProjectRootElement_Tests.cs (1)
1043
projects[current] = collection.
LoadProject
(paths[current]);
Construction\ProjectTargetElement_Tests.cs (1)
360
collection.
LoadProject
(file.Path).Build().ShouldBeTrue();
Definition\ProjectCollection_Tests.cs (17)
72
Project project2 = ProjectCollection.GlobalProjectCollection.
LoadProject
(path);
101
Project project2 = ProjectCollection.GlobalProjectCollection.
LoadProject
(path);
130
Project project2 = collection.
LoadProject
(path);
150
Project project2 = ProjectCollection.GlobalProjectCollection.
LoadProject
("c:\\x");
168
Project project = collection.
LoadProject
(path);
304
ProjectCollection.GlobalProjectCollection.
LoadProject
(path);
328
Assert.True(ReferenceEquals(project2, collection.
LoadProject
("c:\\1")));
329
Assert.False(ReferenceEquals(project1, collection.
LoadProject
("c:\\1")));
347
Project project1 = collection1.
LoadProject
(path);
348
Project project1b = collection1.
LoadProject
(path);
353
Project project2 = collection2.
LoadProject
(path);
726
ProjectCollection.GlobalProjectCollection.
LoadProject
(xml.FullPath);
840
Project project2 = collection.
LoadProject
(file1);
880
Project project2 = collection.
LoadProject
(file1);
883
Project project3 = collection.
LoadProject
(file1);
923
collection.
LoadProject
(file1);
926
Project project3 = collection.
LoadProject
(file1);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
163
public Project LoadProject(string path) => this.Collection.
LoadProject
(path);
Microsoft.Build.Engine.UnitTests (31)
BackEnd\BuildManager_Tests.cs (5)
1926
Project project = _projectCollection.
LoadProject
(data.ProjectFullPath);
1952
Project project = _projectCollection.
LoadProject
(data.ProjectFullPath);
1984
Project project = _projectCollection.
LoadProject
(data.ProjectFullPath);
2044
Project project2 = projectCollection2.
LoadProject
(p2pProject);
2115
Project project = projectCollection.
LoadProject
(rootProjectPath);
ChangeWaves_Tests.cs (1)
65
Project p = collection.
LoadProject
(file.Path);
ConsoleLogger_Tests.cs (3)
217
var p = pc.Collection.
LoadProject
(project.ProjectFile);
258
var p = pc.Collection.
LoadProject
(project.ProjectFile);
310
var p = pc.Collection.
LoadProject
(project.ProjectFile);
Evaluation\Evaluator_Tests.cs (10)
66
Assert.Throws<InvalidProjectFileException>(() => collection.
LoadProject
(projectFile.Path));
516
Project project = pc.
LoadProject
(projectPath);
559
Project project = pc.
LoadProject
(testTargetPath);
604
Project project = pc.
LoadProject
(testTargetPath);
647
Project project = pc.
LoadProject
(testTargetPath);
693
Project project = pc.
LoadProject
(testTargetPath);
737
Project project = pc.
LoadProject
(testTargetPath);
783
Project project = pc.
LoadProject
(testTargetPath);
5025
Project project = pc.
LoadProject
(tempPath.Path);
5066
Project project = pc.
LoadProject
(testTargetPath);
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (11)
60
Assert.Throws<InvalidProjectFileException>(() => projColln.
LoadProject
(mainProjectPath));
310
Assert.Throws<InvalidProjectFileException>(() => projColln.
LoadProject
(mainProjectPath));
411
var project = projColln.
LoadProject
(mainProjectPath);
505
var project = projColln.
LoadProject
(mainProjectPath);
582
var project = projectCollection.
LoadProject
(mainProjectPath);
643
Assert.Throws<InvalidProjectFileException>(() => projectCollection.
LoadProject
(mainProjectPath));
713
var project = projectCollection.
LoadProject
(mainProjectPath);
778
var project = projectCollection.
LoadProject
(mainProjectPath);
837
Assert.Throws<InvalidProjectFileException>(() => projectCollection.
LoadProject
(mainProjectPath));
871
Assert.Throws<InvalidProjectFileException>(() => projectCollection.
LoadProject
(mainProjectPath));
928
var project = projColln.
LoadProject
(mainProjectPath);
FixPathOnUnix_Tests.cs (1)
48
var project = projColln.
LoadProject
(buildProjectPath);
Microsoft.Build.Tasks.UnitTests (7)
Exec_Tests.cs (2)
960
var project = collection.
LoadProject
(testProject.ProjectFile).CreateProjectInstance();
1017
var project = collection.
LoadProject
(testProject.ProjectFile).CreateProjectInstance();
ResolveSDKReference_Tests.cs (5)
3812
ProjectInstance project = pc.
LoadProject
(testProjectFile).CreateProjectInstance();
3955
ProjectInstance project = pc.
LoadProject
(testProjectFile).CreateProjectInstance();
4064
ProjectInstance project = pc.
LoadProject
(testProjectFile).CreateProjectInstance();
4161
ProjectInstance project = pc.
LoadProject
(testProjectFile).CreateProjectInstance();
4330
ProjectInstance project = pc.
LoadProject
(testProjectFile).CreateProjectInstance();
Microsoft.Build.UnitTests.Shared (3)
MockEngine.cs (3)
345
return (_projectCollection.
LoadProject
(projectFileName)).Build();
352
return (_projectCollection.
LoadProject
(projectFileName)).Build(targetNames);
359
return (_projectCollection.
LoadProject
(projectFileName)).Build(targetName);
Microsoft.Build.Utilities.UnitTests (2)
ToolLocationHelper_Tests.cs (2)
3585
Project project = pc.
LoadProject
(testProjectFile);
3657
Project project = pc.
LoadProject
(testProjectFile);