Repository navigation
Publish Devolutions.Terminal.Control as a reusable NuGet package - #19
Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intoSep 16, 2026
Conversation
Marc-André Moreau (mamoreau-devolutions)
requested a review
from a team
as a code owner
September 16, 2026 20:11
Marc-André Moreau (mamoreau-devolutions)
deployed
to
publish-dry-run
September 16, 2026 20:14 — with
GitHub Actions
Active
- Bundle Core/Render/Connection/Settings into Control's package (IsPackable=false + PrivateAssets=all + CopyProjectReferencesToPackage) - Add package metadata, SourceLink, symbol package - Add samples/Devolutions.Terminal.Control.Sample as a PackageReference-based consumer smoke test, wired into the nuget-pack CI job - Add nuget-pack/nuget-publish CI jobs (nuget.org, tag-gated) - Document packaging/consumption in docs/release.md and README.md
Marc-André Moreau (mamoreau-devolutions)
force-pushed
the
copilot/rdm-terminal-control-research
branch
from
September 16, 2026 20:15
d51d2d9 to
ee50089
Compare
Marc-André Moreau (mamoreau-devolutions)
merged commit Sep 16, 2026
6ff58a0
into
master
17 of 18 checks passed
Marc-André Moreau (mamoreau-devolutions)
deleted the
copilot/rdm-terminal-control-research
branch
September 16, 2026 20:16
Marc-André Moreau (mamoreau-devolutions)
deployed
to
publish-dry-run
September 16, 2026 20:19 — with
GitHub Actions
Active
Marc-André Moreau (mamoreau-devolutions)
deployed
to
publish-dry-run
September 16, 2026 20:19 — with
GitHub Actions
Active
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Publishes
Devolutions.Terminal.Controlas a standalone, self-contained NuGet package on nuget.org so the Avalonia terminal control (TermControl) can be embedded in other applications (e.g. as a replacement for RDM's internalDevolutions.TerminalControlpackage).Packaging approach
Devolutions.Terminal.Core,.Render,.Connection, and.Settingsare markedIsPackable=false— they are never published as separate packages.Devolutions.Terminal.Control.csprojbundles their build output directly intolib/net10.0via aCopyProjectReferencesToPackageMSBuild target, withPrivateAssets="all"on the internalProjectReferences so they don't leak as dangling nuspec dependencies.PackageReferences (previously only onRender) are re-declared directly onControl.csprojsincePrivateAssets="all"also cuts their transitive flow into the nuspec.PackageId,PackageTags,PackageReadmeFile(newPACKAGE.md),PackageLicenseExpression=MIT,PackageProjectUrl, SourceLink (Microsoft.SourceLink.GitHub), symbol package (.snupkg).Devolutions.Terminal.App,Devolutions.Terminal.Control.Tests,Devolutions.Terminal.Bench) needed explicitProjectReferences added, sincePrivateAssets="all"also cuts their transitive compile-time visibility toCore/Render/Connection/Settingstypes that used to flow throughControl.Consumer smoke test
Added
samples/Devolutions.Terminal.Control.Sample— a minimal Avalonia app that consumes the package via a plainPackageReference(neverProjectReference), resolved from a localartifacts/nugetfeed via package-source-mappedNuGet.Config. It's excluded fromDevolutions.Terminal.slnx(it must resolve the package from a feed) and doubles as living usage documentation.Building this sample surfaced a real API-usage issue:
TermControlhas no parameterless constructor usable from XAML (its constructor takes an optionalITerminalEngine), so it must be instantiated in code-behind rather than declared as a XAML element.PACKAGE.mdanddocs/release.mdare updated to show the correct pattern.CI
nuget-packjob: packsControl.csproj, builds the sample against the freshly packed package as a smoke test, uploads.nupkg/.snupkgas a workflow artifact. Runs on every build.nuget-publishjob: pushes to nuget.org viadotnet nuget push, gated on a tag push + non-dry-run release, using aNUGET_API_KEYsecret on a newnuget.orgGitHub Environment.@v4) rather than SHA pins.Docs
docs/release.md: new "NuGet package (Devolutions.Terminal.Control)" section — pack command, consumption snippet, sample app, CI wiring, required secret, and rules for keeping the internal-bundling setup in sync as the project graph evolves.README.md: short pointer to the published package and docs.Verification
dotnet build Devolutions.Terminal.slnx -c Release) — 0 errors, unaffected by the new sample (excluded from the.slnx).dotnet pack src/Devolutions.Terminal.Control -c Release -o artifacts/nuget— produces a correct.nupkg/.snupkgwith only genuine third-party dependencies (Avalonia,Avalonia.Skia,SkiaSharp,SkiaSharp.HarfBuzz, Linux native-asset packages) in the nuspec.samples/Devolutions.Terminal.Control.Samplebuilds and runs successfully against the locally packed package.Not included (out of scope)
NUGET_API_KEYsecret + tagged release).