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