487 instantiations of Project
Microsoft.Build (7)
Construction\Solution\SolutionProjectGenerator.cs (1)
2143Project msbuildProject = new Project(project.AbsolutePath, _globalProperties, childProjectToolsVersion);
Definition\Project.cs (3)
495return new Project( 514return new Project( 533return new Project(
Definition\ProjectCollection.cs (2)
1215project = new Project(fileName, globalProperties, effectiveToolsVersion, this); 1255return new Project(xmlReader, globalProperties, toolsVersion, this);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
102return new Project(Collection, link);
Microsoft.Build.Engine.OM.UnitTests (345)
Construction\ConstructionEditing_Tests.cs (1)
3232var p = new Project(testProject.ProjectFile);
Construction\ProjectFormatting_Tests.cs (19)
117Project project = new Project(xml); 153Project project = new Project(xml); 188Project project = new Project(xml); 220Project project = new Project(xml); 249Project project = new Project(xml); 284Project project = new Project(xml); 323Project project = new Project(xml); 366Project project = new Project(xml); 393Project project = new Project(xml); 418Project project = new Project(xml); 448Project project = new Project(xml); 473Project project = new Project(xml); 535Project project = new Project(); 560Project project = new Project(NewProjectFileOptions.None); 581Project project = new Project(NewProjectFileOptions.None); 603Project project = new Project(NewProjectFileOptions.IncludeXmlNamespace); 626Project project = new Project(NewProjectFileOptions.IncludeXmlDeclaration); 646Project project = new Project(NewProjectFileOptions.None); 694var project = new Project(ProjectRootElement.Open(file, ProjectCollection.GlobalProjectCollection));
Construction\ProjectImportElement_Tests.cs (1)
264Project msbuildProject = new Project(projectfile);
Construction\ProjectItemElement_Tests.cs (3)
957Project project = new Project(); 973Project project = new Project(); 989Project project = new Project();
Construction\ProjectMetadataElement_Tests.cs (12)
565var project = new Project(projectElement); 608var project = new Project(projectElement); 682var project = new Project(projectElement); 725var project = new Project(projectElement); 811var project = new Project(projectElement); 874var project = new Project(projectElement); 943var project = new Project(projectElement); 986var project = new Project(projectElement); 1058var project = new Project(projectElement); 1098var project = new Project(projectElement); 1169var project = new Project(projectElement); 1216var project = new Project(projectElement);
Construction\ProjectRootElement_Tests.cs (1)
1749var project = new Project(rootElement, null, null, projectCollection);
Construction\WhiteSpacePreservation_Tests.cs (1)
473var project = new Project(projectElement);
Definition\DefinitionEditing_Tests.cs (85)
150Project project = new Project(); 177Project project = new Project(); 204Project project = new Project(); 232Project project = new Project(); 244Project project = new Project(); 265Project project = new Project(); 289Project project = new Project(); 312Project project = new Project(); 328Project project = new Project(); 345Project project = new Project(); 369Project project = new Project(); 394Project project = new Project(); 419Project project = new Project(); 445Project project = new Project(); 470Project project = new Project(); 495Project project = new Project(); 521Project project = new Project(); 557Project project = new Project(); 585Project project = new Project(); 613Project project = new Project(); 641Project project = new Project(); 672Project project = new Project(); 793Project project = new Project(); 829Project project = new Project(); 856Project project = new Project(); 883Project project = new Project(); 910Project project = new Project(); 938Project project = new Project(); 970Project project = new Project(); 1030Project project = new Project(); 1058Project project = new Project(); 1098Project project = new Project(); 1138Project project = new Project(); 1169Project project = new Project(); 1209Project project = new Project(); 1265Project project = new Project(); 1302Project project = new Project(); 1361Project project = new Project(); 1393Project project = new Project(); 1472Project project = new Project(); 1497Project project = new Project(); 1527Project project = new Project(xml); 1542Project project = new Project(); 1558Project project = new Project(); 1573Project project = new Project(); 1591Project project = new Project(); 1606Project project = new Project(); 1621Project project = new Project(); 1636Project project = new Project(); 1651Project project = new Project(); 1711return new Project(projectFile); 1725Project project = new Project(); 1740Project project = new Project(); 1762Project project = new Project(); 1781Project project = new Project(); 1800Project project = new Project(); 1818Project project = new Project(); 1842Project project = new Project(); 1865Project project = new Project(); 1893Project project = new Project(); 1922Project project = new Project(); 1952Project project = new Project(); 1969Project project = new Project(); 2047Project project = new Project(xml); 2074Project project = new Project(); 2101Project project = new Project(); 2128Project project = new Project(); 2156Project project = new Project(); 2168Project project = new Project(); 2189Project project = new Project(); 2213Project project = new Project(); 2236Project project = new Project(); 2252Project project = new Project(); 2266Project project = new Project(); 2290Project project = new Project(); 2315Project project = new Project(); 2340Project project = new Project(); 2366Project project = new Project(); 2391Project project = new Project(); 2416Project project = new Project(); 2442Project project = new Project(); 2474Project project = new Project(); 2502Project project = new Project(); 2530Project project = new Project(); 2558Project project = new Project();
Definition\Project_Tests.cs (101)
110Project project = new Project(xml); 138Project project = new Project(xml, null, null, collection); 166Project project = new Project(xml, null, null, collection); 189Project project = new Project(file); 217project = new Project(file); 229project = new Project(file); // should not throw 260Project project = new Project(reader); 294Project project = new Project(reader); 311Project project2 = new Project(reader); 327Project project = new Project(xml); 341Project project = new Project(xml); 354tasks[i] = Task.Factory.StartNew(delegate () { new Project(); }); // Should not throw 373Project project = new Project(xml, null, null, collection, ProjectLoadSettings.IgnoreMissingImports); 389Project project = new Project(xml, null, null, new ProjectCollection(), ProjectLoadSettings.IgnoreMissingImports); 408Project project = new Project(collection); 440Project project = new Project(collection); 444Project project2 = new Project(collection); 476Project project = new Project(collection); 481Project project2 = new Project(collection); 515Project project = new Project(collection); 520Project project2 = new Project(collection); 524Project project3 = new Project(collection); 546Project project = new Project(xml); 599Project project = new Project(xml); 645Project project = new Project(xml); 680Project project = new Project(xml); 718Project project = new Project(xml); 754Project project = new Project(xml); 792Project project = new Project(xml); 815Project project = new Project(xml, globalProperties, null); 831Project project = new Project(xml, globalProperties, null); 846Project project = new Project(xml); 858Project project = new Project(); 877Project project = new Project(); 892Project project = new Project(); 919Project project = new Project(); 931Project project = new Project(); 950Project project = new Project(); 963Project project = new Project(ProjectRootElement.Create(), initial, null); 992Project project = new Project(collection); 1012Project project = new Project(); 1028Project project = new Project(); 1049Project project = new Project(); 1069Project project = new Project( 1088Project project = new Project(xml); 1101Project project = new Project(); 1119Project project = new Project(); 1148Project project = new Project(); 1172Project project = new Project(); 1200Project project = new Project(); 1213Project project = new Project(); 1233Project p = new Project(GetSampleProjectRootElement(), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1263Project p = new Project(GetSampleProjectRootElement(), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1291Project p = new Project(GetSampleProjectRootElement(), globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1323Project p = new Project(GetSampleProjectRootElement(), globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, "ABCDEF", collection, ProjectLoadSettings.Default); 1341Project project = new Project(); 1366Project project = new Project(path); 1371project = new Project(path); 1395Project project = new Project(); 1460Project project = new Project(projectCollection); 1525var project = new Project(projectCollection); 1543var newProject = new Project(projectCollection); 1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 1634Project project = new Project(); 1661Project project = new Project(); 1684Project project = new Project(); 1709Project project = new Project(); 1747Project project = new Project(projectConstruction); 1790Project project = new Project(); 1811Project project = new Project(); 1825Project project = new Project(); 2054Project project = new Project(); 2074Project project = new Project(); 2143Project project = new Project(xml); 2157Project project = new Project(xml); 2171Project project = new Project(xml); 2365Project project = new Project(); 2382Project project1 = new Project(root1); 2383Project project2 = new Project(root2); 2423Project project = new Project(globalProperties, null, new ProjectCollection()); 2508Project project = new Project(projectPath); 2571Project project = new Project(zero); 2617Project project = new Project(zero); 2655Project project = new Project(XmlReader.Create(new StringReader(projectOriginalContents))); 2703Project project = new Project(XmlReader.Create(new StringReader(projectOriginalContents))); 3254var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3284var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3575var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3770var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3845var globResult = new Project(testFiles.ProjectFile, null, MSBuildConstants.CurrentToolsVersion, projectCollection).GetAllGlobs(); 3864var project = new Project(null, null, projectCollection); 3907Project unused = new Project(pre, null, null, collection); 3948Project unused = new Project(pre, null, null, collection); 3992Project unused = new Project(pre, null, null, collection, ProjectLoadSettings.IgnoreEmptyImports); 4039Project unused = new Project(pre, null, null, collection, ProjectLoadSettings.IgnoreInvalidImports); 4079Project unused = new Project(pre, null, null, collection, ProjectLoadSettings.IgnoreInvalidImports); 4122Project unused = new Project(pre, null, null, collection, ProjectLoadSettings.IgnoreMissingImports); 4165Project unused = new Project(pre, null, null, collection); 4211Project unused = new Project(pre2, null, null, collection); 4242Project project = new Project(projectXml); 4267Project project = new Project(collection);
Definition\ProjectCollection_Tests.cs (34)
70Project project = new Project(path); 95Project project = new Project(); 125Project project = new Project(collection); 149var project = new Project { FullPath = "c:\\x" }; 284var project = new Project(collection); 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" }; 413new Project(xml, globalProperties1, ObjectModelHelpers.MSBuildDefaultToolsVersion) 420new Project(xml, globalProperties2, ObjectModelHelpers.MSBuildDefaultToolsVersion) 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" }; 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" }; 807var project = new Project { FullPath = "c:\\1" }; 835Project project = new Project(); 874var project = new Project(); 917var project = new Project(); 1375var project = new Project(pre); 1404project = new Project(pre, null, null, collection);
Definition\ProjectItem_Tests.cs (26)
79Project project = new Project(); 784Project project = new Project(); 836Project project = new Project(projectCollection); 1115ObjectModelHelpers.AssertItems(expectedInclude, new Project(projectFile).Items.ToList()); 1155ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1175ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1871Project project = new Project(); 1894Project project = new Project(xml); 1918Project project = new Project(xml); 1930Project project = new Project(); 1950Project project = new Project(xml); 1963Project project = new Project(); 1994var project = new Project(); 2021Project project = new Project(); 2039Project project = new Project(); 2059Project import = new Project(); 2065Project project = new Project(xml); 2090Project import = new Project(); 2096Project project = new Project(xml); 2121Project import = new Project(); 2128Project project = new Project(xml); 2216var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2276var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 3660return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 3710itemsFromFragmentWithGlobs = Helpers.MakeList(new Project(testProject.ProjectFile).GetItems("i")); 3756var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), null, projectCollection);
Definition\ProjectItemDefinition_Tests.cs (14)
35Project project = new Project(xml); 64Project project = new Project(xml); 81Project project = new Project(xml); 102Project project = new Project(xml); 131Project project = new Project(main); 161Project project = new Project(main); 485Project project = new Project(XmlReader.Create(new StringReader(content))); 507Project project = new Project(XmlReader.Create(new StringReader(content))); 529Project project = new Project(XmlReader.Create(new StringReader(content))); 551Project project = new Project(XmlReader.Create(new StringReader(content))); 573Project project = new Project(XmlReader.Create(new StringReader(content))); 595Project project = new Project(XmlReader.Create(new StringReader(content))); 617Project project = new Project(XmlReader.Create(new StringReader(content))); 639Project project = new Project(XmlReader.Create(new StringReader(content)));
Definition\ProjectMetadata_Tests.cs (8)
29Project project = new Project(); 56Project project = new Project(projectXml); 89Project project = new Project(); 109Project project = new Project(); 127Project project = new Project(); 447Project project = new Project(); 467Project project = new Project(xml); 505Microsoft.Build.Evaluation.Project project = new Microsoft.Build.Evaluation.Project();
Definition\ProjectProperty_Tests.cs (14)
29Project project = new Project(); 86Project project = new Project(); 103Project project = new Project(); 121Project project = new Project(); 138Project project = new Project(); 154Project project = new Project(); 177Project project = new Project(); 194Project project = new Project(globalProperties, null, ProjectCollection.GlobalProjectCollection); 208Project project = new Project(); 224Project project = new Project(); 243Project project = new Project(); 266Project import = new Project(); 272Project project = new Project(xml); 291Project project = new Project(projectXml);
Instance\ProjectInstance_Tests.cs (8)
40Project p = new Project(); 204Project p = new Project(ProjectRootElement.Create(), globals, null); 398ProjectInstance instance1 = new Project().CreateProjectInstance(); 404new Project().CreateProjectInstance(); 427var projBEval = new Project(projB, null, null, pc); 469var projBEval = new Project(projB, null, null, pc, loadSettings); 511var projBEval = new Project(projB, null, null, pc); 1043Project project = new Project(xml);
Instance\ProjectItemInstance_Tests.cs (3)
251Project project = new Project(); 346Project project = new Project(); 1193Project project = new Project();
Instance\ProjectMetadataInstance_Tests.cs (1)
34Project project = new Project();
Instance\ProjectOnErrorInstance_Tests.cs (1)
47Project project = new Project(xml);
Instance\ProjectPropertyInstance_Tests.cs (2)
91var project = new Project(); 103Project project = new Project();
Instance\ProjectTargetInstance_Tests.cs (5)
56Project project = new Project(projectXml); 76Project project = new Project(projectXml); 96Project project = new Project(projectXml); 121Project project = new Project(projectXml); 147Project project = new Project(xml);
Instance\ProjectTaskInstance_Tests.cs (1)
77Project project = new Project(xml);
Instance\ProjectTaskOutputItemInstance_Tests.cs (1)
50Project project = new Project(xml);
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (1)
50Project project = new Project(xml);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (2)
167public Project LoadProjectWithSettings(string path, ProjectLoadSettings settings) => new Project(path, null, null, this.Collection, settings); 175Project project = new Project(xml, null, null, this.Collection, settings);
Microsoft.Build.Engine.UnitTests (123)
BackEnd\BuildManager_Tests.cs (11)
2265var project = new Project(fileName); 2316Project project = new Project(fileName); 3121var project1 = new Project(projectPath1); 3126var project2 = new Project(projectPath2); 3189var project1 = new Project(projectPath1); 3204var project2 = new Project(projectPath2); 3274var project1 = new Project(projectPath1); 3289var project2 = new Project(projectPath2); 3706var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3730var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3857var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion,
BackEnd\IntrinsicTask_Tests.cs (1)
3988var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c);
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
471Project msbuildProject = new Project(projectFile);
BackEnd\MSBuild_Tests.cs (2)
1849Project project = new Project(projectFile2); 1885Project project = new Project(projectFile2);
BackEnd\OnError_Tests.cs (1)
559Project p = new Project(XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(@"
BackEnd\TargetUpToDateChecker_Tests.cs (1)
608Project project = new Project(projectFile);
Collections\OMcollections_tests.cs (2)
311Project project = new Project(); 323Project project = new Project();
ConsoleLogger_Tests.cs (1)
146Microsoft.Build.Evaluation.Project project = new Microsoft.Build.Evaluation.Project();
Construction\SolutionProjectGenerator_Tests.cs (6)
311Project project = new Project(projectXml); 852Project msbuildProject = new Project(projectXml); 1058var automaticProject = new Project(automaticProjectFile); 1105Project msbuildProject = new Project(projectXml); 1175Project msbuildProject = new Project(projectXml); 1220Project msbuildProject = new Project(projectXml);
Construction\XmlReaderWithoutLocation_Tests.cs (1)
163Project project = new Project(noLineInfoReader);
Definition\ItemDefinitionGroup_Tests.cs (7)
165Project p = new Project(XmlReader.Create(new StringReader( 194Project p = new Project(XmlReader.Create(new StringReader( 222Project p = new Project(XmlReader.Create(new StringReader( 816Project p = new Project(XmlReader.Create(new StringReader(@" 835Project p = new Project(XmlReader.Create(new StringReader(@" 851Project p = new Project(XmlReader.Create(new StringReader(@" 1062Project p = new Project(XmlReader.Create(new StringReader(@"
Definition\Project_Internal_Tests.cs (2)
133Project project = new Project(); 184Project project = new Project();
Definition\ProjectItem_Tests.cs (1)
83Project project = new Project(projectXml);
EscapingInProjects_Tests.cs (5)
650Project project = new Project(projectElement, null, null, collection); 833Project project = new Project(reader); 845Project project = new Project(); 879Project project = new Project(reader); 911Project project = new Project(reader);
Evaluation\EvaluationLogging_Tests.cs (1)
88var project = new Project(projectFile, null, null, collection);
Evaluation\Evaluator_Tests.cs (39)
90Project project = new(projectFile.Path); 320Project project = new Project(subdirProjPath); 957Project project = new Project(content.ProjectFile, null, null); 1071Project project = new Project(XmlReader.Create(new StringReader(manifest)), null, null, pc, ProjectLoadSettings.RejectCircularImports); 1086Project project = new Project(); 1151Project project = new Project(); 1358Project project = new Project(main); 2213Project project = new Project(); 2442Project project = new Project(collection); 2476Project project = new Project(collection); 2494Project project = new Project(collection); 2552Project project = new Project(collection); 2571Project project = new Project(collection); 2627Project project = new Project(collection); 2646Project project = new Project(collection); 2666Project project = new Project(); 2684Project project = new Project(collection); 2703Project project = new Project(collection); 2715Project project = new Project(xml); 2732Project project = new Project(xml); 2767Project project = new Project(xml); 2786Project project = new Project(xml); 2804Project project = new Project(xml); 2822Project project = new Project(xml); 3139Project project = new Project(XmlReader.Create(new StringReader(content)), globalProperties, null); 3407Project project = new Project(primaryProject, globalProperties, null); 3468Project project = new Project(primaryProject, globalProperties, null); 3528Project project = new Project(primaryProject, globalProperties, null); 3602Project project = new Project(primaryProject, globalProperties, null); 3675Project project = new Project(primaryProject, globalProperties, null); 3738Project project = new Project(primaryProject, globalProperties, null); 3800Project project = new Project(primaryProject, globalProperties, null); 4334Project project = new Project(null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 4380Project project = new Project(projectFilename); 4537Project unused = new Project(primaryProject, null, null); 4638Project project = new Project(primaryProject.ProjectFile, null, null); 4668Project project = new Project(primaryProject.ProjectFile, null, null); 4987new Project(XmlReader.Create(new StringReader(projectContents)), null, "Fake", fakeProjectCollection)); 5216Project project = new Project(projectXml);
Evaluation\ItemEvaluation_Tests.cs (2)
598var project = new Project(projectFiles.ProjectFile); 659Project project = Should.NotThrow(() => new Project(projectFiles.ProjectFile));
Evaluation\Preprocessor_Tests.cs (17)
55Project project = new Project(); 84Project project = new Project(xml1); 128Project project = new Project(xml1); 172Project project = new Project(xml1); 216Project project = new Project(xml1); 264Project project = new Project(xml1); 298Project project = new Project(xml1); 368project = new Project(xr); 419Project project = new Project(xml1); 477Project project = new Project(xml1); 550Project project = new Project(xml1); 611Project project = new Project(xml1); 671Project project = new Project(xml1); 725Project project = new Project(xml0); 792Project project = new Project(); 826Project project = new Project(xml); 1238Project project = new Project(xml1);
Evaluation\ProjectSdkImplicitImport_Tests.cs (10)
112var project = new Project(projectRootElement); 135var project = new Project(projectRootElement); 202Project project = new Project(projectRootElement); 305Project project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(content)))); 329() => new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(content))))); 334var project = new Project(projectRootElementFromString.Project); 396Assert.Throws<InvalidProjectFileException>(() => new Project( 421Project project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(content)))); 445var project = new Project(projectRootElement); 480Project project = new Project(rootElement,
Graph\ProjectGraph_Tests.cs (2)
134var projectInstance = new Project().CreateProjectInstance(); 181var projectInstance = new Project().CreateProjectInstance();
Instance\ProjectInstance_Internal_Tests.cs (4)
71ProjectInstance project = new Project(projectRootElementFromString.Project).CreateProjectInstance(); 119ProjectInstance project = new Project(projectRootElementFromString.Project).CreateProjectInstance(); 721(f, xml, c) => new Project(f, null, null, c).CreateProjectInstance() 867: new Project(rootElement, globalProperties: null, toolsVersion: null, projectCollection, projectLoadSettings).CreateProjectInstance();
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
56Project project = new Project();
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
94Project project = new Project();
Instance\TaskItem_Tests.cs (4)
213Project project = new(); 280Project project = new Project(xml); 334Project project = new Project(xml); 369Project project = new Project(xml);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TargetTests.cs (1)
926Project proj = new Project(reader);
Microsoft.Build.Tasks.UnitTests (4)
AssignLinkMetadata_Tests.cs (1)
178Project p = new Project(collection)
MSBuild_Tests.cs (3)
1387Project project = new Project(projectFile2); 1473Project project = new Project(projectFile2); 1509Project project = new Project(projectFile1);
Microsoft.Build.UnitTests.Shared (6)
EngineTestEnvironment.cs (1)
219Project project = new Project(ProjectFile, globalProperties, toolsVersion, projectCollection);
ObjectModelHelpers.cs (4)
126return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 733Project project = new Project( 989Project project = new Project(projectFileFullPath, null, null, projectCollection); 1104Project project = new Project(projectXml);
ProjectFromString.cs (1)
39Project = new(_reader, globalProperties, toolsVersion, subToolsetVersion, projectCollection, loadSettings);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
113var project = new MSB.Evaluation.Project(
1368 references to Project
dotnet-openapi (6)
Commands\BaseCommand.cs (3)
125protected static Project LoadProject(FileInfo projectFile) 127var project = ProjectCollection.GlobalProjectCollection.LoadProject( 154var project = LoadProject(projectFile);
Commands\RefreshCommand.cs (1)
41var project = LoadProject(projectFile);
Commands\RemoveCommand.cs (1)
53var project = LoadProject(projectFile);
ProjectExtensions.cs (1)
12public static void AddElementWithAttributes(this Project project, string tagName, string include, IDictionary<string, string> metadata)
Microsoft.Build (189)
BackEnd\BuildManager\BuildManager.cs (2)
850public ProjectInstance GetProjectInstanceForBuild(Project project) 1520private BuildRequestConfiguration CreateConfiguration(Project project, BuildRequestConfiguration? existingConfiguration)
BackEnd\Shared\ConfigurationMetadata.cs (1)
36public ConfigurationMetadata(Project project)
Construction\ProjectRootElement.cs (5)
721return Create(ProjectCollection.GlobalProjectCollection, Project.DefaultNewProjectTemplateOptions); 758return Create(path, ProjectCollection.GlobalProjectCollection, Project.DefaultNewProjectTemplateOptions); 776return Create(path, projectCollection, Project.DefaultNewProjectTemplateOptions); 1718return new ProjectRootElement(projectRootElementCache, Project.DefaultNewProjectTemplateOptions); 1848internal void MarkProjectDirty(Project project)
Construction\Solution\SolutionProjectGenerator.cs (2)
21using Project = Microsoft.Build.Evaluation.Project; 2143Project msbuildProject = new Project(project.AbsolutePath, _globalProperties, childProjectToolsVersion);
Definition\Project.cs (14)
493public static Project FromFile(string file, ProjectOptions options) 512public static Project FromProjectRootElement(ProjectRootElement rootElement, ProjectOptions options) 531public static Project FromXmlReader(XmlReader reader, ProjectOptions options) 825/// <see cref="Project.ReevaluateIfNecessary()" /> 1677ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}"); 1880public ProjectImpl(Project owner, ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings) 1904public ProjectImpl(Project owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) 1939public ProjectImpl(Project owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) 1967private Project Owner { get; } 3398ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}"); 4026internal Data(Project project, PropertyDictionary<ProjectPropertyInstance> globalProperties, string explicitToolsVersion, string explicitSubToolsetVersion, bool CanEvaluateElementsWithFalseConditions) 4227internal Project Project { get; } 4636/// Data class representing a result from <see cref="Project.GetAllGlobs()"/> and its overloads. 4733/// Data class representing a result from <see cref="Project.GetItemProvenance(string)"/> and its overloads.
Definition\ProjectCollection.cs (50)
187/// Whether <see cref="Project.MarkDirty()">MarkDirty()</see> is temporarily disabled on 412/// Raised when a <see cref="Project"/> contained by this instance is directly changed. 586public ICollection<Project> LoadedProjects => GetLoadedProjects(true, null); 797/// Whether <see cref="Project.MarkDirty()">MarkDirty()</see> is temporarily disabled on 1097public ICollection<Project> GetLoadedProjects(string fullPath) 1107internal ICollection<Project> GetLoadedProjects(bool includeExternal, string fullPath = null) 1109List<Project> loaded; 1112loaded = fullPath == null ? new List<Project>(_loadedProjects) : new List<Project>(_loadedProjects.GetMatchingProjectsIfAny(fullPath)); 1133public Project LoadProject(string fileName) 1145public Project LoadProject(string fileName, string toolsVersion) 1158public Project LoadProject(string fileName, IDictionary<string, string> globalProperties, string toolsVersion) 1209Project project = _loadedProjects.GetMatchingProjectIfAny(fileName, globalProperties, effectiveToolsVersion); 1228public Project LoadProject(XmlReader xmlReader) 1240public Project LoadProject(XmlReader xmlReader, string toolsVersion) 1253public Project LoadProject(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion) 1340public void UnloadProject(Project project) 1390Project conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement)); 1408foreach (Project project in _loadedProjects) 1453var projects = new List<Project>(_loadedProjects); 1454foreach (Project project in projects) 1480var projects = new List<Project>(_loadedProjects); 1481foreach (Project project in projects) 1527/// Returns false if it was not unloaded because it was still in use by a loaded <see cref="Project"/>. 1542Project conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement)); 1568internal void OnAfterRenameLoadedProject(string oldFullPathIfAny, Project project) 1607internal void AfterUpdateLoadedProjectGlobalProperties(Project project) 2429private class LoadedProjectCollection : IEnumerable<Project> 2444private Dictionary<string, List<Project>> _loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase); 2468public IEnumerator<Project> GetEnumerator() 2472var projects = new List<Project>(); 2474foreach (List<Project> projectList in _loadedProjects.Values) 2476foreach (Project project in projectList) 2498internal IList<Project> GetMatchingProjectsIfAny(string fullPath) 2502_loadedProjects.TryGetValue(fullPath, out List<Project> candidates); 2504return candidates ?? (IList<Project>)Array.Empty<Project>(); 2513internal Project GetMatchingProjectIfAny(string fullPath, IDictionary<string, string> globalProperties, string toolsVersion) 2517if (_loadedProjects.TryGetValue(fullPath, out List<Project> candidates)) 2519foreach (Project candidate in candidates) 2536internal void AddProject(Project project) 2540if (!_loadedProjects.TryGetValue(project.FullPath, out List<Project> projectList)) 2542projectList = new List<Project>(); 2546foreach (Project existing in projectList) 2563internal bool RemoveProject(Project project) 2572internal bool RemoveProject(string projectFullPath, Project project) 2576if (!_loadedProjects.TryGetValue(projectFullPath, out List<Project> projectList)) 2604_loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase); 2613private static bool HasEquivalentGlobalPropertiesAndToolsVersion(Project project, IDictionary<string, string> globalProperties, string toolsVersion)
Definition\ProjectItem.cs (8)
38private readonly Project _project; 110internal ProjectItem(ProjectItemElement xml, Project project) 123Project project, 236public Project Project 816/// Called ONLY by <see cref="Microsoft.Build.Evaluation.Project.SplitItemElementIfNecessary(ProjectItemElement)"/> 911private readonly Project _project; 923internal ProjectItemFactory(Project project) 933internal ProjectItemFactory(Project project, ProjectItemElement xml)
Definition\ProjectItemDefinition.cs (3)
36private readonly Project _project; 56internal ProjectItemDefinition(Project project, string itemType) 73public Project Project
Definition\ProjectLoadSettings.cs (3)
53/// By default, evaluations performed via <see cref="Project"/> evaluate and collect elements whose conditions were false (e.g. <see cref="Project.ItemsIgnoringCondition"/>). 54/// This flag turns off this behaviour. <see cref="Project"/> members that collect such elements will throw when accessed.
Definition\ProjectMetadata.cs (1)
175public Project Project
Definition\ProjectOptions.cs (1)
14/// Common <see cref="Project" /> constructor arguments.
Definition\ProjectProperty.cs (11)
29private readonly Project _project; 41internal ProjectProperty(Project project) 50internal ProjectProperty(Project project, string evaluatedValueEscaped) 194public Project Project 279internal static ProjectProperty Create(Project project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext = null) 291internal static ProjectProperty Create(Project project, ProjectPropertyElement xml, string evaluatedValueEscaped, ProjectProperty predecessor) 331private static bool ProjectHasMatchingGlobalProperty(Project project, string propertyName) 359internal ProjectPropertyXmlBacked(Project project, ProjectPropertyElement xml, string evaluatedValueEscaped) 504internal ProjectPropertyXmlBackedWithPredecessor(Project project, ProjectPropertyElement xml, string evaluatedValueEscaped, ProjectProperty predecessor) 544internal ProjectPropertyNotXmlBacked(Project project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved) 678Project project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext)
Definition\ResolvedImport.cs (1)
38internal ResolvedImport(Project project, ProjectImportElement importingElement, ProjectRootElement importedProject, int versionEvaluated, SdkResult sdkResult)
Evaluation\Evaluator.cs (2)
199Project project, 299Project project,
Evaluation\IProjectMetadataParent.cs (1)
17Project Project
Evaluation\Preprocessor.cs (3)
32private readonly Project _project; 58private Preprocessor(Project project) 76internal static XmlDocument GetPreprocessedDocument(Project project)
Evaluation\ProjectChangedEventArgs.cs (2)
20internal ProjectChangedEventArgs(Project project) 31public Project Project { get; private set; }
Evaluation\ProjectRootElementCacheBase.cs (1)
81internal virtual void OnProjectDirtied(Project sender, ProjectChangedEventArgs e)
Evaluation\SimpleProjectRootElementCache.cs (1)
138internal override void OnProjectDirtied(Project sender, ProjectChangedEventArgs e)
Graph\ProjectGraph.cs (2)
43/// is provided as a hook to allow scenarios like creating a <see cref="Project" /> 47/// using <see cref="Project.CreateProjectInstance()" /> with the flag
Instance\ProjectInstance.cs (15)
366/// Creates a ProjectInstance from an external created <see cref="Project"/>. 369public ProjectInstance(Project project, ProjectInstanceSettings settings) 419/// Creates a ProjectInstance from an immutable <see cref="Project"/>. 420/// The resulting <see cref="ProjectInstance"/> object wraps the <see cref="Project"/> 424/// <param name="linkedProject">The immutable <see cref="Project"/>.</param> 426private ProjectInstance(Project linkedProject, bool fastItemLookupNeeded) 641internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings) 895/// <param name="project">The immutable <see cref="Project"/> on which the ProjectInstance is based.</param> 897public static ProjectInstance FromImmutableProjectSource(Project project, ProjectInstanceSettings settings) 903private static IRetrievableEntryHashSet<ProjectItemDefinitionInstance> GetImmutableItemDefinitionsHashSetFromImmutableProject(Project linkedProject) 920Project linkedProject, 942Project linkedProject, 1006private static PropertyDictionary<ProjectPropertyInstance> GetImmutablePropertyDictionaryFromImmutableProject(Project linkedProject) 1170/// See <see cref="Project.LastEvaluationId"/>. 3379Project linkedProject,
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemDefinitionLink.cs (1)
20public abstract Project Project { get; }
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
21public abstract Project Project { get; }
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (47)
19/// Allow for creating a local representation to external object of type <see cref="Project"/> 24/// Access to remote <see cref="Project.Xml"/>. 29/// Access to remote <see cref="Project.ThrowInsteadOfSplittingItemElement"/>. 34/// Access to remote <see cref="Project.IsDirty"/>. 39/// Access to remote <see cref="Project.GlobalProperties"/>. 44/// Access to remote <see cref="Project.ItemTypes"/>. 49/// Access to remote <see cref="Project.Properties"/>. 54/// Access to remote <see cref="Project.ConditionedProperties"/>. 59/// Access to remote <see cref="Project.ItemDefinitions"/>. 64/// Access to remote <see cref="Project.Items"/>. 69/// Access to remote <see cref="Project.ItemsIgnoringCondition"/>. 74/// Access to remote <see cref="Project.Imports"/>. 79/// Access to remote <see cref="Project.ImportsIncludingDuplicates"/>. 84/// Access to remote <see cref="Project.Targets"/>. 89/// Access to remote <see cref="Project.AllEvaluatedProperties"/>. 94/// Access to remote <see cref="Project.AllEvaluatedItemDefinitionMetadata "/>. 99/// Access to remote <see cref="Project.AllEvaluatedItems "/>. 104/// Access to remote <see cref="Project.ToolsVersion"/>. 109/// Access to remote <see cref="Project.SubToolsetVersion"/>. 114/// Access to remote <see cref="Project.SkipEvaluation"/>. 119/// Access to remote <see cref="Project.DisableMarkDirty"/>. 124/// Access to remote <see cref="Project.IsBuildEnabled"/>. 129/// Access to remote <see cref="Project.LastEvaluationId"/>. 134/// Facilitate remoting the <see cref="Project.GetAllGlobs(EvaluationContext)"/>. 139/// Facilitate remoting the <see cref="Project.GetAllGlobs(string, EvaluationContext)"/>. 144/// Facilitate remoting the <see cref="Project.GetItemProvenance(string, EvaluationContext)"/>. 149/// Facilitate remoting the <see cref="Project.GetItemProvenance(string, string, EvaluationContext)"/>. 154/// Facilitate remoting the <see cref="Project.GetItemProvenance(ProjectItem, EvaluationContext)"/>. 159/// Facilitate remoting the <see cref="Project.GetLogicalProject"/>. 164/// Facilitate remoting the <see cref="Project.GetProperty"/>. 169/// Facilitate remoting the <see cref="Project.GetPropertyValue"/>. 174/// Facilitate remoting the <see cref="Project.SetProperty"/>. 179/// Facilitate remoting the <see cref="Project.SetGlobalProperty"/>. 184/// Facilitate remoting the <see cref="Project.AddItem(string, string, IEnumerable{KeyValuePair{string, string}})"/>. 189/// Facilitate remoting the <see cref="Project.AddItemFast(string, string, IEnumerable{KeyValuePair{string, string}})"/>. 194/// Facilitate remoting the <see cref="Project.GetItems"/>. 199/// Facilitate remoting the <see cref="Project.GetItemsIgnoringCondition"/>. 204/// Facilitate remoting the <see cref="Project.GetItemsByEvaluatedInclude"/>. 209/// Facilitate remoting the <see cref="Project.RemoveProperty"/>. 214/// Facilitate remoting the <see cref="Project.RemoveGlobalProperty"/>. 219/// Facilitate remoting the <see cref="Project.RemoveItem"/>. 224/// Facilitate remoting the <see cref="Project.RemoveItems"/>. 229/// Facilitate remoting the <see cref="Project.ExpandString"/>. 234/// Facilitate remoting the <see cref="Project.CreateProjectInstance(ProjectInstanceSettings, EvaluationContext)"/>. 239/// Facilitate remoting the <see cref="Project.MarkDirty"/>. 244/// Facilitate remoting the <see cref="Project.ReevaluateIfNecessary(EvaluationContext)"/>. 249/// Facilitate remoting the <see cref="Project.SaveLogicalProject"/>.
ObjectModelRemoting\DefinitionObjectsLinks\ProjectPropertyLink.cs (1)
20public abstract Project Project { get; }
ObjectModelRemoting\ExternalProjectsProvider.cs (1)
21public abstract ICollection<Project> GetLoadedProjects(string filePath);
ObjectModelRemoting\LinkedObjectFactory.cs (9)
73public static IReadOnlyCollection<Project> GetLocalProjects(ProjectCollection collection, string projectFile = null) 75return (IReadOnlyCollection<Project>)collection.GetLoadedProjects(false, projectFile); 80public ProjectItem Create(ProjectItemLink link, Project project = null, ProjectItemElement xml = null) 88public ProjectItemDefinition Create(ProjectItemDefinitionLink link, Project project = null) 95public Project Create(ProjectLink link) 112public ProjectProperty Create(ProjectPropertyLink link, Project project = null) 245internal LinkedProjectItem(ProjectItemElement xml, Project project, ProjectItemLink link) 269internal LinkedProjectItemDefinition(ProjectItemDefinitionLink link, Project project, string itemType) 324internal LinkedProjectProperty(Project project, ProjectPropertyLink link)
Microsoft.Build.Engine.OM.UnitTests (566)
Construction\ConstructionEditing_Tests.cs (3)
2324Project project = projectFromString.Project; 2352Project project = projectFromString.Project; 3232var p = new Project(testProject.ProjectFile);
Construction\ElementLocationPublic_Tests.cs (1)
117var project = ObjectModelHelpers.CreateInMemoryProject(content);
Construction\ProjectChooseElement_Tests.cs (1)
275Project project = projectFromString.Project;
Construction\ProjectFormatting_Tests.cs (19)
117Project project = new Project(xml); 153Project project = new Project(xml); 188Project project = new Project(xml); 220Project project = new Project(xml); 249Project project = new Project(xml); 284Project project = new Project(xml); 323Project project = new Project(xml); 366Project project = new Project(xml); 393Project project = new Project(xml); 418Project project = new Project(xml); 448Project project = new Project(xml); 473Project project = new Project(xml); 535Project project = new Project(); 560Project project = new Project(NewProjectFileOptions.None); 581Project project = new Project(NewProjectFileOptions.None); 603Project project = new Project(NewProjectFileOptions.IncludeXmlNamespace); 626Project project = new Project(NewProjectFileOptions.IncludeXmlDeclaration); 646Project project = new Project(NewProjectFileOptions.None); 694var project = new Project(ProjectRootElement.Open(file, ProjectCollection.GlobalProjectCollection));
Construction\ProjectImportElement_Tests.cs (3)
179Project project = projectFromString.Project; 218Project project = projectFromString.Project; 264Project msbuildProject = new Project(projectfile);
Construction\ProjectItemElement_Tests.cs (3)
957Project project = new Project(); 973Project project = new Project(); 989Project project = new Project();
Construction\ProjectMetadataElement_Tests.cs (12)
565var project = new Project(projectElement); 608var project = new Project(projectElement); 682var project = new Project(projectElement); 725var project = new Project(projectElement); 811var project = new Project(projectElement); 874var project = new Project(projectElement); 943var project = new Project(projectElement); 986var project = new Project(projectElement); 1058var project = new Project(projectElement); 1098var project = new Project(projectElement); 1169var project = new Project(projectElement); 1216var project = new Project(projectElement);
Construction\ProjectRootElement_Tests.cs (3)
1025Project[] projects = new Project[iterations]; 1749var project = new Project(rootElement, null, null, projectCollection);
Construction\WhiteSpacePreservation_Tests.cs (2)
446Action<ProjectRootElement, Project> act) 473var project = new Project(projectElement);
Definition\DefinitionEditing_Tests.cs (94)
25public delegate void SetupProject(Project p); 150Project project = new Project(); 177Project project = new Project(); 204Project project = new Project(); 232Project project = new Project(); 244Project project = new Project(); 265Project project = new Project(); 289Project project = new Project(); 312Project project = new Project(); 328Project project = new Project(); 345Project project = new Project(); 369Project project = new Project(); 394Project project = new Project(); 419Project project = new Project(); 445Project project = new Project(); 470Project project = new Project(); 495Project project = new Project(); 521Project project = new Project(); 557Project project = new Project(); 585Project project = new Project(); 613Project project = new Project(); 641Project project = new Project(); 672Project project = new Project(); 720Project project = projectFromString.Project; 760Project project = projectFromString.Project; 793Project project = new Project(); 829Project project = new Project(); 856Project project = new Project(); 883Project project = new Project(); 910Project project = new Project(); 938Project project = new Project(); 970Project project = new Project(); 1000Project project = projectFromString.Project; 1030Project project = new Project(); 1058Project project = new Project(); 1098Project project = new Project(); 1138Project project = new Project(); 1169Project project = new Project(); 1209Project project = new Project(); 1265Project project = new Project(); 1302Project project = new Project(); 1335Project project = projectFromString.Project; 1361Project project = new Project(); 1393Project project = new Project(); 1435Project project = projectFromString.Project; 1472Project project = new Project(); 1497Project project = new Project(); 1527Project project = new Project(xml); 1542Project project = new Project(); 1558Project project = new Project(); 1573Project project = new Project(); 1591Project project = new Project(); 1606Project project = new Project(); 1621Project project = new Project(); 1636Project project = new Project(); 1651Project project = new Project(); 1725Project project = new Project(); 1740Project project = new Project(); 1762Project project = new Project(); 1781Project project = new Project(); 1800Project project = new Project(); 1818Project project = new Project(); 1842Project project = new Project(); 1865Project project = new Project(); 1893Project project = new Project(); 1922Project project = new Project(); 1952Project project = new Project(); 1969Project project = new Project(); 2009Project project = projectFromString.Project; 2047Project project = new Project(xml); 2074Project project = new Project(); 2101Project project = new Project(); 2128Project project = new Project(); 2156Project project = new Project(); 2168Project project = new Project(); 2189Project project = new Project(); 2213Project project = new Project(); 2236Project project = new Project(); 2252Project project = new Project(); 2266Project project = new Project(); 2290Project project = new Project(); 2315Project project = new Project(); 2340Project project = new Project(); 2366Project project = new Project(); 2391Project project = new Project(); 2416Project project = new Project(); 2442Project project = new Project(); 2474Project project = new Project(); 2502Project project = new Project(); 2530Project project = new Project(); 2558Project project = new Project(); 2574private static void AssertDisabledItemSplitting(string projectContents, int itemIndex, SetupProject setupProject, Action<Project, ProjectItem> itemOperation, string metadataToInsert = "", Func<string, Project> projectProvider = null) 2583Project project;
Definition\EditingElementsReferencedByOrReferences_Tests.cs (10)
27Project project = GetProject( 61Project project = GetProject( 90Project project = GetProject( 119Project project = GetProject( 170Project project = GetProject( 222Project project = GetProject( 276Project project = GetProject( 315Project project = GetProject( 341private Project GetProject(string contents) 344Project project = projectFromString.Project;
Definition\Project_Tests.cs (119)
110Project project = new Project(xml); 138Project project = new Project(xml, null, null, collection); 166Project project = new Project(xml, null, null, collection); 189Project project = new Project(file); 214Project project = null; 260Project project = new Project(reader); 279Project project = (new ProjectCollection()).LoadProject(reader); 294Project project = new Project(reader); 311Project project2 = new Project(reader); 327Project project = new Project(xml); 341Project project = new Project(xml); 373Project project = new Project(xml, null, null, collection, ProjectLoadSettings.IgnoreMissingImports); 389Project project = new Project(xml, null, null, new ProjectCollection(), ProjectLoadSettings.IgnoreMissingImports); 408Project project = new Project(collection); 440Project project = new Project(collection); 444Project project2 = new Project(collection); 476Project project = new Project(collection); 481Project project2 = new Project(collection); 515Project project = new Project(collection); 520Project project2 = new Project(collection); 524Project project3 = new Project(collection); 546Project project = new Project(xml); 599Project project = new Project(xml); 645Project project = new Project(xml); 680Project project = new Project(xml); 718Project project = new Project(xml); 754Project project = new Project(xml); 792Project project = new Project(xml); 815Project project = new Project(xml, globalProperties, null); 831Project project = new Project(xml, globalProperties, null); 846Project project = new Project(xml); 858Project project = new Project(); 877Project project = new Project(); 892Project project = new Project(); 919Project project = new Project(); 931Project project = new Project(); 950Project project = new Project(); 963Project project = new Project(ProjectRootElement.Create(), initial, null); 992Project project = new Project(collection); 1012Project project = new Project(); 1028Project project = new Project(); 1049Project project = new Project(); 1069Project project = new Project( 1088Project project = new Project(xml); 1101Project project = new Project(); 1119Project project = new Project(); 1148Project project = new Project(); 1172Project project = new Project(); 1200Project project = new Project(); 1213Project project = new Project(); 1233Project p = new Project(GetSampleProjectRootElement(), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1263Project p = new Project(GetSampleProjectRootElement(), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1291Project p = new Project(GetSampleProjectRootElement(), globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 1323Project p = new Project(GetSampleProjectRootElement(), globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, "ABCDEF", collection, ProjectLoadSettings.Default); 1341Project project = new Project(); 1366Project project = new Project(path); 1395Project project = new Project(); 1460Project project = new Project(projectCollection); 1500Action<string, string, string, Project> assertContents = (p, i, m, project) => 1525var project = new Project(projectCollection); 1543var newProject = new Project(projectCollection); 1586Action<string, string, string, Project> assertContents = (p, i, m, project) => 1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 1634Project project = new Project(); 1661Project project = new Project(); 1684Project project = new Project(); 1709Project project = new Project(); 1747Project project = new Project(projectConstruction); 1790Project project = new Project(); 1811Project project = new Project(); 1825Project project = new Project(); 1855Project project = projectFromString.Project; 1891Project project = projectFromString.Project; 1927Project project = projectFromString.Project; 1976Project project = projectFromString.Project; 2010Project project = projectFromString.Project; 2043Project project = projectFromString.Project; 2054Project project = new Project(); 2074Project project = new Project(); 2106Project project = projectFromString.Project; 2143Project project = new Project(xml); 2157Project project = new Project(xml); 2171Project project = new Project(xml); 2183Project project = projectFromString.Project; 2220Project project = projectFromString.Project; 2243Project project = projectFromString.Project; 2266Project project = projectFromString.Project; 2290Project project = projectFromString.Project; 2315Project project = projectFromString.Project; 2350Project project = projectFromString.Project; 2365Project project = new Project(); 2382Project project1 = new Project(root1); 2383Project project2 = new Project(root2); 2403Project project = projectFromString.Project; 2423Project project = new Project(globalProperties, null, new ProjectCollection()); 2508Project project = new Project(projectPath); 2571Project project = new Project(zero); 2617Project project = new Project(zero); 2655Project project = new Project(XmlReader.Create(new StringReader(projectOriginalContents))); 2703Project project = new Project(XmlReader.Create(new StringReader(projectOriginalContents))); 2878var project = ObjectModelHelpers.CreateInMemoryProject(projectContents); 3254var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3284var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3575var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3770var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3864var project = new Project(null, null, projectCollection); 3907Project unused = new Project(pre, null, null, collection); 3948Project unused = new Project(pre, null, null, collection); 3992Project unused = new Project(pre, null, null, collection, ProjectLoadSettings.IgnoreEmptyImports); 4039Project unused = new Project(pre, null, null, collection, ProjectLoadSettings.IgnoreInvalidImports); 4079Project unused = new Project(pre, null, null, collection, ProjectLoadSettings.IgnoreInvalidImports); 4122Project unused = new Project(pre, null, null, collection, ProjectLoadSettings.IgnoreMissingImports); 4165Project unused = new Project(pre, null, null, collection); 4211Project unused = new Project(pre2, null, null, collection); 4242Project project = new Project(projectXml); 4267Project project = new Project(collection); 4335Project p; 4343private static void GetProjectAndItemAtPosition(string project, string itemValue, int position, out Project p, out ProjectItem item) 4418private void VerifyContentOfSampleProject(Project project)
Definition\ProjectCollection_Tests.cs (57)
70Project project = new Project(path); 72Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject(path); 95Project project = new Project(); 101Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject(path); 125Project project = new Project(collection); 130Project project2 = collection.LoadProject(path); 149var project = new Project { FullPath = "c:\\x" }; 150Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\x"); 168Project project = collection.LoadProject(path); 199Project project = collection.LoadProject(path, "4.0"); 230Project project = collection.LoadProject(path, null, "4.0"); 254Project project = collection.LoadProject(reader); 270Project project = collection.LoadProject(reader, ObjectModelHelpers.MSBuildDefaultToolsVersion); 284var project = new Project(collection); 323var project1 = new Project { FullPath = "c:\\1" }; 326var project2 = new Project(collection) { FullPath = "c:\\1" }; 347Project project1 = collection1.LoadProject(path); 348Project project1b = collection1.LoadProject(path); 353Project project2 = collection2.LoadProject(path); 386var project = new Project { FullPath = "c:\\1" }; 412var project1 = 419var project2 = 428List<Project> projects = Helpers.MakeList(ProjectCollection.GlobalProjectCollection.LoadedProjects); 443var project = new Project { FullPath = "c:\\1" }; 458Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\1", project2Globals, null); 510var project1 = new Project(xml, null, "2.0") { FullPath = "c:\\1" }; 512var project2 = new Project(xml, null, ObjectModelHelpers.MSBuildDefaultToolsVersion) { FullPath = "c:\\1" }; 531Project project = projectFromString.Project; 534Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null); 553Project project = projectFromString.Project; 556Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null); 569var project = new Project(collection) { FullPath = "c:\\x" }; 573Project newProject = collection.LoadProject("c:\\x", globalProperties, null); 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" }; 807var project = new Project { FullPath = "c:\\1" }; 835Project project = new Project(); 840Project project2 = collection.LoadProject(file1); 874var project = new Project(); 880Project project2 = collection.LoadProject(file1); 883Project project3 = collection.LoadProject(file1); 917var project = new Project(); 926Project project3 = collection.LoadProject(file1); 1159Project project = projectFromString.Project; 1268Project project = collection.LoadProject(reader, ObjectModelHelpers.MSBuildDefaultToolsVersion); 1375var project = new Project(pre); 1392Project project = null;
Definition\ProjectItem_Tests.cs (42)
79Project project = new Project(); 162Project project = projectFromString.Project; 784Project project = new Project(); 836Project project = new Project(projectCollection); 1197Project project = projectFromString.Project; 1240Project project = projectFromString.Project; 1291Project project = projectFromString.Project; 1361Project project = projectFromString.Project; 1459Project project = projectFromString.Project; 1871Project project = new Project(); 1894Project project = new Project(xml); 1918Project project = new Project(xml); 1930Project project = new Project(); 1950Project project = new Project(xml); 1963Project project = new Project(); 1994var project = new Project(); 2021Project project = new Project(); 2039Project project = new Project(); 2059Project import = new Project(); 2065Project project = new Project(xml); 2090Project import = new Project(); 2096Project project = new Project(xml); 2121Project import = new Project(); 2128Project project = new Project(xml); 2157var project = ObjectModelHelpers.CreateInMemoryProject(env.CreateProjectCollection().Collection, projectContents); 2183var project = ObjectModelHelpers.CreateInMemoryProject(env.CreateProjectCollection().Collection, projectContents); 2216var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2276var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2383var project = ObjectModelHelpers.CreateInMemoryProject(projectContents); 2400var project = ObjectModelHelpers.CreateInMemoryProject(projectContents); 2421var project = ObjectModelHelpers.CreateInMemoryProject(content); 2448var project = ObjectModelHelpers.CreateInMemoryProject(content); 2480var project = ObjectModelHelpers.CreateInMemoryProject(content); 2525var project = ObjectModelHelpers.CreateInMemoryProject(content); 2556var project = ObjectModelHelpers.CreateInMemoryProject(env.CreateProjectCollection().Collection, content); 2593var project = ObjectModelHelpers.CreateInMemoryProject(env.CreateProjectCollection().Collection, content); 2624var project = ObjectModelHelpers.CreateInMemoryProject(content); 2655Project project = ObjectModelHelpers.CreateInMemoryProject(content); 2684Project project = ObjectModelHelpers.CreateInMemoryProject(content); 2760var project = ObjectModelHelpers.CreateInMemoryProject(ObjectModelHelpers.FormatProjectContentsWithItemGroupFragment(projectContents)); 2802var project = ObjectModelHelpers.CreateInMemoryProject(ObjectModelHelpers.FormatProjectContentsWithItemGroupFragment(projectContents)); 3756var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), null, projectCollection);
Definition\ProjectItemDefinition_Tests.cs (25)
35Project project = new Project(xml); 64Project project = new Project(xml); 81Project project = new Project(xml); 102Project project = new Project(xml); 131Project project = new Project(main); 161Project project = new Project(main); 215Project project = projectFromString.Project; 246Project project = projectFromString.Project; 273Project project = projectFromString.Project; 300Project project = projectFromString.Project; 331Project project = projectFromString.Project; 359Project project = projectFromString.Project; 363Assert.Equal("%25(filename)", Project.GetMetadataValueEscaped(item, "m")); 389Project project = projectFromString.Project; 417Project project = projectFromString.Project; 452Project project = projectFromString.Project; 485Project project = new Project(XmlReader.Create(new StringReader(content))); 507Project project = new Project(XmlReader.Create(new StringReader(content))); 529Project project = new Project(XmlReader.Create(new StringReader(content))); 551Project project = new Project(XmlReader.Create(new StringReader(content))); 573Project project = new Project(XmlReader.Create(new StringReader(content))); 595Project project = new Project(XmlReader.Create(new StringReader(content))); 617Project project = new Project(XmlReader.Create(new StringReader(content))); 639Project project = new Project(XmlReader.Create(new StringReader(content))); 659Project project = projectFromString.Project; // No exception
Definition\ProjectMetadata_Tests.cs (19)
29Project project = new Project(); 56Project project = new Project(projectXml); 89Project project = new Project(); 109Project project = new Project(); 127Project project = new Project(); 160Project project = projectFromString.Project; 187Project project = projectFromString.Project; 213Project project = projectFromString.Project; 240Project project = projectFromString.Project; 272Project project = projectFromString.Project; 304Project project = projectFromString.Project; 336Project project = projectFromString.Project; 367Project project = projectFromString.Project; 396Project project = projectFromString.Project; 430Project project = projectFromString.Project; 447Project project = new Project(); 467Project project = new Project(xml); 493Project project = projectFromString.Project; 505Microsoft.Build.Evaluation.Project project = new Microsoft.Build.Evaluation.Project();
Definition\ProjectProperty_Tests.cs (14)
29Project project = new Project(); 86Project project = new Project(); 103Project project = new Project(); 121Project project = new Project(); 138Project project = new Project(); 154Project project = new Project(); 177Project project = new Project(); 194Project project = new Project(globalProperties, null, ProjectCollection.GlobalProjectCollection); 208Project project = new Project(); 224Project project = new Project(); 243Project project = new Project(); 266Project import = new Project(); 272Project project = new Project(xml); 291Project project = new Project(projectXml);
Definition\ProtectImports_Tests.cs (33)
134Project project = GetProject(); 149Project project = GetProject(); 165Project project = GetProject(); 184Project project = GetProject(); 199Project project = GetProject(); 214Project project = GetProject(); 229Project project = GetProject(); 242Project project = GetProject(); 256Project project = GetProject(); 270Project project = GetProject(); 284Project project = GetProject(); 304Project project = GetProject(); 319Project project = GetProject(); 334Project project = GetProject(); 349Project project = GetProject(); 362Project project = GetProject(); 376Project project = GetProject(); 391Project project = GetProject(); 407Project project = GetProject(); 427Project project = GetProject(); 442Project project = GetProject(); 455Project project = GetProject(); 469Project project = GetProject(); 483Project project = GetProject(); 523private ProjectItem GetImportedItem(Project project) 539private ProjectMetadata GetImportedMetadata(Project project) 556private ProjectMetadata GetNonOverridableMetadata(Project project) 573private ProjectMetadata GetOverridableMetadata(Project project) 589private Project GetProject() 607Project project = projectFromString.Project; 617private ProjectProperty GetProperty(Project project) 630private ProjectItem GetProjectItem(Project project) 646private ProjectMetadata GetProjectMetadata(Project project)
Instance\ProjectInstance_Tests.cs (7)
40Project p = new Project(); 204Project p = new Project(ProjectRootElement.Create(), globals, null); 427var projBEval = new Project(projB, null, null, pc); 469var projBEval = new Project(projB, null, null, pc, loadSettings); 511var projBEval = new Project(projB, null, null, pc); 1031Project project = projectFromString.Project; 1043Project project = new Project(xml);
Instance\ProjectItemInstance_Tests.cs (3)
251Project project = new Project(); 346Project project = new Project(); 1193Project project = new Project();
Instance\ProjectMetadataInstance_Tests.cs (1)
34Project project = new Project();
Instance\ProjectOnErrorInstance_Tests.cs (1)
47Project project = new Project(xml);
Instance\ProjectPropertyInstance_Tests.cs (2)
91var project = new Project(); 103Project project = new Project();
Instance\ProjectTargetInstance_Tests.cs (5)
56Project project = new Project(projectXml); 76Project project = new Project(projectXml); 96Project project = new Project(projectXml); 121Project project = new Project(projectXml); 147Project project = new Project(xml);
Instance\ProjectTaskInstance_Tests.cs (1)
77Project project = new Project(xml);
Instance\ProjectTaskOutputItemInstance_Tests.cs (1)
50Project project = new Project(xml);
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (1)
50Project project = new Project(xml);
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (8)
200private IReadOnlyDictionary<ProjectCollectionLinker, HashSet<Project>> ImmutableProjects { get; set; } 205var result = new Dictionary<ProjectCollectionLinker, HashSet<Project>>(); 207result.Add(this.Local, new HashSet<Project>(this.Local.Collection.LoadedProjects)); 211result.Add(r, new HashSet<Project>(r.Collection.LoadedProjects)); 245HashSet<Project> toKeep = null; 253var toUnload = new List<Project>(); 254foreach (var p in linker.Collection.LoadedProjects) 262foreach (var p in toUnload)
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (4)
472public static void VerifyProjectCollectionLinks(IEnumerable<Project> projects, int expectedLocal, int expectedLinks) 474HashSet<Project> remotes = new HashSet<Project>(); 477foreach (var prj in projects)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
270if (VerifyCheckType<Project>(view, real, context, Verify))
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (10)
14internal sealed class ProjectPair : LinkPair<Project> 16public ProjectPair(Project view, Project real) 54var toAdd = this.Get(where); 61var toAdd = this.Get(where); 83var toAdd = this.Get(where); 310public static void Verify(Project view, Project real, ValidationContext context = null) 328var real = pair.Real; 329var view = pair.View;
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
19public Project LocalBig { get; } 20public Project TargetBig { get; } 43var newReal = this.StdGroup.Target.LoadInMemoryWithSettings(TestCollectionGroup.SampleProjectFile); 45var newView = this.StdGroup.Local.GetLoadedProjects(tempPath).FirstOrDefault();
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (3)
30var projReal = this.Remote[0].LoadProjectIgnoreMissingImports(this.BigFile); 35var projView = this.Local.GetLoadedProjects(this.BigFile).FirstOrDefault(); 47var projView = this.Local.GetLoadedProjects(this.BigFile).FirstOrDefault();
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (8)
38var realProj = pcRemote.LoadProject(proj1Path); 40var viewProj = pcLocal.Collection.GetLoadedProjects(proj1Path).FirstOrDefault(); 112var realProj = pcRemote.LoadProject(proj1Path); 114var viewProj = pcLocal.Collection.GetLoadedProjects(proj1Path).FirstOrDefault(); 308var realProj = pcRemote.LoadProject(proj1Path); 310var viewProj = pcLocal.Collection.GetLoadedProjects(proj1Path).FirstOrDefault(); 344var realProj = pcRemote.LoadProject(proj1Path); 346var viewProj = pcLocal.Collection.GetLoadedProjects(proj1Path).FirstOrDefault();
ObjectModelRemoting\LinkedEvaluationReadOnly_Tests.cs (5)
17public Project Real { get; } 18public Project View { get; private set; } 24var projReal = this.Remote[0].LoadProjectWithSettings(this.BigFile, ProjectLoadSettings.IgnoreMissingImports | ProjectLoadSettings.RecordDuplicateButNotCircularImports); 29var projView = this.Local.GetLoadedProjects(this.BigFile).FirstOrDefault(); 41var projView = this.Local.GetLoadedProjects(this.BigFile).FirstOrDefault();
ObjectModelRemoting\LinkedProjectCollection_Tests.cs (12)
35var proj1 = pcLocal.LoadProject(proj1Path); 36var proj2 = pcRemote.LoadProject(proj2Path); 55var localProj = pcLocal.Collection.GetLoadedProjects(proj1Path).FirstOrDefault(); 58var remoteProj = pcLocal.Collection.GetLoadedProjects(proj2Path).FirstOrDefault(); 75var proj0local = pcLocal.LoadProject(proj0Path); 76var proj1local = pcLocal.LoadProject(proj1Path); 78var proj1remote0 = pcRemote0.LoadProject(proj1Path); 79var proj2remote0 = pcRemote0.LoadProject(proj2Path); 81var proj2remote1 = pcRemote1.LoadProject(proj2Path); 82var proj3remote1 = pcRemote1.LoadProject(proj3Path); 110foreach (var p in prj2Coll) 139var proj1 = pcRemote.LoadProject(proj1Path);
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (7)
22public Project LocalBig { get; } 23public Project TargetBig { get; } 24public Project GuestBig { get; } 54var targetView = this.Local.GetLoadedProjects(this.TargetBigPath).FirstOrDefault(); 61var guestView = this.Local.GetLoadedProjects(this.GuestBigPath).FirstOrDefault(); 80var newReal = this.StdGroup.Target.LoadInMemoryWithSettings(content, ProjectLoadSettings.IgnoreMissingImports); 82var newView = this.StdGroup.Local.GetLoadedProjects(tempPath).FirstOrDefault();
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemDefinitionLink.cs (3)
21public MockProjectLinkRemoter Project => this.OwningCollection.Export<Project, MockProjectLinkRemoter>(this.Source.Project); 45public override Project Project => this.Linker.Import<Project, MockProjectLinkRemoter>(this.Proxy.Project);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (3)
22public MockProjectLinkRemoter Project => this.OwningCollection.Export<Project, MockProjectLinkRemoter>(this.Source.Project); 53public override Project Project => this.Linker.Import<Project, MockProjectLinkRemoter>(this.Proxy.Project);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (2)
19internal sealed class MockProjectLinkRemoter : MockLinkRemoter<Project> 21public override Project CreateLinkedObject(IImportHolder holder)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectPropertyLink.cs (3)
21public MockProjectLinkRemoter Project => this.OwningCollection.Export<Project, MockProjectLinkRemoter>(this.Source.Project); 47public override Project Project => this.Linker.Import<Project, MockProjectLinkRemoter>(this.Proxy.Project);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (11)
163public Project LoadProject(string path) => this.Collection.LoadProject(path); 165public Project LoadProjectIgnoreMissingImports(string path) => LoadProjectWithSettings(path, ProjectLoadSettings.IgnoreMissingImports); 167public Project LoadProjectWithSettings(string path, ProjectLoadSettings settings) => new Project(path, null, null, this.Collection, settings); 170public Project LoadInMemoryWithSettings(string content, ProjectLoadSettings settings = ProjectLoadSettings.Default) 175Project project = new Project(xml, null, null, this.Collection, settings); 344public override ICollection<Project> GetLoadedProjects(string filePath) 346List<Project> result = new List<Project>(); 352result.Add(this.Import<Project, MockProjectLinkRemoter>(remote)); 364foreach (var p in toRemote) 366remoted.Add(this.Export<Project, MockProjectLinkRemoter>(p));
Microsoft.Build.Engine.UnitTests (522)
BackEnd\BatchingEngine_Tests.cs (2)
488Project project = projectFromString.Project; 522Project project = projectFromString.Project;
BackEnd\BuildManager_Tests.cs (36)
442Project project = CreateProject(CleanupFileContents(contents), MSBuildDefaultToolsVersion, _projectCollection, false); 492Project project = CreateProject(CleanupFileContents(contents), MSBuildDefaultToolsVersion, 650var project = CreateProject(contents, null, _projectCollection, false); 703var project = CreateProject(contents, null, _projectCollection, false); 773var project = CreateProject(contents, null, _projectCollection, false); 833var project = CreateProject(contents, null, _projectCollection, false); 900var project = CreateProject(contents, null, projectCollection, false); 931var project = CreateProject(contents, null, _projectCollection, false); 1152var project = CreateProject(contents, null, _projectCollection, false); 1775Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 1806Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 1841Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 1898Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 1926Project project = _projectCollection.LoadProject(data.ProjectFullPath); 1952Project project = _projectCollection.LoadProject(data.ProjectFullPath); 1984Project project = _projectCollection.LoadProject(data.ProjectFullPath); 2044Project project2 = projectCollection2.LoadProject(p2pProject); 2115Project project = projectCollection.LoadProject(rootProjectPath); 2265var project = new Project(fileName); 2316Project project = new Project(fileName); 3121var project1 = new Project(projectPath1); 3126var project2 = new Project(projectPath2); 3189var project1 = new Project(projectPath1); 3204var project2 = new Project(projectPath2); 3274var project1 = new Project(projectPath1); 3289var project2 = new Project(projectPath2); 3408Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 3438Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 3469Project project = CreateProject(contents, MSBuildDefaultToolsVersion, _projectCollection, true); 3578Project project = CreateProject(contents, toolsVersion, projectCollection, deleteTempProject); 3596private Project CreateProject(string contents, string toolsVersion, ProjectCollection projectCollection, bool deleteTempProject) 3599Project project = projectFromString.Project; 3706var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3730var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3857var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, 4411Project project = CreateProject(projectContents, MSBuildDefaultToolsVersion, _projectCollection, true);
BackEnd\BuildRequestConfiguration_Tests.cs (6)
186Project project = projectFromString.Project; 284Project project = projectFromString.Project; 361Project project = projectFromString.Project; 463Project project = projectFromString.Project; 559var project = Project.FromXmlReader(
BackEnd\BuildRequestEngine_Tests.cs (1)
247Project project = projectFromString.Project;
BackEnd\ConfigurationMetadata_Tests.cs (6)
52Project project = null; 75Project project = CreateProject(); 91Project project = CreateProject(); 107Project project = CreateProject(); 144private Project CreateProject() 154Project project = projectFromString.Project;
BackEnd\IntrinsicTask_Tests.cs (59)
190Project p = projectFromString.Project; 227Project p = projectFromString.Project; 914Project p = projectFromString.Project; 953Project p = projectFromString.Project; 1085Project p = projectFromString.Project; 1169Project p = projectFromString.Project; 1224Project p = projectFromString.Project; 1247Project p = projectFromString.Project; 1278Project project = projectFromString.Project; 1310Project project = projectFromString.Project; 1338Project p = projectFromString.Project; 1360Project p = projectFromString.Project; 1380Project p = projectFromString.Project; 1402Project p = projectFromString.Project; 1427Project p = projectFromString.Project; 1452Project p = projectFromString.Project; 1487Project p = projectFromString.Project; 1529Project p = projectFromString.Project; 1580Project p = projectFromString.Project; 1690Project p = projectFromString.Project; 2297Project project = projectFromString.Project; 2331Project project = projectFromString.Project; 2368Project project = projectFromString.Project; 2406Project project = projectFromString.Project; 2442Project project = projectFromString.Project; 2481Project project = projectFromString.Project; 2512Project project = projectFromString.Project; 2568Project p = projectFromString.Project; 2594Project p = projectFromString.Project; 2638Project p = projectFromString.Project; 2681Project p = projectFromString.Project; 2725Project p = projectFromString.Project; 2769Project p = projectFromString.Project; 2814Project p = projectFromString.Project; 2887Project p = projectFromString.Project; 2937Project p = projectFromString.Project; 3167Project p = projectFromString.Project; 3198Project project = projectFromString.Project; 3244Project project = projectFromString.Project; 3286Project p = projectFromString.Project; 3314Project p = projectFromString.Project; 3360Project p = projectFromString.Project; 3405Project p = projectFromString.Project; 3445Project p = projectFromString.Project; 3482Project p = projectFromString.Project; 3508Project p = projectFromString.Project; 3576Project p = projectFromString.Project; 3612Project p = projectFromString.Project; 3643Project p = projectFromString.Project; 3670Project p = projectFromString.Project; 3699Project p = projectFromString.Project; 3728Project p = projectFromString.Project; 3757Project p = projectFromString.Project; 3795Project p = projectFromString.Project; 3823Project p = projectFromString.Project; 3852Project p = projectFromString.Project; 3891Project p = projectFromString.Project; 3953Project project = projectFromString.Project; 3988var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c);
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
471Project msbuildProject = new Project(projectFile);
BackEnd\MSBuild_Tests.cs (18)
82Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 141Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 186Project project = ObjectModelHelpers.CreateInMemoryProject(projectContents, logger); 554Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 623Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 930Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 997Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 1050Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 1119Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 1186Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 1254Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 1340Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents, logger); 1559Project p = ObjectModelHelpers.CreateInMemoryProject(pc, parentProjectContents, logger); 1580Project p2 = ObjectModelHelpers.CreateInMemoryProject(pc, parentProjectContents, logger2); 1689Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents, logger); 1801Project p = ObjectModelHelpers.CreateInMemoryProject(parentProjectContents); 1849Project project = new Project(projectFile2); 1885Project project = new Project(projectFile2);
BackEnd\OnError_Tests.cs (21)
46Project p = projectFromString.Project; 174Project p = projectFromString.Project; 205Project p = projectFromString.Project; 238Project p = projectFromString.Project; 271Project p = projectFromString.Project; 303Project p = projectFromString.Project; 330Project p = projectFromString.Project; 358Project p = projectFromString.Project; 386Project p = projectFromString.Project; 418Project p = projectFromString.Project; 459Project p = projectFromString.Project; 486Project p = projectFromString.Project; 516Project p = projectFromString.Project; 541Project p = projectFromString.Project; 559Project p = new Project(XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(@" 612Project p = projectFromString.Project; 634Project p = projectFromString.Project; 657Project p = projectFromString.Project; 680Project p = projectFromString.Project; 703Project p = projectFromString.Project; 726Project p = projectFromString.Project;
BackEnd\Scheduler_Tests.cs (1)
714Project project = projectFromString.Project;
BackEnd\SdkResultOutOfProc_Tests.cs (2)
222Project project = Project.FromProjectRootElement(projectRootElement, projectOptions);
BackEnd\TargetBuilder_Tests.cs (4)
328Project p = projectFromString.Project; 1348Project project = projectFromString.Project; 1375Project project = projectFromString.Project; 1678Project project = projectFromString.Project;
BackEnd\TargetEntry_Tests.cs (2)
862Project project = projectFromString.Project; 1182Project project = projectFromString.Project;
BackEnd\TargetUpToDateChecker_Tests.cs (10)
60Project p = projectFromString.Project; 91Project p = projectFromString.Project; 121Project p = projectFromString.Project; 320Project p = projectFromString.Project; 349Project p = projectFromString.Project; 378Project p = projectFromString.Project; 408Project p = projectFromString.Project; 443Project p = projectFromString.Project; 521Project p = projectFromString.Project; 608Project project = new Project(projectFile);
BackEnd\TaskBuilder_Tests.cs (13)
80Project project = projectFromString.Project; 133Project project = projectFromString.Project; 169Project project = projectFromString.Project; 239Project project = projectFromString.Project; 292Project project = projectFromString.Project; 363Project project = projectFromString.Project; 413Project project = projectFromString.Project; 451Project project = projectFromString.Project; 479Project project = projectFromString.Project; 503Project project = projectFromString.Project; 534Project project = projectFromString.Project; 565Project project = projectFromString.Project; 1244Project project = projectFromString.Project;
BackEnd\TaskExecutionHost_Tests.cs (1)
1564Project project = projectFromString.Project;
BinaryLogger_Tests.cs (2)
124Project project = ObjectModelHelpers.CreateInMemoryProject(collection, projectText); 220Project project = ObjectModelHelpers.CreateInMemoryProject(collection, projectText);
ChangeWaves_Tests.cs (1)
65Project p = collection.LoadProject(file.Path);
Collections\OMcollections_tests.cs (2)
311Project project = new Project(); 323Project project = new Project();
ConsoleLogger_Tests.cs (4)
146Microsoft.Build.Evaluation.Project project = new Microsoft.Build.Evaluation.Project(); 217var p = pc.Collection.LoadProject(project.ProjectFile); 258var p = pc.Collection.LoadProject(project.ProjectFile); 310var p = pc.Collection.LoadProject(project.ProjectFile);
Construction\SolutionProjectGenerator_Tests.cs (7)
23using Project = Microsoft.Build.Evaluation.Project; 311Project project = new Project(projectXml); 852Project msbuildProject = new Project(projectXml); 1058var automaticProject = new Project(automaticProjectFile); 1105Project msbuildProject = new Project(projectXml); 1175Project msbuildProject = new Project(projectXml); 1220Project msbuildProject = new Project(projectXml);
Construction\XmlReaderWithoutLocation_Tests.cs (1)
163Project project = new Project(noLineInfoReader);
Definition\ItemDefinitionGroup_Tests.cs (57)
43Project p = projectFromString.Project; 71Project p = projectFromString.Project; 104Project p = projectFromString.Project; 147Project p = projectFromString.Project; 165Project p = new Project(XmlReader.Create(new StringReader( 194Project p = new Project(XmlReader.Create(new StringReader( 222Project p = new Project(XmlReader.Create(new StringReader( 277Project p = projectFromString.Project; 297Project p = projectFromString.Project; 318Project p = projectFromString.Project; 347Project p = projectFromString.Project; 377Project p = projectFromString.Project; 409Project p = projectFromString.Project; 435Project p = projectFromString.Project; 462Project p = projectFromString.Project; 489Project p = projectFromString.Project; 516Project p = projectFromString.Project; 543Project p = projectFromString.Project; 570Project p = projectFromString.Project; 592Project p = projectFromString.Project; 628Project p = projectFromString.Project; 670Project p = projectFromString.Project; 720Project p = projectFromString.Project; 745Project p = projectFromString.Project; 771Project p = projectFromString.Project; 803Project p = projectFromString.Project; 816Project p = new Project(XmlReader.Create(new StringReader(@" 835Project p = new Project(XmlReader.Create(new StringReader(@" 851Project p = new Project(XmlReader.Create(new StringReader(@" 892Project p = projectFromString.Project; 922Project p = projectFromString.Project; 952Project p = projectFromString.Project; 983Project p = projectFromString.Project; 1014Project p = projectFromString.Project; 1044Project p = projectFromString.Project; 1062Project p = new Project(XmlReader.Create(new StringReader(@" 1114Project p = projectFromString.Project; 1142Project p = projectFromString.Project; 1172Project p = projectFromString.Project; 1202Project p = projectFromString.Project; 1237Project p = projectFromString.Project; 1264Project p = projectFromString.Project; 1293Project p = projectFromString.Project; 1322Project p = projectFromString.Project; 1351Project p = projectFromString.Project; 1384Project p = projectFromString.Project; 1418Project p = projectFromString.Project; 1460Project p = projectFromString.Project; 1518Project p = projectFromString.Project; 1612Project p = projectFromString.Project; 1644Project p = projectFromString.Project; 1671Project p = projectFromString.Project; 1699Project p = projectFromString.Project; 1729Project p = projectFromString.Project; 1790Project p = projectFromString.Project; 1842Project p = projectFromString.Project; 1864private bool ItemContainsMetadata(Project project, string itemType, string itemInclude, string name, string value)
Definition\Project_Internal_Tests.cs (13)
56Project project = projectFromString.Project; 93Project project = projectFromString.Project; 96Project project2 = ProjectCollection.GlobalProjectCollection.LoadProject("c:\\123.proj", null, null); 133Project project = new Project(); 153var project = ObjectModelHelpers.CreateInMemoryProject("<Project></Project>"); 184Project project = new Project(); 239Project project = projectFromString.Project; 279Project project = Project.FromFile( 307Project project = Project.FromProjectRootElement( 337Project project = Project.FromXmlReader(
Definition\ProjectEvaluationContext_Tests.cs (11)
110Project.FromFile( 163var project = Project.FromFile( 206var project = Project.FromXmlReader( 955private void EvaluateProjects(IEnumerable<string> projectContents, EvaluationContext context, Action<Project> afterEvaluationAction) 984private void EvaluateProjects(IEnumerable<ProjectSpecification> projectSpecs, EvaluationContext context, Action<Project> afterEvaluationAction) 988var projects = new List<Project>(); 995var project = Project.FromFile( 1009foreach (var project in projects)
Definition\ProjectHelpers.cs (1)
27Project project = projectFromString.Project;
Definition\ProjectItem_Tests.cs (1)
83Project project = new Project(projectXml);
Definition\ToolsVersion_Tests.cs (5)
314Project project = projectFromString.Project; 351Project project = projectFromString.Project; 387Project project = projectFromString.Project; 417Project project = projectFromString.Project; 449Project project = projectFromString.Project;
EscapingInProjects_Tests.cs (22)
219Project project = ObjectModelHelpers.CreateInMemoryProject(projectOriginalContents); 264Project project = ObjectModelHelpers.CreateInMemoryProject(projectOriginalContents); 312Project project = ObjectModelHelpers.CreateInMemoryProject(projectOriginalContents); 363Project project = ObjectModelHelpers.CreateInMemoryProject(projectOriginalContents); 370Assert.Equal("foo%253Bbar.weirdo", Project.GetEvaluatedItemIncludeEscaped(newItems.First())); 430Project project = ObjectModelHelpers.CreateInMemoryProject(projectOriginalContents); 472Project project = ObjectModelHelpers.CreateInMemoryProject(projectOriginalContents); 480Assert.Equal("foo%253bbar.weirdo", Project.GetEvaluatedItemIncludeEscaped(newItems.First())); // "Newly added item should have correct EvaluatedIncludeEscaped" 514Project project = ObjectModelHelpers.CreateInMemoryProject(projectOriginalContents); 522Assert.Equal("foo.AAA%253bBBB", Project.GetEvaluatedItemIncludeEscaped(newItems.First())); // "Newly added item should have correct EvaluatedIncludeEscaped" 650Project project = new Project(projectElement, null, null, collection); 679Project project = ObjectModelHelpers.CreateInMemoryProject(@" 708Project project = ObjectModelHelpers.CreateInMemoryProject(@" 742Project project = ObjectModelHelpers.CreateInMemoryProject(@" 800Project project = ObjectModelHelpers.CreateInMemoryProject(@" 833Project project = new Project(reader); 845Project project = new Project(); 879Project project = new Project(reader); 911Project project = new Project(reader); 1818internal static IEnumerable<ProjectItem> ModifyItemOfTypeInProject(Project project, string itemType, string oldEvaluatedInclude, string newEvaluatedInclude) 1847Assert.Equal("%3B", Project.GetMetadataValueEscaped(item, "EscapedSemicolon")); 1853Assert.Equal("%24", Project.GetMetadataValueEscaped(item, "EscapedDollarSign"));
Evaluation\EvaluationLogging_Tests.cs (3)
42Action<Project, MockLogger> loggingTest = null, 44Func<Project, MockLogger> reevaluationLoggerFactory = null) 88var project = new Project(projectFile, null, null, collection);
Evaluation\Evaluator_Tests.cs (106)
90Project project = new(projectFile.Path); 164Project project = projectFromString.Project; 172Project fooImport = projectFromStringFoo.Project; 185Project barImport = projectFromStringBar.Project; 320Project project = new Project(subdirProjPath); 516Project project = pc.LoadProject(projectPath); 559Project project = pc.LoadProject(testTargetPath); 604Project project = pc.LoadProject(testTargetPath); 647Project project = pc.LoadProject(testTargetPath); 693Project project = pc.LoadProject(testTargetPath); 737Project project = pc.LoadProject(testTargetPath); 783Project project = pc.LoadProject(testTargetPath); 845Project project = projectFromString.Project; 922Project project = projectFromString.Project; 957Project project = new Project(content.ProjectFile, null, null); 1007Project project = projectFromString.Project; 1071Project project = new Project(XmlReader.Create(new StringReader(manifest)), null, null, pc, ProjectLoadSettings.RejectCircularImports); 1086Project project = new Project(); 1151Project project = new Project(); 1209Project project = projectFromString.Project; 1273Project project = projectFromString.Project; 1310Project project = projectFromString.Project; 1358Project project = new Project(main); 1426Project project = projectFromString.Project; 1449Project project = projectFromString.Project; 1476Project project = projectFromString.Project; 1499Project project = projectFromString.Project; 1525Project project = projectFromString.Project; 1553Project project = projectFromString.Project; 1584Project project = projectFromString.Project; 1623Project project = projectFromString.Project; 1655Project project = projectFromString.Project; 1684Project project = projectFromString.Project; 1723Project project = projectFromString.Project; 1752Project project = projectFromString.Project; 1777Project project = projectFromString.Project; 1807Project project = projectFromString.Project; 1846Project project = projectFromString.Project; 1883Project project = projectFromString.Project; 1915Project project = projectFromString.Project; 2020Project project = projectFromString.Project; 2077Project project = projectFromString.Project; 2138Project project = projectFromString.Project; 2175Project project = projectFromString.Project; 2202Project project = projectFromString.Project; 2213Project project = new Project(); 2313Project project = projectFromString.Project; 2338Project project = projectFromString.Project; 2362Project project = projectFromString.Project; 2442Project project = new Project(collection); 2476Project project = new Project(collection); 2494Project project = new Project(collection); 2552Project project = new Project(collection); 2571Project project = new Project(collection); 2627Project project = new Project(collection); 2646Project project = new Project(collection); 2666Project project = new Project(); 2684Project project = new Project(collection); 2703Project project = new Project(collection); 2715Project project = new Project(xml); 2732Project project = new Project(xml); 2767Project project = new Project(xml); 2786Project project = new Project(xml); 2804Project project = new Project(xml); 2822Project project = new Project(xml); 2888Project project = projectFromString.Project; 2913Project project = projectFromString.Project; 2938Project project = projectFromString.Project; 2968Project project = projectFromString.Project; 2998Project project = projectFromString.Project; 3028Project project = projectFromString.Project; 3058Project project = projectFromString.Project; 3102Project project = projectFromString.Project; 3139Project project = new Project(XmlReader.Create(new StringReader(content)), globalProperties, null); 3174Project project = projectFromString.Project; 3208Project project = projectFromString.Project; 3240Project project = projectFromString.Project; 3270Project project = projectFromString.Project; 3307Project project = projectFromString.Project; 3353Project project = projectFromString.Project; 3407Project project = new Project(primaryProject, globalProperties, null); 3468Project project = new Project(primaryProject, globalProperties, null); 3528Project project = new Project(primaryProject, globalProperties, null); 3602Project project = new Project(primaryProject, globalProperties, null); 3675Project project = new Project(primaryProject, globalProperties, null); 3738Project project = new Project(primaryProject, globalProperties, null); 3800Project project = new Project(primaryProject, globalProperties, null); 3853Project project = projectFromString.Project; 3919Project project = projectFromString.Project; 3971Project project = projectFromString.Project; 4023Project project = projectFromString.Project; 4082Project project = projectFromString.Project; 4145Project project = projectFromString.Project; 4204Project project = projectFromString.Project; 4256Project project = projectFromString.Project; 4300Project project = projectFromString.Project; 4334Project project = new Project(null, ObjectModelHelpers.MSBuildDefaultToolsVersion, collection); 4380Project project = new Project(projectFilename); 4537Project unused = new Project(primaryProject, null, null); 4578Project project = projectFromString.Project; 4638Project project = new Project(primaryProject.ProjectFile, null, null); 4668Project project = new Project(primaryProject.ProjectFile, null, null); 4698Project project = projectFromString.Project; 5025Project project = pc.LoadProject(tempPath.Path); 5066Project project = pc.LoadProject(testTargetPath); 5216Project project = new Project(projectXml);
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (8)
411var project = projColln.LoadProject(mainProjectPath); 505var project = projColln.LoadProject(mainProjectPath); 582var project = projectCollection.LoadProject(mainProjectPath); 713var project = projectCollection.LoadProject(mainProjectPath); 778var project = projectCollection.LoadProject(mainProjectPath); 885private void CreateAndBuildProjectForImportFromExtensionsPath(string extnPathPropertyName, Action<Project, MockLogger> action) 919Action<Project, MockLogger> action) 928var project = projColln.LoadProject(mainProjectPath);
Evaluation\IntrinsicFunctionOverload_Tests.cs (20)
38Project project = projectFromString.Project; 60Project project = projectFromString.Project; 82Project project = projectFromString.Project; 104Project project = projectFromString.Project; 124Project project = projectFromString.Project; 146Project project = projectFromString.Project; 168Project project = projectFromString.Project; 190Project project = projectFromString.Project; 210Project project = projectFromString.Project; 232Project project = projectFromString.Project; 254Project project = projectFromString.Project; 276Project project = projectFromString.Project; 296Project project = projectFromString.Project; 318Project project = projectFromString.Project; 340Project project = projectFromString.Project; 362Project project = projectFromString.Project; 382Project project = projectFromString.Project; 404Project project = projectFromString.Project; 426Project project = projectFromString.Project; 448Project project = projectFromString.Project;
Evaluation\ItemEvaluation_Tests.cs (2)
598var project = new Project(projectFiles.ProjectFile); 659Project project = Should.NotThrow(() => new Project(projectFiles.ProjectFile));
Evaluation\Preprocessor_Tests.cs (23)
55Project project = new Project(); 84Project project = new Project(xml1); 128Project project = new Project(xml1); 172Project project = new Project(xml1); 216Project project = new Project(xml1); 264Project project = new Project(xml1); 298Project project = new Project(xml1); 363Project project; 419Project project = new Project(xml1); 477Project project = new Project(xml1); 550Project project = new Project(xml1); 611Project project = new Project(xml1); 671Project project = new Project(xml1); 725Project project = new Project(xml0); 792Project project = new Project(); 826Project project = new Project(xml); 880Project project = Project.FromProjectRootElement( 983var project = Project.FromFile(projectPath, projectOptions); 1107Project project = Project.FromProjectRootElement( 1238Project project = new Project(xml1);
Evaluation\ProjectSdkImplicitImport_Tests.cs (15)
112var project = new Project(projectRootElement); 135var project = new Project(projectRootElement); 202Project project = new Project(projectRootElement); 305Project project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(content)))); 334var project = new Project(projectRootElementFromString.Project); 372var project = Project.FromProjectRootElement(projectRootElement, projectOptions); 421Project project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(content)))); 445var project = new Project(projectRootElement); 480Project project = new Project(rootElement, 520var project = Project.FromXmlReader(xmlReader, new ProjectOptions()); 672var project = Project.FromXmlReader(xmlReader, projectOptions); 821private void VerifyPropertyFromImplicitImport(Project project, string propertyName, string expectedContainingProjectPath, string expectedValue)
Evaluation\SdkResultEvaluation_Tests.cs (9)
46private Project CreateProject(string projectPath, ProjectOptions projectOptions) 52var project = Project.FromProjectRootElement(projectRootElement, projectOptions); 75private void ValidateExpectedPropertiesAndItems(bool includePropertiesAndItems, Project project, int expectedItemCount = 1) 132var project = CreateProject(projectPath, projectOptions); 204var project = CreateProject(projectPath, projectOptions); 303var project = CreateProject(projectPath, projectOptions); 394var project = CreateProject(projectPath, projectOptions); 450var project = CreateProject(projectPath, projectOptions);
EvaluationProfiler_Tests.cs (3)
281var project = CreateProject(content, MSBuildDefaultToolsVersion, projectCollection); 302private Project CreateProject(string contents, string toolsVersion, ProjectCollection projectCollection) 305Project project = projectFromString.Project;
FileLogger_Tests.cs (4)
13using Project = Microsoft.Build.Evaluation.Project; 31Project project = ObjectModelHelpers.CreateInMemoryProject(@" 368Project project = ObjectModelHelpers.CreateInMemoryProject(@" 406Project project = ObjectModelHelpers.CreateInMemoryProject(@"
FixPathOnUnix_Tests.cs (1)
48var project = projColln.LoadProject(buildProjectPath);
Graph\ResultCacheBasedBuilds_Tests.cs (4)
145var project = Project.FromFile( 309var project = Project.FromFile(
Instance\HostServices_Tests.cs (6)
409Project project = LoadDummyProject("foo.proj"); 428Project project1 = LoadDummyProject("foo.proj"); 429Project project2 = LoadDummyProject("foo.proj"); 484Project project = projectFromString.Project; 494public Project LoadDummyProject(string fileName) 507Project project =
Instance\ProjectInstance_Internal_Tests.cs (1)
969Project project = projectFromString.Project;
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
56Project project = new Project();
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
94Project project = new Project();
Instance\TaskItem_Tests.cs (4)
213Project project = new(); 280Project project = new Project(xml); 334Project project = new Project(xml); 369Project project = new Project(xml);
Parser_Tests.cs (1)
577var project = ObjectModelHelpers.CreateInMemoryProject(projectContent);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
TargetTests.cs (2)
926Project proj = new Project(reader); 956static void addTask(Project proj, string taskName, Dictionary<string, string> parameters)
Microsoft.Build.Tasks.UnitTests (36)
AddToWin32Manifest_Tests.cs (1)
112Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFile, touchProject: false);
AssignLinkMetadata_Tests.cs (1)
178Project p = new Project(collection)
CallTarget_Tests.cs (1)
152Project project = ObjectModelHelpers.CreateInMemoryProject(@"
DirectoryBuildProjectImportTestBase.cs (4)
77Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @" 106Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 137Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 165Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @"
MSBuild_Tests.cs (4)
169Project project = ObjectModelHelpers.CreateInMemoryProject(projectContents, logger); 1387Project project = new Project(projectFile2); 1473Project project = new Project(projectFile2); 1509Project project = new Project(projectFile1);
MSBuildInternalMessage_Tests.cs (5)
46Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFile, touchProject: false); 89Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFile, touchProject: false); 144Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFile, touchProject: false); 219Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFile, touchProject: false); 264Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFile, touchProject: false);
NuGetPropsImportTests.cs (2)
54Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectRelativePath); 80Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectRelativePath);
OutputPathTests.cs (4)
62Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFilePath, touchProject: false); 98Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFilePath, touchProject: false); 141Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFilePath, touchProject: false); 177Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(projectFilePath, touchProject: false);
ProjectExtensionsImportTestBase.cs (8)
56Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @" 77Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 102Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 138Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 170Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 197Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @" 215Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @" 241Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @"
RegressionTests.cs (2)
33Project project = ObjectModelHelpers.CreateInMemoryProject($@" 60var project = ObjectModelHelpers.CreateInMemoryProject($@"
XmlPeek_Tests.cs (1)
337Project project = ObjectModelHelpers.CreateInMemoryProject(@"<Project><Target Name=""Test""><XmlPeek /></Target></Project>", log);
XmlPoke_Tests.cs (3)
145Project project = ObjectModelHelpers.CreateInMemoryProject(@"<Project><Target Name=""Test""><XmlPoke /></Target></Project>", log); 157Project project = ObjectModelHelpers.CreateInMemoryProject(projectContent, log); 170Project project = ObjectModelHelpers.CreateInMemoryProject(projectContent, log);
Microsoft.Build.UnitTests.Shared (21)
EngineTestEnvironment.cs (1)
219Project project = new Project(ProjectFile, globalProperties, toolsVersion, projectCollection);
MockEngine.cs (1)
247Project project = _projectCollection.LoadProject(projectFileName, finalGlobalProperties, toolsVersion);
ObjectModelHelpers.cs (18)
107public static ProjectItem AssertSingleItem(Project p, string type, string itemInclude) 680public static Project CreateInMemoryProject(string xml) 691public static Project CreateInMemoryProject(string xml, params ILogger[] loggers) 705public static Project CreateInMemoryProject(ProjectCollection projectCollection, string xml, params ILogger[] loggers) 718public static Project CreateInMemoryProject( 733Project project = new Project( 776Project project = CreateInMemoryProject(collection, projectContents, loggers); 804Project project = CreateInMemoryProject(collection, projectContents, loggers); 815Project project, 972public static Project LoadProjectFileInTempProjectDirectory(string projectFileRelativePath) 982public static Project LoadProjectFileInTempProjectDirectory(string projectFileRelativePath, bool touchProject) 989Project project = new Project(projectFileFullPath, null, null, projectCollection); 1028Project project = LoadProjectFileInTempProjectDirectory(projectFileRelativePath); 1092public static string GetConcatenatedItemsOfType(this Project project, string itemType, string itemSeparator = ";") 1104Project project = new Project(projectXml); 1361Project project = projectFromString.Project; 1377Project project = projectFromString.Project; 1588public static void VerifyAssertProjectContent([StringSyntax(StringSyntaxAttribute.Xml)] string expected, Project project)
ProjectFromString.cs (1)
17public Project Project { get; init; }
Microsoft.Build.Utilities.UnitTests (2)
ToolLocationHelper_Tests.cs (2)
3585Project project = pc.LoadProject(testProjectFile); 3657Project project = pc.LoadProject(testProjectFile);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
Build\ProjectBuildManager.cs (5)
81private static async Task<(MSB.Evaluation.Project? project, DiagnosticLog log)> LoadProjectAsync( 113var project = new MSB.Evaluation.Project( 129public Task<(MSB.Evaluation.Project? project, DiagnosticLog log)> LoadProjectAsync( 224MSB.Evaluation.Project project, DiagnosticLog log, CancellationToken cancellationToken) 235MSB.Evaluation.Project project, string[] requiredTargets, string[] optionalTargets, DiagnosticLog log, CancellationToken cancellationToken)
MSBuild\CSharp\CSharpProjectFile.cs (1)
13public CSharpProjectFile(CSharpProjectFileLoader loader, MSB.Evaluation.Project? project, ProjectBuildManager buildManager, DiagnosticLog log)
MSBuild\CSharp\CSharpProjectFileLoader.cs (1)
17protected override ProjectFile CreateProjectFile(MSB.Evaluation.Project? project, ProjectBuildManager buildManager, DiagnosticLog log)
MSBuild\ProjectFile\ProjectFile.cs (2)
23private readonly MSB.Evaluation.Project? _loadedProject; 31protected ProjectFile(ProjectFileLoader loader, MSB.Evaluation.Project? loadedProject, ProjectBuildManager buildManager, DiagnosticLog log)
MSBuild\ProjectFile\ProjectFileLoader.cs (1)
16protected abstract ProjectFile CreateProjectFile(MSB.Evaluation.Project? project, ProjectBuildManager buildManager, DiagnosticLog log);
MSBuild\VisualBasic\VisualBasicProjectFile.cs (1)
13public VisualBasicProjectFile(VisualBasicProjectFileLoader loader, MSB.Evaluation.Project? loadedProject, ProjectBuildManager buildManager, DiagnosticLog log)
MSBuild\VisualBasic\VisualBasicProjectFileLoader.cs (1)
17protected override ProjectFile CreateProjectFile(MSB.Evaluation.Project? project, ProjectBuildManager buildManager, DiagnosticLog log)
Microsoft.DotNet.Arcade.Sdk (2)
src\InstallDotNetCore.cs (2)
91var proj = Project.FromFile(VersionsPropsPath, new Build.Definition.ProjectOptions() { ProjectCollection = new ProjectCollection() });
MSBuild (5)
JsonOutputFormatter.cs (1)
82internal void AddItemsInJsonFormat(string[] itemNames, Project project)
XMake.cs (4)
838Project project = collection.LoadProject(projectFile, globalProperties, toolsVersion); 1086private static ExitType OutputPropertiesAfterEvaluation(string[] getProperty, string[] getItem, Project project, TextWriter outputStream) 1434Project project = projectCollection.LoadProject(projectFile, globalProperties, toolsVersion); 1714Project project = projectCollection.LoadProject(projectFile, globalProperties, toolsVersion);
TaskUsageLogger (5)
TaskUsageLogger.cs (5)
113Project p = _privateCollection.LoadProject(e.ProjectFile, e.GlobalProperties, e.ToolsVersion); 186private void GatherAndEvaluateDefaultTasksForToolsVersion(string toolsVersion, Project containingProject) 217private void GatherAndEvaluateTasksForProject(Project p, int projectContextId) 245private void GatherAndEvaluatedTasksInFile(ProjectRootElement pre, Project containingProject, HashSet<UsingTaskData> usingTasks) 299private string EvaluateIfNecessary(string unevaluatedString, Project containingProject)