Skip to content

Allow choice of config method for newer framework clients #170

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

Merged
merged 3 commits into from
Oct 25, 2018
Merged

Allow choice of config method for newer framework clients #170

merged 3 commits into from
Oct 25, 2018

Conversation

MV10
Copy link
Contributor

@MV10 MV10 commented Oct 22, 2018

Fixes #161

Because of NuGet assumptions about which package framework variant applies to a given package consumer's target framework, it wasn't possible for net461 or newer apps to use M.E.C configuration (despite being netstandard2.0-compatible), and it wasn't possible for netcoreapp2.0 or newer apps to use System.Configuration config (despite MS having added it to .NET Core 2.0).

The issue explains how this is addressed (additional TFMs and some shared code between them). Also added some System.Configuration unit tests since that is a lot more complex after #167 and fixed a couple of edge-case bugs those tests uncovered (three cheers for unit tests).

As usual I will leave this PR open for a couple days in case anyone wants to offer feedback.

Hopefully after this we can do a master-branch release!

@MV10 MV10 merged commit 41f65c7 into serilog-mssql:dev Oct 25, 2018
@MV10 MV10 deleted the issue_161 branch October 25, 2018 18:54
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

Successfully merging this pull request may close these issues.

Use of .NET Standard configuration from .NET Framework
1 participant