fsprojects / fsprojects/Paket

Error when referencing paket from fsx script

Open
#4,202 0 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
#r "nuget: Paket"

got this error when referencing paket from fsx (dotnet sdk 7)

error FS3217: /Users/admin/.packagemanagement/nuget/Projects/56595--2b10e8d7-1d9c-4147-8f88-58ccc9f52584/Project.fsproj : error NU1202: Package Paket 7.2.0 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package Paket 7.2.0 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1) / any

Repro steps

dotnet sdk 7, try reference paket from an .fsx script in vscode and try run the script in interactive mode alt+enter..

Expected behavior

I can reference NET7 and old dependencies of dotnetcore are not pulled in...

Actual behavior

Some error related to old dotnetcore2.x that i dont even have installed on my machine...

Known workarounds

not know atm

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 issue with the shown #r "nuget: Paket" reference in an .fsx script using .NET SDK 7 and VS Code interactive with Alt+Enter. Compare the generated compatibility error and confirm that referencing Paket no longer requires the incompatible netcoreapp2.1 dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.