Skip to content

Commit bf7d7cb

Browse files
committed
Bump version to 0.6.0
1 parent b39a9f1 commit bf7d7cb

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

CommandLineParser/CommandLineParser.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<RootNamespace>MatthiWare.CommandLine</RootNamespace>
66
<PackageId>MatthiWare.CommandLineParser</PackageId>
7-
<Version>0.5.2</Version>
7+
<Version>0.6.0</Version>
88
<Authors>Matthias Beerens</Authors>
99
<Company>MatthiWare</Company>
1010
<Product>Command Line Parser</Product>
@@ -14,10 +14,11 @@
1414
<RepositoryUrl>https://github.com/MatthiWare/CommandLineParser.Core</RepositoryUrl>
1515
<PackageTags>Commandline parser commandline-parser cli</PackageTags>
1616
<LangVersion>7.3</LangVersion>
17-
<AssemblyVersion>0.5.2.0</AssemblyVersion>
18-
<FileVersion>0.5.2.0</FileVersion>
17+
<AssemblyVersion>0.6.0.0</AssemblyVersion>
18+
<FileVersion>0.6.0.0</FileVersion>
1919
<PackageLicenseFile>LICENSE</PackageLicenseFile>
20-
<PackageReleaseNotes>- Fix incorrect error message</PackageReleaseNotes>
20+
<PackageReleaseNotes>- Improve Dependency Injection
21+
- Dependency version upgrades</PackageReleaseNotes>
2122
<Copyright>Copyright Matthias Beerens 2018</Copyright>
2223
<RepositoryType>git</RepositoryType>
2324
</PropertyGroup>

Extensions/FluentValidationsExtensions/FluentValidationsExtensions.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<RootNamespace>MatthiWare.CommandLine.Extensions.FluentValidations</RootNamespace>
66
<AssemblyName>CommandLineParser.FluentValidations</AssemblyName>
7-
<Version>0.5.2</Version>
7+
<Version>0.6.0</Version>
88
<Authors>Matthias Beerens</Authors>
99
<Company>MatthiWare</Company>
1010
<Product>FluentValidations Extension For MatthiWare.CommandLineParser</Product>
@@ -14,10 +14,11 @@
1414
<RepositoryUrl>https://github.com/MatthiWare/CommandLineParser.Core</RepositoryUrl>
1515
<PackageTags>Commandline parser commandline-parser cli fluent-validations extension</PackageTags>
1616
<LangVersion>7.3</LangVersion>
17-
<AssemblyVersion>0.5.2.0</AssemblyVersion>
18-
<FileVersion>0.5.2.0</FileVersion>
17+
<AssemblyVersion>0.6.0.0</AssemblyVersion>
18+
<FileVersion>0.6.0.0</FileVersion>
1919
<PackageLicenseFile>LICENSE</PackageLicenseFile>
20-
<PackageReleaseNotes>- Remove generic new constraint</PackageReleaseNotes>
20+
<PackageReleaseNotes>- Improve Dependency Injection
21+
- Dependency version upgrades</PackageReleaseNotes>
2122
<Copyright>Copyright Matthias Beerens 2019</Copyright>
2223
<PackageId>MatthiWare.CommandLineParser.Extensions.FluentValidations</PackageId>
2324
<RepositoryType>git</RepositoryType>

SampleApp/Program.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Reflection;
33
using System.Threading.Tasks;
44
using MatthiWare.CommandLine;
5+
using MatthiWare.CommandLine.Abstractions;
56
using MatthiWare.CommandLine.Extensions.FluentValidations;
67
using Microsoft.Extensions.DependencyInjection;
78
using SampleApp.DependencyInjection;
@@ -27,7 +28,11 @@ static async Task<int> Main(string[] args)
2728

2829
var parserOptions = new CommandLineParserOptions { AppName = "Sample App" };
2930

30-
var parser = new CommandLineParser<Options>(parserOptions, services);
31+
services.AddCommandLineParser<Options>(parserOptions);
32+
33+
var provider = services.BuildServiceProvider();
34+
35+
var parser = provider.GetRequiredService<ICommandLineParser<Options>>();
3136

3237
#region Example to add FluentValidations to the project
3338
parser.UseFluentValidations((config) =>

0 commit comments

Comments
 (0)