Add PackageVersion property to projects by ViktorHofer · Pull Request #1187 · dotnet/source-build-reference-packages (original) (raw)
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.