Skip to content
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

Use .Net 5 packages? #49

Closed
zachrybaker opened this issue Mar 24, 2022 · 8 comments
Closed

Use .Net 5 packages? #49

zachrybaker opened this issue Mar 24, 2022 · 8 comments

Comments

@zachrybaker
Copy link

Some poor blokes like me need this code to work well with both net472, netCore3.1 and Net5 (and possibly net6) targets. This package ends up in a large solution and ends up pulling a v4 of System.Configuration.ConfigurationManager. We have another hard requirement for v5 of this package, however, that keeps an app from booting, unless I overwrite this dll on boot with a v5.

I really doubt that there's a hard requirement on the net472 framework's version, right?

@zachrybaker
Copy link
Author

zachrybaker commented Mar 24, 2022

Otherwise, I think I can probably just explicitly include v5 of System.Configuration.ConfigurationManager in my logging nuget project (not the app, just a wrapping logging project to reduce boilerplate and get things a certain way), and move on.

@nblumhardt
Copy link
Member

Hi @zachrybaker - would your problem be solved by adding a .NET 5 TFM to https://github.com/serilog/serilog-settings-appsettings/blob/dev/src/Serilog.Settings.AppSettings/Serilog.Settings.AppSettings.csproj ? We've made that change in several other libs so should be no problem pushing through here. Any chance of a PR?

@zachrybaker
Copy link
Author

zachrybaker commented Mar 26, 2022 via email

@Numpsy
Copy link
Member

Numpsy commented Jun 19, 2024

Question: What version of System.Configuration.ConfigurationManager should a Serilog 4 version of this library use for none-framework builds? (e.g. use the minimum version that works / use the latest version / use versions that match the .NET 6/8 TFMs?)

@nblumhardt
Copy link
Member

I think for this package I'd lean towards "the minimum non-vulnerable version that works", but I haven't given it any deep thought :-)

@Numpsy
Copy link
Member

Numpsy commented Jun 20, 2024

Ok (version 5.0 has been deprecated now, so that won't be the one to use at least)

@Numpsy
Copy link
Member

Numpsy commented Jul 2, 2024

WIP updates for Serilog 4 at #52 (adds .NET6/8 targets)

@Numpsy
Copy link
Member

Numpsy commented Jul 4, 2024

V3 is published and now has these dependencies:
image
i.e it's using the inbox version of System.Configuration.ConfigurationManager on .NET Framework, and a 'minimum' version on .NET Standard and Core.
I believe that users should be able to bump the reference to version 6 or newer in their own application if they need a newer version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants