From ae1f03914c69ff961963484d41d2d134e353dff6 Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Tue, 14 Jun 2022 22:34:55 +0300 Subject: [PATCH] Update version --- Changelog.md | 5 +++++ Directory.Build.props | 2 +- Readme.md | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 1dccd44..34d7a81 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,8 @@ +### v2.2.6 (14-Jun-2022) + +- Added an overload of `CliApplicationBuilder.UseTypeActivator(...)` that accepts an instance of `IServiceProvider`. This slightly simplifies integration with many DI containers. +- Fixed minor grammar mistakes in user-facing error messages. + ### v2.2.5 (10-May-2022) - Updated default value resolution for the application executable name. It will now resolve to `myapp.exe` instead of `dotnet myapp.dll` when the application is launched through the EXE apphost on Windows. On other platforms, or when running the application through the .NET CLI, the behavior will be the same as before. diff --git a/Directory.Build.props b/Directory.Build.props index bb16d16..fe6a74f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 2.2.5 + 2.2.6 Tyrrrz Copyright (C) Oleksii Holub latest diff --git a/Readme.md b/Readme.md index 38994b7..c0f497c 100644 --- a/Readme.md +++ b/Readme.md @@ -597,7 +597,7 @@ public static class Program return await new CliApplicationBuilder() .AddCommandsFromThisAssembly() - .UseTypeActivator(serviceProvider.GetService) + .UseTypeActivator(serviceProvider) .Build() .RunAsync(); }