fsprojects / fsprojects/Paket

System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=6.0.0.0,

Open
#4,178 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

I'm trying to install FSharp.Data - causes my app to fail with

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at <StartupCode$test3>.$Program.main@()
Repro steps
10-20 15:00:02 C:\git\new_pc> dotnet --version
6.0.401
10-20 15:00:11 C:\git\test3> dotnet new console -lang f#
...
10-20 15:00:24 C:\git\test3> dotnet run
Hello from F#
10-20 15:00:43 C:\git\test3> dotnet new tool-manifest
10-20 15:00:48 C:\git\test3> dotnet tool install paket
You can invoke the tool from this directory using the following commands: 'dotnet tool run paket' or 'dotnet paket'.
Tool 'paket' (version '7.1.5') was successfully installed. Entry is added to the manifest file C:\git\test3\.config\dotnet-tools.json.
10-20 15:00:52 C:\git\test3> dotnet paket add FSharp.Data -p .\test3.fsproj
Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
Adding package 'FSharp.Data'
Resolving dependency graph...
Updated packages:
  Group: Main
    - FSharp.Core: 6.0.6 (added)
    - FSharp.Data: 5.0.2 (added)
Created dependency graph (2 packages in total)
 - Project test3.fsproj needs to be restored
Resolved package 'FSharp.Data' to version 5.0.2
Calling dotnet restore on test3.fsproj
  Determining projects to restore...
  Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
  The last full restore is still up to date. Nothing left to do.
  Total time taken: 0 milliseconds
  Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
  Restoring C:\git\test3\test3.fsproj
  Starting restore process.
  Total time taken: 0 milliseconds
  Restored C:\git\test3\test3.fsproj (in 77 ms).
Total time taken: 1 second
10-20 15:01:27 C:\git\test3> dotnet run
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at <StartupCode$test3>.$Program.main@()
Expected behavior

It should just work and print "Hello from F#"

Actual behavior

Fails with

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'FSharp.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at <StartupCode$test3>.$Program.main@()
Known workarounds

....

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using the commands shown, starting with the generated test3.fsproj and the Paket restore output. Compare the project state before and after adding FSharp.Data, then verify the fix by running dotnet run and confirming it prints "Hello from F#" without the FileNotFoundException.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.