-
Notifications
You must be signed in to change notification settings - Fork 30
ILogger support #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ILogger support #82
Changes from 6 commits
63337ac
886083f
a62699a
b408618
12b03f0
92e08cf
b7778ff
08a5f9f
92b0ad0
b3acddb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| using Microsoft.Extensions.Logging; | ||
| using System.IO; | ||
|
|
||
| namespace CommandLineParser.Arguments | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| using Microsoft.Extensions.Logging; | ||
| using System; | ||
| using System.IO; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ | |
| <Authors>Jakub Maly;Stef Heyenrath;NTTAKR</Authors> | ||
| <Copyright>Copyright Jakub Maly & Stef Heyenrath © 2018-2022</Copyright> | ||
| <Company>Jakub Maly</Company> | ||
| <TargetFrameworks>net20;net35;net40;net45;net452;netstandard1.3;netstandard2.0;netstandard2.1</TargetFrameworks> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please bring these older frameworks back. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. None of these older frameworks are supported. If someone needs to use this library with older frameworks, they can continue using the older version 3.0.x. Since we are using Microsoft.Extensions.Logging.Abstractions, this will force us to support 4.6.1 and above only. That was the reason to retain only .netstandard 2.0 and 2.1 and bump the version to 3.1.x. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @askids To solve this, you can make an own interface And a default implementation for a ConsoleLogger is required to keep the behavior and usage the same without having to use a new constructor. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I get that. But I don't see this as a version that is continuing the support for old consumers or adding feature to it. This version is meant to be for those people who are upgrading/transitioning to the new model. Adding support for namesake for the old version is not going to help any existing consumers solve any new problem. Why would they even want to upgrade to this version which is not adding any new features for them or fixing any issues? If you want, we can bump the version from 3.1 to 4.0 to show that its a breaking change and update the documentation accordingly. |
||
| <TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks> | ||
| <AssemblyName>CommandLineArgumentsParser</AssemblyName> | ||
| <RootNamespace>CommandLineParser</RootNamespace> | ||
| <PackageId>CommandLineArgumentsParser</PackageId> | ||
|
|
@@ -16,7 +16,7 @@ | |
| <PackageReleaseNotes>See ReleaseNotes.md</PackageReleaseNotes> | ||
| <RepositoryType>git</RepositoryType> | ||
| <RepositoryUrl>https://github.com/j-maly/CommandLineParser</RepositoryUrl> | ||
| <Version>3.0.23</Version> | ||
| <Version>3.1.0</Version> | ||
| <DebugType>full</DebugType> | ||
| <SignAssembly>true</SignAssembly> | ||
| <AssemblyOriginatorKeyFile>CommandLineArgumentsParser.snk</AssemblyOriginatorKeyFile> | ||
|
|
@@ -30,30 +30,9 @@ | |
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup Condition=" '$(TargetFramework)' == 'net20' "> | ||
| <PackageReference Include="LinqBridge" Version="1.3.0" /> | ||
| </ItemGroup> | ||
|
|
||
| <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' "> | ||
| <DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' "> | ||
| <PackageReference Include="Microsoft.CSharp" Version="4.3.0" /> | ||
| <PackageReference Include="System.Collections" Version="4.3.0" /> | ||
| <PackageReference Include="System.Console" Version="4.3.0" /> | ||
| <PackageReference Include="System.Globalization" Version="4.3.0" /> | ||
| <PackageReference Include="System.IO.FileSystem" Version="4.3.0" /> | ||
| <PackageReference Include="System.Linq" Version="4.3.0" /> | ||
| <PackageReference Include="System.Reflection.Extensions" Version="4.3.0" /> | ||
| <PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" /> | ||
| <PackageReference Include="System.Resources.ResourceManager" Version="4.3.0" /> | ||
| <PackageReference Include="System.Runtime.Extensions" Version="4.3.0" /> | ||
| <PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" /> | ||
| <PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" /> | ||
| <PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" /> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" /> | ||
askids marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
Uh oh!
There was an error while loading. Please reload this page.