Skip to content

Derive project versions from CHANGELOG in MSBuild#19

Merged
mkholt merged 1 commit into
mainfrom
combine-versions-for-core-and-source-gen-33c
Jul 1, 2026
Merged

Derive project versions from CHANGELOG in MSBuild#19
mkholt merged 1 commit into
mainfrom
combine-versions-for-core-and-source-gen-33c

Conversation

@mkholt

@mkholt mkholt commented Jul 1, 2026

Copy link
Copy Markdown
Member

Replace the Set-VersionFromChangelog.ps1 script (run once per project in CI, twice against the same core changelog) with changelog-driven version derivation centralized in Directory.Build.targets.

  • Core and the source generator share XrmPluginCore/CHANGELOG.md; Abstractions overrides ChangelogPath to version independently from its own changelog.
  • Version is set from the latest "### v..." entry; an explicit -p:Version=... global property still wins.
  • Hoist shared package metadata (GeneratePackageOnBuild, PackageProjectUrl, symbols, license/icon/readme packing) into the shared targets.
  • Add ReportChangelogVersion target to echo each shipped project's derived version during build, restoring the CI visual confirmation.
  • Remove the redundant version-setting steps from ci.yml/release.yml, delete the now-unused script, and simplify Pack-Local.ps1.

Replace the Set-VersionFromChangelog.ps1 script (run once per project in
CI, twice against the same core changelog) with changelog-driven version
derivation centralized in Directory.Build.targets.

- Core and the source generator share XrmPluginCore/CHANGELOG.md; Abstractions
  overrides ChangelogPath to version independently from its own changelog.
- Version is set from the latest "### v..." entry; an explicit -p:Version=...
  global property still wins.
- Hoist shared package metadata (GeneratePackageOnBuild, PackageProjectUrl,
  symbols, license/icon/readme packing) into the shared targets.
- Add ReportChangelogVersion target to echo each shipped project's derived
  version during build, restoring the CI visual confirmation.
- Remove the redundant version-setting steps from ci.yml/release.yml, delete
  the now-unused script, and simplify Pack-Local.ps1.

Co-Authored-By: Claude <noreply@anthropic.com> via Conducktor <conducktor@contextand.com>
@mkholt mkholt merged commit 520d907 into main Jul 1, 2026
1 check passed
@mkholt mkholt deleted the combine-versions-for-core-and-source-gen-33c branch July 1, 2026 07:41
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.

1 participant