File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed
Extensions/FluentValidationsExtensions Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 22using System . Reflection ;
33using System . Threading . Tasks ;
44using MatthiWare . CommandLine ;
5+ using MatthiWare . CommandLine . Abstractions ;
56using MatthiWare . CommandLine . Extensions . FluentValidations ;
67using Microsoft . Extensions . DependencyInjection ;
78using 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 ) =>
You can’t perform that action at this time.
0 commit comments