-
Notifications
You must be signed in to change notification settings - Fork 125
Detected package downgrade: System.IO from 4.3.0 to 4.1.0. #177
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
Comments
Sorry for not updating this post, Yes i had to add the references with the correct versions for it to publish successfully as a workaround. |
Was having this exact issue. Updating the file plugin to 5.0 pre-release fixed it. I didn't update the main Serilog though, not sure if that matters. |
I have the same issue in my WPF project for .net5. I must add these lines to my csproj file to make it work.
|
I believe this is fixed on the newest 5.0 dev versions. Will ship an RTM shortly. |
We just ran into this on .net 7 using the new container publish task. No other projects are affected and all our nuget packages refernce the same version. We fixed it by including this in our packagereferences <PackageReference Include="Microsoft.NETCore.App" Version="2.2.0" ExcludeAssets="all" PrivateAssets="all" /> |
It might be time to nudge the minimum framework version targets for this (and Serilog) forwards. Reopening, though I don't think the change will be made here until the upstream Serilog 3.0 happens. Thanks for leaving a note 👍 |
@nblumhardt bumping |
@bartelink guess it's time to bump |
There is a way to fix this without needing to push a new package with |
Serilog 4.x should no longer suffer from this issue, closing again - and thanks everyone for your input 👍 |
Hello,
i'm getting this error when publishing Website (Asp.net Core Version 3.1.8):
Detected package downgrade: System.IO from 4.3.0 to 4.1.0. Reference the package directly from the project to select a different version.
Serilog.Sinks.File 4.1.0 -> System.IO.FileSystem 4.0.1 -> runtime.win.System.IO.FileSystem 4.3.0 -> System.IO (>= 4.3.0)
Serilog.Sinks.File 4.1.0 -> System.IO.FileSystem 4.0.1 -> System.IO (>= 4.1.0)
The text was updated successfully, but these errors were encountered: