Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GenerateNuSpec incrementality #13664

Merged
merged 2 commits into from
May 24, 2023
Merged

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented May 23, 2023

Take into account BOM at beginning of the nuspec file when checking if the output would change.
Fixing this allows subsequent packaging targets to be skipped, saving ~1-2s on my machine during an incremental runtime build.

Contributes to dotnet/runtime#47022.

@sbomer sbomer requested a review from ericstj May 23, 2023 23:56
@sbomer sbomer merged commit b89a448 into dotnet:main May 24, 2023
@ViktorHofer
Copy link
Member

ViktorHofer commented May 24, 2023

Note that this code path is only exercised in pkgproj projects which dotnet/runtime's libraries don't use anymore. We instead use the publicly shipping NuGet Pack task functionality. This library Microsoft.DotNet.Build.Tasks.Packaging doesn't receive any updates from our side anymore. Ideally we would deprecate it but as long as coreclr/mono still uses it, we can't.

dotnet/runtime#75966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants