Skip to content

Update UsingSpectreDotConsole to .NET 11 and Spectre.Console 0.57.2 - #2394

Merged
vladimir-pecanac-main merged 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/101293-csharp-create-better-looking-console-applications-with-spectre-console
Nov 14, 2026
Merged

vladimir-pecanac-main merged 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/101293-csharp-create-better-looking-console-applications-with-spectre-console

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the Spectre.Console sample to net11.0 with Spectre.Console, Spectre.Console.Json and Spectre.Console.Testing 0.57.2 and current test packages, removes the [UsesVerify] attribute that no longer exists in Verify.Xunit 31, changes the age prompt test so it actually exercises the validation rules, adds a selection prompt test and a MarkupLineInterpolated test, regenerates the Verify snapshots by running the tests, and makes Program.cs run every demo with the prompt guarded by an interactivity check.

Move both projects to net11.0 and the test packages to their current
releases, drop [UsesVerify], make the age prompt test exercise its
validation rules, add tests for the selection prompt and for
MarkupLineInterpolated, regenerate the Verify snapshots and run every
demo from Program.cs with the prompt behind an interactivity check.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit f9cb4b0 into CodeMazeBlog:main Nov 14, 2026
4 checks passed
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