Skip to content

Update to .NET 10 and latest packages; move build and NuGet release to GitHub Actions - #34

Merged
newky2k merged 5 commits into
mainfrom
claude/peaceful-gauss-c2p4ab
Oct 5, 2026
Merged

newky2k merged 5 commits into
mainfrom
claude/peaceful-gauss-c2p4ab

Conversation

@newky2k

@newky2k newky2k commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Updates the library to current frameworks and packages, and replaces the Azure DevOps pipelines with GitHub Actions — a CI workflow for pull requests and a release workflow modelled on DSoft.DataPrivacy, publishing to nuget.org via NuGet trusted publishing.

Frameworks

  • DSoft.MessageBus now targets netstandard2.1, net472, net8.0, net8.0-windows7.0 (WPF), and net10.0 incl. iOS, macOS, Mac Catalyst, tvOS, Android, WPF (windows7.0) and WinUI (windows10.0.19041).
  • Dropped all .NET 9 targets (.NET 9 mobile workloads are out of support) and the net8.0-windows10.0.19041 WinUI target. .NET 9 consumers resolve to the net8.0 assets.
  • UnitTest and WPFSample moved to .NET 10.

Packages

  • Microsoft.Extensions.DependencyInjection(.Abstractions) 10.0.12
  • Microsoft.WindowsAppSDK 2.5.1, Microsoft.Windows.SDK.BuildTools 10.0.28000.2705
  • MSTest 4.4.1, Microsoft.NET.Test.Sdk 18.10.1, coverlet.collector 10.1.0
  • DSoft.System.Mvvm 3.6.2606.131 (sample)
  • Removed the Microsoft.SourceLink.GitHub package — Source Link is built into the .NET SDK.
  • Replaced obsolete [DataTestMethod] with [TestMethod] (MSTEST0044).

Build properties

  • ContinuousIntegrationBuild set on GitHub Actions; MIT PackageLicenseExpression added.
  • Hard-coded Version/AssemblyVersion/FileVersion removed from the csproj — CI sets them.

CI/CD (GitHub Actions, windows-latest), matching DSoft.DataPrivacy

  • .github/workflows/ci.yml — pull requests into main (and manual runs): restore workloads, build Release, run tests. Publishes nothing.
  • .github/workflows/release.yml — every push to main (ignoring **.md and .github/workflows/**-only changes) or manual run: version 4.5.<yyMM>.<run number> (+ optional RELEASE_SUFFIX for prereleases), build, test, upload the drop artifact, push to nuget.org via NuGet/login (OIDC trusted publishing, nuget environment), then tag v<version> and create a GitHub release with the packages attached. The 4.5 prefix keeps new builds above Azure's 4.4 builds.
  • Removed azure-pipelines-mergetest.yml and azure-pipelines-release.yml.

README and CLAUDE.md updated accordingly.

Before merging

  • NUGET_USER secret and a nuget.org trusted publishing policy for newky2k/MessageBus, workflow release.yml, environment nuget (done).
  • Disable the Azure DevOps pipelines.

Testing

  • Build and tests green on GitHub Actions for this branch: all targets built, 24/24 unit tests passed, both packages produced.
  • release.yml only runs on main, so it will first run on merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TreMhFY8KtDPoVeKPL7NzX

claude added 5 commits October 4, 2026 20:29
- Target netstandard2.1, net472, net8.0 and net10.0 (incl. iOS, macOS,
  Mac Catalyst, tvOS, Android, WPF and WinUI); drop .NET 9 targets
- Update Microsoft.Extensions.DependencyInjection(.Abstractions) to 10.0.12,
  WindowsAppSDK to 1.8, Windows SDK BuildTools, MSTest 4, Test SDK, coverlet
  and DSoft.System.Mvvm
- Move UnitTest and WPFSample to .NET 10
- Use the SDK's built-in Source Link, set ContinuousIntegrationBuild on
  GitHub Actions, add MIT license expression to packages
- Replace Azure Pipelines with GitHub Actions build and release workflows;
  release publishes to nuget.org using the NUGET_API_KEY secret

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TreMhFY8KtDPoVeKPL7NzX
Resolve package version conflicts by taking the newest of each
(WindowsAppSDK 2.5.1, Windows SDK BuildTools 10.0.28000.2705,
DependencyInjection 10.0.12, MSTest 4.4.1), keep coverlet as a private
asset, drop the Azure release pipeline, bump the release version prefix
to 4.5 so GitHub Actions builds sort above Azure's 4.4 builds, and update
CLAUDE.md for .NET 10 and the new workflows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TreMhFY8KtDPoVeKPL7NzX
- actions/checkout v7, actions/setup-dotnet v6, actions/upload-artifact v7
  (removes the Node.js 20 deprecation warning)
- Replace obsolete [DataTestMethod] with [TestMethod] (MSTEST0044)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TreMhFY8KtDPoVeKPL7NzX
Replace the stored NUGET_API_KEY with NuGet/login (OIDC), which exchanges
the GitHub Actions token for a short-lived nuget.org API key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TreMhFY8KtDPoVeKPL7NzX
- ci.yml validates pull requests into main (build Release + tests),
  publishes nothing; replaces build.yml
- release.yml follows the DSoft.DataPrivacy release: 4.5.yyMM.<run number>
  with optional RELEASE_SUFFIX, trusted publishing to nuget.org, then tags
  the commit and creates a GitHub release with the packages attached

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TreMhFY8KtDPoVeKPL7NzX
@newky2k
newky2k merged commit 41747c1 into main Oct 5, 2026
1 check passed
@newky2k
newky2k deleted the claude/peaceful-gauss-c2p4ab branch October 5, 2026 18:37
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