All FSharp.Core redirects removed after updating to FSharp.Core 5.0.0
See original GitHub issuepaket update FSharp.Core
The expected change in paket.lock
:
But all the redirects (in ~150 projects) are gone:
which results with runtime errors, like this:
System.TypeInitializationException : The type initializer for 'xxx' threw an exception.
----> System.TypeInitializationException : The type initializer for '<StartupCode$xxx>.$Settings' threw an exception.
----> System.IO.FileLoadException : Could not load file or assembly 'FSharp.Core, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
The header of paket.dependencies
is:
redirects: on
framework: net462
source ./nuget
source https://api.nuget.org/v3/index.json
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Updating to new FSharp.Core version does not ...
I am updating a bunch of older projects to FSharp.Core 4.7 and ... adding binding redirects, is not updated consequentially when you use...
Read more >Could not load file or assembly FSharp.Core, Version=4.0.0.0
I removed every reference to F# in the *.fsproj and *.csproj files (including binding redirects), reinstalled the FSharp.Core package from ...
Read more >release-notes
BUGFIX: DisableImplicitFSharpCoreReference is only set if FSharp.Core is explicitly referenced - https://github.com/fsprojects/Paket/pull/3725 ...
Read more >FSharp.Core 7.0.400
FSharp.Core redistributables from F# Tools version 12.7.0 For F# 7.0. Contains code from the F# Software Foundation.
Read more >Migrate from ASP.NET Core 3.1 to 5.0
This article explains how to update an existing ASP.NET Core 3.1 project to ASP.NET Core 5.0. For instructions on how to migrate from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I looked at it. As I expected it’s the change in /lib folder. The new FSharp.Core 5.0 only comes with netstandard2.0 support.
And netstandard2.0 and net462 don’t really fit together. Short story: If we activate the compatibilty in Paket then stuff breaks. If we don’t then scenarios like this one here doesn’t work.
There is a PR by @0x53A which tries to mitigate this. see https://github.com/fsprojects/Paket/pull/3447 - it also gives a lot more details on the history. Funnily one of those mentioned issues is by you. So you already run into this before.
@0x53A any ideas why we dropped the ball here?
do you have a simple repro with just one project as a zip? I would look at it asap