Skip to content

Add PackageVersion property to projects #1187

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

Merged
merged 3 commits into from
Mar 3, 2025
Merged

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Mar 3, 2025

Extracted from #1185
Contributes to dotnet/source-build#1690

The SDK uses the PackageVersion property as an input to NuGet package pruning and conflict resolution.

Having correct inputs passed to conflict resolution is essential to support ProjectReferences in this repository as it handles deciding which asset to compile against (framework vs P2P).

Until now, all projects use the default repository wide version information which is wrong.

Therefore, update the task, template and msbuild generate project entrypoint to emit the PackageVersion property into the project files.

Commit 2 is auto-generated via generate.sh, only with unrelated files reverted. Commit 3 was applied manually.

The SDK uses the PackageVersion property as an input to NuGet package pruning and conflict resolution.

Having correct inputs passed to conflict resolution is essential to support ProjectReferences in this repository as it handles deciding which asset to compile against (framework vs P2P).

Until now, all projects use the default repository wide version information which is wrong.

Therefore, update the task, template and msbuild generate project entrypoint to emit the PackageVersion property into the project files.
Automated change via the generate.sh script (and then filtering out unrelated changes).
@ViktorHofer ViktorHofer requested a review from a team as a code owner March 3, 2025 15:30
@ViktorHofer ViktorHofer merged commit 964c28e into main Mar 3, 2025
4 checks passed
@ViktorHofer ViktorHofer deleted the PackageVersionMetadata branch March 3, 2025 16:36
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