Skip to content

Package ReCap.CommonUI as a NuGet library (org CI/CD standard)#3

Merged
JeanxPereira merged 1 commit into
mainfrom
chore/nuget-packaging
Jun 9, 2026
Merged

Package ReCap.CommonUI as a NuGet library (org CI/CD standard)#3
JeanxPereira merged 1 commit into
mainfrom
chore/nuget-packaging

Conversation

@JeanxPereira

Copy link
Copy Markdown
Contributor

Makes ReCap.CommonUI publishable to the org GitHub Packages feed and consumable by the Hub as a PackageReference instead of a vendored project — part of the org-wide move from submodules/clones to NuGet packages.

Changes

  • build/avalonia.props: Avalonia.Desktop + Avalonia.Diagnostics are now app-host/dev-only (gated to OutputType=Exe/WinExe), so they're no longer dependencies of the redistributable library. The demo (WinExe) still gets them. Library package deps are now just Avalonia, Avalonia.ReactiveUI, Avalonia.Themes.Fluent.
  • Directory.Build.props: org build standard — MinVer (tag-driven versioning, vX.Y.Z), SourceLink, deterministic + embedded PDBs, package metadata (MIT, author Splitwirez). Dropped the static AssemblyVersion (MinVer manages it).
  • src/ReCap.CommonUI.csproj: IsPackable, PackageId=ReCap.CommonUI, description, tags.
  • demo marked IsPackable=false; added nuget.config (org feed) and CI workflows (ci, release) calling the org reusable workflows.

Verification

  • Full solution builds (lib netstandard2.0 + demo net5.0), 0 errors.
  • dotnet pack produces ReCap.CommonUI.<minver>.nupkg; nuspec deps confirmed to exclude Desktop/Diagnostics; README embedded.

Notes

  • Publishing requires the Resurrection-Capsule/.github reusable-workflow repo to exist and be tagged v1 (separate setup). Until then the workflows are inert.
  • TFM unchanged (lib stays netstandard2.0).

Makes the library publishable to the org GitHub Packages feed and consumable
as a PackageReference (instead of a vendored project), part of the org-wide move
from submodules/clones to NuGet packages.

- build/avalonia.props: Avalonia.Desktop + Avalonia.Diagnostics are now
  app-host/dev-only (gated to OutputType Exe/WinExe), so they are no longer
  dependencies of the redistributable library. The demo (WinExe) still gets them.
  Library deps are now Avalonia, Avalonia.ReactiveUI, Avalonia.Themes.Fluent.
- Directory.Build.props: org standard — MinVer (tag-driven versioning), SourceLink,
  deterministic + embedded PDBs, package metadata (MIT, author Splitwirez). Dropped
  the static AssemblyVersion (MinVer manages it).
- src/ReCap.CommonUI.csproj: IsPackable, PackageId, Description, tags.
- demo IsPackable=false; add nuget.config (org feed) + CI workflows (ci, release)
  that call the org reusable workflows.

Build green (lib netstandard2.0 + demo net5.0); pack excludes Desktop/Diagnostics.
@JeanxPereira JeanxPereira merged commit 37cca3c into main Jun 9, 2026
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