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