Skip to content

Commit 276215d

Browse files
authored
Enhance ReadMe with colorization tools and migration details
Updated the ReadMe.md to include additional information on using utilities for console colorization and clarified migration steps from v4 to v5.
1 parent 8ee5214 commit 276215d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ReadMe.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ When `Microsoft.Extensions.Hosting` is referenced, `bool startHost, bool stopHos
12801280

12811281
Colorize
12821282
---
1283-
The framework doesn't support colorization directly; however, utilities like [Cysharp/Kokuban](https://github.com/Cysharp/Kokuban) make console colorization easy.
1283+
The framework doesn't support colorization directly; however, utilities like [Cysharp/Kokuban](https://github.com/Cysharp/Kokuban) make console colorization easy. Additionally, if you need spinners or updates single-line displays, you can also use it in combination with [mayuki/Kurukuru](https://github.com/mayuki/Kurukuru).
12841284

12851285
Publish to executable file
12861286
---
@@ -1296,12 +1296,11 @@ Also, to run with Native AOT, please refer to the [Native AOT deployment overvie
12961296

12971297
v4 -> v5 Migration Guide
12981298
---
1299-
v4 was running on top of `Microsoft.Extensions.Hosting`, so build a Host in the same way and set up a ServiceProvider.
1299+
v4 was running on top of `Microsoft.Extensions.Hosting`, so build a Host in the same way and need to convert ConsoleAppBuilder.
13001300

13011301
```csharp
1302-
using var host = Host.CreateDefaultBuilder().Build(); // use using for host lifetime
1303-
using var scope = host.Services.CreateScope(); // create execution scope
1304-
ConsoleApp.ServiceProvider = scope.ServiceProvider;
1302+
var app = Host.CreateApplicationBuilder()
1303+
.ToConsoleAppBuilder();
13051304
```
13061305

13071306
* `var app = ConsoleApp.Create(args); app.Run();` -> `var app = ConsoleApp.Create(); app.Run(args);`

0 commit comments

Comments
 (0)