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

.NET Core App 3.0 target; misc clean-up #130

Merged
merged 2 commits into from
Apr 13, 2020

Conversation

nblumhardt
Copy link
Member

Fixes #104

@@ -18,21 +18,15 @@
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<RootNamespace>Serilog</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<DisableImplicitFrameworkReferences Condition=" '$(TargetFramework)' == 'netstandard1.3' ">true</DisableImplicitFrameworkReferences>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to make this change to get the .NET 4.5 target building with the current tools 🤔

Copy link

@danielchalmers danielchalmers Apr 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should be able to safely remove DisableImplicitFrameworkReferences altogether along with the System* package references since the targeted frameworks already have implicit references to all those packages (>= 4.3.0)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the note. This was added originally to prevent an explosion of dependencies on .NET Framework when installing packages that targeted .NET Standard 1.x - the exact issues elude me know, and I'd love to be able to remove it, but probably best in a separate/more carefully-considered PR. Thanks!

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.

Cannot add Serilog.Sinks.File to .NET Core 3.x
2 participants