fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2.02k stars 524 forks source link

"install" removes all bindingRedirect from all App.config #3264

Open BentTranberg opened 6 years ago

BentTranberg commented 6 years ago

When I install a package in my .NET Framework 4.6.1 only solution, all bindingRedirect in all App.config of the F# and C# projects are removed. In fact the entire "runtime" tag is removed from all these files.

Unless I restore these changes, my programs in this solution won't run successfully. They'll start, but some stuff fails. I guess it's of no interest for this issue exactly what goes wrong.

Typical App.config file in this solution :

`<?xml version="1.0" encoding="utf-8"?>

True True True True True True ` I had hoped the above would be nicely formatted - not so, but at least it's not that difficult to read. ### Known workarounds Revert the changes before commit. ### Other info Version 5.173
forki commented 6 years ago

Please upload a zip with repro

Bent Tranberg notifications@github.com schrieb am Mi., 20. Juni 2018, 20:05:

When I install a package in my .NET Framework 4.6.1 only solution, all bindingRedirect in all App.config of the F# and C# projects are removed. In fact the entire "runtime" tag is removed from all these files.

Unless I restore these changes, my programs in this solution won't run successfully. They'll start, but some stuff fails. I guess it's of no interest for this issue exactly what goes wrong.

Typical App.config file in this solution :

<?xml version="1.0" encoding="utf-8"?>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

True True

<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.4.3.0" /> True <assemblyIdentity name="Google.Protobuf" publicKeyToken="a7d26565bac4d604" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="3.5.1.0" /> True <assemblyIdentity name="LiteDB" publicKeyToken="4ee40123013c9f27" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.1.2.0" /> True <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="11.0.0.0" /> True <assemblyIdentity name="System.Interactive.Async" publicKeyToken="94bc3704cddfc263" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="3.0.3000.0" /> Known workarounds

Revert the changes before commit. Other info

Version 5.173

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/3264, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNPmH7q-xLoOBvGZaUYuo7i85pEebks5t-o7YgaJpZM4UvvIC .