fsprojects / fsprojects/Paket

Running paket as a dotnet tool from dotnet 6.0.202 results in an error HRESULT: 0x80004005

Open
#4,147 7 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

running paket from dotnet 6 results in an error HRESULT: 0x80004005

Repro steps

Have paket as a local tool in a repo, then:

dotnet tool restore
dotnet paket restore
Expected behavior

paket runs ok

Actual behavior

paket crashes with the following:

➜ dotnet paket
Failed to initialize CoreCLR, HRESULT: 0x80004005
(base) myriad on 🌱 master [$!] .NET v6.0.202
Known workarounds

Apparently you can replace the dotnet CLI from dotnet6 with the one from dotnet5 see: https://github.com/dotnet/sdk/issues/24648

Other info

OS: macOS Monterey 12.3.1
sdk installed: dotnet 6.0.202 only

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

Start by reproducing the failure with Paket as a local tool using dotnet 6.0.202 on macOS Monterey, following the listed dotnet tool restore and dotnet paket commands. Compare the behavior with the documented dotnet 5 CLI workaround and the linked .NET SDK issue. Done means Paket runs successfully without the CoreCLR initialization error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.