Skip to content

ChangeDocumentationFileForPackaging causes incremental build issues inside VS #92940

@ViktorHofer

Description

@ViktorHofer

This target picks the intellisense file from the Microsoft.Private.Intellisense package :

<!-- Replace the compiler generated xml file in the obj folder with the one that comes from the intellisense package. -->
<Target Name="ChangeDocumentationFileForPackaging"
BeforeTargets="CopyFilesToOutputDirectory;DocumentationProjectOutputGroup"
Condition="'$(UseCompilerGeneratedDocXmlFile)' != 'true' and '$(IntellisensePackageXmlFilePath)' != ''">
<ItemGroup>
<DocFileItem Remove="@(DocFileItem)" />
<DocFileItem Include="$(IntellisensePackageXmlFilePath)" />
</ItemGroup>
</Target>

Because of using that prebuilt asset, the earliest output in the output directory dates back to when the package was last updated which results in incremental build issues.

WARNING: Potential build performance issue in 'System.Text.RegularExpressions.csproj'. The project does not appear up-to-date after a successful build: Input 'C:\git\runtime2\Directory.Build.props' is newer (10/3/2023 3:15:00 PM) than earliest output 'C:\git\runtime2\artifacts\bin\System.Text.RegularExpressions\Debug\net9.0\System.Text.RegularExpressions.xml' (9/18/2023 11:26:32 PM), not up-to-date. See https://aka.ms/incremental-build-failure.

@carlossanlop @ericstj

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions