Skip to content

#16 Update Spectre.Console (by JohnCampionJr) - #31

Merged
jvilimek merged 4 commits into
mainfrom
jcamp-code-feature/upgrade-spectre
Jul 10, 2026
Merged

#16 Update Spectre.Console (by JohnCampionJr)#31
jvilimek merged 4 commits into
mainfrom
jcamp-code-feature/upgrade-spectre

Conversation

@jvilimek

@jvilimek jvilimek commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Part of #16.

Updates Spectre.Console to 0.56.0 and Spectre.Console.Cli to 0.55.0, plus the matching testing packages.

Two breaking changes adapted:

  • Commands' ExecuteAsync now takes a CancellationToken and is protected.
  • CommandAppTester/CommandAppResult moved to the new Spectre.Console.Cli.Testing package, and the tester is now single-use, so tests that ran it more than once (bootstrap Init, then run the command) use a fresh tester per run.

Also removes the CommandAppTesterExtensions reflection hack tests now push input through the tester's console.

Co-authored-by: John Campion Jr 1094820+JohnCampionJr@users.noreply.github.com

JohnCampionJr and others added 3 commits July 10, 2026 10:51
Updates Spectre.Console to 0.56.0 and Spectre.Console.Cli to 0.55.0 (not released
in lockstep), plus the matching testing packages.

Adapts to two breaking changes: commands' ExecuteAsync now takes a CancellationToken
and is protected, and CommandAppTester/CommandAppResult moved to the new
Spectre.Console.Cli.Testing package and is now single-use (tests that ran it more
than once use a fresh tester per run). Removes the CommandAppTesterExtensions
reflection hack now that input can go through the tester's own console.
* Adopt .NET 10 with multitargeting

Multi-target net8.0;net10.0 for the tool and tests, bump the SDK and CI to .NET 10, and run the tests on both runtimes. AnalysisLevel tracks the TFM now; fixed the findings it surfaced (CA1515 -> internal types with InternalsVisibleTo for Moq, CA1872 -> Convert.ToHexString).

* Support macOS in ProcessExecutorTests

* Relax global.json SDK to a band-agnostic floor

Use 10.0.100 with rollForward latestFeature so any installed .NET 10 feature band
satisfies it, instead of requiring 10.0.300 or higher.

* Simplified lang and analysis version for both .net versions

only one lang and analysis should be supported (we will develop in .net 10, yet compile for .net 8-10)

* Update target frameworks to include net9.0

* Remove LangVersion condition for net8.0

* Add target frameworks net8.0, net9.0, and net10.0 to directory.build.props

* Deleted target frameworks in project file as it was moved to directory.build.props

Removed net10.0 from the target frameworks.

* Deleted target frameworks in project file as it was moved to directory.build.props

* Update .NET version to 10.0.x in CI workflow

for building all .net 8-10 we just need the .net 10 sdk

* Update adopt-dotnet-10.md

---------

Co-authored-by: John Campion Jr <1094820+JohnCampionJr@users.noreply.github.com>
@jvilimek
jvilimek requested a review from a team as a code owner July 10, 2026 08:56
@magiino magiino assigned magiino and unassigned magiino Jul 10, 2026
@jvilimek
jvilimek merged commit 9670404 into main Jul 10, 2026
4 checks passed
@jvilimek
jvilimek deleted the jcamp-code-feature/upgrade-spectre branch July 10, 2026 09:04
@jvilimek jvilimek mentioned this pull request Jul 10, 2026
@magiino magiino changed the title Update Spectre.Console (by JohnCampionJr) #16 Update Spectre.Console (by JohnCampionJr) Jul 10, 2026
@jvilimek jvilimek mentioned this pull request Jul 10, 2026
jvilimek added a commit that referenced this pull request Jul 10, 2026
## 0.2.0

**Minor Changes**:

- [[#16](https://github.com/solarwinds/net-changesets/issue/16)] Adopt .NET 10 with multi-targeting. The tool and tests now target `net8.0`, `net9.0` and `net10.0`, the SDK and CI use .NET 10. [[#30](#30)]

**Patch Changes**:

- [[#28](#28)] Added documentation for integrating net-changesets with the official Changesets GitHub Action, including custom `version` and `publish` commands, required checkout depth, status-check behavior, NuGet source configuration, and links to a working demo workflow. ([PR #29](#29))
- Upgrade Spectre.Console to 0.56.0 and Spectre.Console.Cli to 0.55.0 (with matching testing packages). Adapts to the new command `ExecuteAsync(CommandContext, CancellationToken)` signature and the move of `CommandAppTester` into the new `Spectre.Console.Cli.Testing` package. [[#31](#31)]
- Fix `version` only bumping one dependent when a project is referenced by multiple projects. [[#32](#32)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants