Skip to content

Conversation

nblumhardt
Copy link
Member

Fixes #104

<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