fsprojects / fsprojects/Paket

better way to show reinstall after framework changes when restore/build with auto-detect

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

Nobody has claimed this yet.

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

Description

Description

Can we show some information to inform users re-install paket dependency, when target framework changes on project file.

When install paket.lock with auto-detect, it will generate the restrictions depend on project files's TargetFramework(s) . After install, upgrade TargetFramework in project file, then rebuild project, paket will generate an empty projectxxx.frameworkxxx.paket.resolved and empty projectxxx.references file. So dotnet build will falied to load the right dependencies, and show build errors.

Repro steps

Please provide the steps required to reproduce the problem

  • framework: auto-detect in paket.dependencies
  • paket install to have a 'paket.lock' file
  • change TargetFramework netcoreapp2.1 -> netcoreapp2.2
  • dotnet build ( Errors Here )
Expected behavior

can we show some info to users, they need re-install paket.lock before execute msbuild.

Actual behavior

Show build errors, may lead some confusions.

Known workarounds

paket install after change project file target frameworks

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 flow with framework: auto-detect in paket.dependencies, a paket.lock file, and a TargetFramework change from netcoreapp2.1 to netcoreapp2.2, then run dotnet build. Trace how the project file, paket.resolved, and references files are handled; done means users receive clear guidance to run paket install before building when frameworks change.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.