Update version

This commit is contained in:
Oleksii Holub
2022-06-14 22:34:55 +03:00
parent ff25dccf8a
commit ae1f03914c
3 changed files with 7 additions and 2 deletions

View File

@@ -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.

View File

@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Version>2.2.5</Version>
<Version>2.2.6</Version>
<Company>Tyrrrz</Company>
<Copyright>Copyright (C) Oleksii Holub</Copyright>
<LangVersion>latest</LangVersion>

View File

@@ -597,7 +597,7 @@ public static class Program
return await new CliApplicationBuilder()
.AddCommandsFromThisAssembly()
.UseTypeActivator(serviceProvider.GetService)
.UseTypeActivator(serviceProvider)
.Build()
.RunAsync();
}