question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All FSharp.Core redirects removed after updating to FSharp.Core 5.0.0

See original GitHub issue

paket update FSharp.Core

The expected change in paket.lock:

image

But all the redirects (in ~150 projects) are gone:

image

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:open
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
forkicommented, Dec 1, 2020

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?

1reaction
forkicommented, Dec 1, 2020

do you have a simple repro with just one project as a zip? I would look at it asap

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found