mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-14 16:02:50 +08:00

* Adding social card infrastructure * Upgrades doc project to .NET 6 * Adds Playwright * Changes the console to a web project for Playwright * Adds social card template * Added blog content * Parallelized social image processing * Updating CI to use .NET 6 for docs build
1.1 KiB
1.1 KiB
Title: Migrate from Spectre.Cli Order: 10 Description: "Migrating from Specte.Cli to Spectre.Console.Cli"
The functionality in Spectre.Cli
has been moved into the Spectre.Console
library. If you're using Spectre.Cli
, you will need to migrate to ensure
that you get updates or fixes.
1. Remove Spectre.Cli NuGet package
Start with removing the Spectre.Cli
package reference from your project(s).
> dotnet remove package Spectre.Cli
2. Add Spectre.Console NuGet package
Add the Spectre.Console NuGet package to your project(s).
> dotnet add package Spectre.Console
3. Change using statements
Change all using statements from Spectre.Cli
to Spectre.Console.CLi
.
- using Spectre.Cli;
+ using Spectre.Console.Cli;
Breaking Changes
In the process of moving Spectre.Cli
, there have been some minor breaking changes.
Spectre.Cli.Exceptions namespace moved
All exceptions have been moved from the Spectre.Cli.Exceptions
namespace to
the Spectre.Console.Cli
namespace.
- using Spectre.Cli.Exceptions;
+ using Spectre.Console.Cli;