10 writes to Project
Microsoft.Build (2)
Construction\ProjectImportElement.cs (2)
147return new ProjectImportElement(element, containingProject) { Project = project }; 164Project = project,
Microsoft.Build.Engine.OM.UnitTests (8)
Construction\ConstructionEditing_Tests.cs (2)
2529import.Project = "p"; 2876element.Project = "p";
Construction\ProjectImportElement_Tests.cs (3)
126import.Project = "i1b.proj"; 148import.Project = String.Empty; 181import.Project = file2;
Construction\ProjectImportGroupElement_Tests.cs (2)
335import.Project = "i1b.proj"; 362import.Project = String.Empty;
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
586import.VerifySetter("newImport", (pi) => pi.Project, (pi, v) => pi.Project = v);
47 references to Project
Microsoft.Build (18)
Construction\ProjectImportElement.cs (1)
184return owner.CreateImportElement(Project);
Evaluation\Evaluator.cs (17)
1498var fallbackSearchPathMatch = _data.Toolset.GetProjectImportSearchPaths(importElement.Project); 1570bool containsWildcards = FileMatcher.HasWildcards(importElement.Project); 1603var newExpandedImportPath = importElement.Project.Replace(extensionPropertyRefAsString, extensionPathExpanded, StringComparison.OrdinalIgnoreCase); 1697importElement.Project, 1705UnexpandedProject = importElement.Project, 1715string project = importElement.Project; 1812UnexpandedProject = importElement.Project, 1991UnexpandedProject = importElement.Project, 2052UnexpandedProject = importElement.Project, 2194UnexpandedProject = importElement.Project, 2224UnexpandedProject = importElement.Project, 2239VerifyVSDistributionPath(importElement.Project, importLocationInProject); 2279UnexpandedProject = importElement.Project, 2484importElement.Project.Replace(searchPathMatch.MsBuildPropertyFormat, extensionsPathPropValue), 2503importExpandedWithDefaultPath = importElement.Project; 2504relativeProjectPath = importElement.Project; 2511VerifyVSDistributionPath(importElement.Project, importElement.ProjectLocation);
Microsoft.Build.Engine.OM.UnitTests (29)
Construction\ProjectImportElement_Tests.cs (3)
104Assert.Equal("i1.proj", imports[0].Project); 105Assert.Equal("i2.proj", imports[1].Project); 127Assert.Equal("i1b.proj", import.Project);
Construction\ProjectImportGroupElement_Tests.cs (6)
273Assert.Equal("i1.proj", imports[0].Project); 274Assert.Equal("i2.proj", imports[1].Project); 308Assert.Equal("i1.proj", imports[0].Project); 309Assert.Equal("i2.proj", imports[1].Project); 311Assert.Equal("i3.proj", imports[2].Project); 336Assert.Equal("i1b.proj", import.Project);
Definition\Project_Tests.cs (15)
3913eventArgs.UnexpandedProject.ShouldBe(import.Project); 3922logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to false condition; ( \'$(Something)\' == \'nothing\' ) was evaluated as ( \'\' == \'nothing\' )."); 3954eventArgs.UnexpandedProject.ShouldBe(import.Project); 3963logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files."); 3999eventArgs.UnexpandedProject.ShouldBe(import.Project); 4008logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being empty."); 4046eventArgs.UnexpandedProject.ShouldBe(import.Project); 4055logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being invalid."); 4086eventArgs.UnexpandedProject.ShouldBe(import.Project); 4095logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the expression evaluating to an empty string."); 4129eventArgs.UnexpandedProject.ShouldBe(import.Project); 4138logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file not existing."); 4172eventArgs.UnexpandedProject.ShouldBe(import.Project); 4181logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files."); 4217eventArgs.UnexpandedProject.ShouldBe(import.Project);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
834Assert.Equal(realXml.Project, viewXml.Project);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
79xmlPair.Add2NewChildrenWithVerify<ProjectImportElement>(newImport, (p, i) => p.AddImport(i), (pi, i) => pi.Project == i, out var import1, out var import2); 586import.VerifySetter("newImport", (pi) => pi.Project, (pi, v) => pi.Project = v); 602importGroup.Add2NewChildrenWithVerify<ProjectImportElement>("projFile", (ig, prj) => ig.AddImport(prj), (i, prj) => i.Project == prj, out var imp1, out var imp2);