fsprojects / fsprojects/Paket

dotnet build uses old Paket version

Open
#3,463 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

When I call dotnet build --project [PROJECT_NAME] it uses old Paket version, which causes parsing errors in the dependencies file.

Repro steps

Environment details:

  • Win10 x64,
  • dotnet --version : 2.1.402
  1. Create a project with dotnet new giraffe -lang F# -U
  2. Update the contents of .paket folder manually. Update paket.bootstrapper.exe and targets file
  3. Call dotnet restore and dotnet build causes to call paket 5.130.8
Expected behavior

Use paket.exe from .paket folder.

Actual behavior

Seems like falling back (?!) to another or a cached version.

Known workarounds

None

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 reported sequence with dotnet new giraffe -lang F# -U, then inspect the .paket folder, including paket.bootstrapper.exe and the targets file. Compare the Paket version selected during dotnet restore and dotnet build with the paket.exe in .paket; done means the build uses that local version and no longer falls back to 5.130.8.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.