fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.

Home Page:https://fsprojects.github.io/Paket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paket Restore Targets doesn't work with .NET 6+

Dizmus opened this issue · comments

Description

Paket.Restore.targets doesn't work for .NET 6/7 projects.

Repro steps

Please provide the steps required to reproduce the problem

  1. Create new project (Class Library or Console App)
  2. Install Paket using dotnet tool
  3. Initiazlie Paket using: Paket init
  4. Install Newtonsoft.json (or any other project) into some project

Expected behavior

Package Newtonsoft.json is added and can be used

Actual behavior

Package is not added

Known workarounds

There is no workaround. Issue is not reproduced if creating .NET Standard Class library instead of .NET 6

The current default paket.dependecies file has a framework restriction in it (there is an open RP to remove it), which restricts to .NET 5.

Can you post your dependencies file and/or remove the framework restriction line?

The current default paket.dependecies file has a framework restriction in it (there is an open RP to remove it), which restricts to .NET 5.

Can you post your dependencies file and/or remove the framework restriction line?

I don't have a file at the moment, but scenario is pretty straight-forward. No specific actions should be done. I will test it again in nearest future