4 writes to ProjectStateAfterBuild
Microsoft.Build (3)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
352
resultToReport.
ProjectStateAfterBuild
= config.Project;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
193
resultsToReport.
ProjectStateAfterBuild
= _projectInstance;
198
resultsToReport.
ProjectStateAfterBuild
=
Microsoft.Build.Engine.UnitTests (1)
BackEnd\ResultsCache_Tests.cs (1)
314
resultForRequestWithSubsetFlag1.
ProjectStateAfterBuild
= new ProjectInstance(ProjectRootElement.Create(xmlReader)).FilteredCopy(requestedProjectState1);
26 references to ProjectStateAfterBuild
Microsoft.Build (4)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
438
config.ApplyTransferredState(result.
ProjectStateAfterBuild
);
BackEnd\Components\Caching\ResultsCache.cs (2)
388
buildResult.
ProjectStateAfterBuild
?.RequestedProjectStateFilter is not null &&
389
buildRequest.RequestedProjectState.IsSubsetOf(buildResult.
ProjectStateAfterBuild
.RequestedProjectStateFilter);
BackEnd\Shared\BuildRequest.cs (1)
84
/// Whether or not the <see cref="BuildResult"/> issued in response to this request should include <see cref="BuildResult.
ProjectStateAfterBuild
"/>.
Microsoft.Build.Engine.UnitTests (21)
BackEnd\BuildManager_Tests.cs (15)
519
result.
ProjectStateAfterBuild
.ShouldNotBeNull();
521
result.
ProjectStateAfterBuild
.Properties.ShouldNotContain(p => p.Name == "UnrequestedProperty");
523
result.
ProjectStateAfterBuild
.Properties.ShouldContain(p => p.Name == "NewProperty");
524
result.
ProjectStateAfterBuild
.GetPropertyValue("NewProperty").ShouldBe("FunValue");
526
result.
ProjectStateAfterBuild
.Properties.ShouldContain(p => p.Name == "RequestedProperty");
527
result.
ProjectStateAfterBuild
.GetPropertyValue("RequestedProperty").ShouldBe("IsRequested");
529
result.
ProjectStateAfterBuild
.Items.Count.ShouldBe(4);
531
result.
ProjectStateAfterBuild
.GetItems("ItemWithMetadata").ShouldHaveSingleItem();
532
result.
ProjectStateAfterBuild
.GetItems("ItemWithMetadata").First().DirectMetadataCount.ShouldBe(1);
533
result.
ProjectStateAfterBuild
.GetItems("ItemWithMetadata").First().GetMetadataValue("Metadatum1")
535
result.
ProjectStateAfterBuild
.GetItems("ItemWithMetadata").First().GetMetadataValue("Metadatum2")
538
result.
ProjectStateAfterBuild
.GetItems("AnItem").Count.ShouldBe(3);
539
result.
ProjectStateAfterBuild
.GetItems("AnItem").ShouldContain(p => p.EvaluatedInclude == "Item2");
541
result.
ProjectStateAfterBuild
.GetItemsByItemTypeAndEvaluatedInclude("AnItem", "Item1")
543
result.
ProjectStateAfterBuild
.GetItemsByItemTypeAndEvaluatedInclude("AnItem", "Item1").First()
BackEnd\ResultsCache_Tests.cs (4)
333
Assert.Equal("Value1", cachedResponseWithSubsetFlag1.Results.
ProjectStateAfterBuild
.GetPropertyValue("property1"));
334
Assert.Equal("Value2", cachedResponseWithSubsetFlag1.Results.
ProjectStateAfterBuild
.GetPropertyValue("property2"));
338
Assert.Equal("Value1", cachedResponseWithSubsetFlag2.Results.
ProjectStateAfterBuild
.GetPropertyValue("property1"));
339
Assert.Equal("", cachedResponseWithSubsetFlag2.Results.
ProjectStateAfterBuild
.GetPropertyValue("property2"));
InternalEngineHelpers.cs (2)
163
actualBuildResult.
ProjectStateAfterBuild
.ShouldBe(expectedBuildResult.
ProjectStateAfterBuild
);
MSBuild (1)
XMake.cs (1)
1108
ProjectInstance builtProject = result.
ProjectStateAfterBuild
;