fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
1.99k stars 520 forks source link

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

Open Dizmus opened 10 months ago

Dizmus commented 10 months ago

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

ChrSteinert commented 9 months ago

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?

Dizmus commented 9 months ago

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

ChrSteinert commented 9 months ago

No sweat! I can reproduce your issue locally. The thing is; this is basically as designed, and not a bug. So this I snore a usage/usability issue, than with the code.

Anyway – once you have that issue again with a project, I'll be happy to assist you further.


Von: Dizmus @.> Gesendet: Tuesday, September 26, 2023 12:52:04 PM An: fsprojects/Paket @.> Cc: Christian Steinert @.>; Comment @.> Betreff: Re: [fsprojects/Paket] Paket Restore Targets doesn't work with .NET 6+ (Issue #4223)

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

— Reply to this email directly, view it on GitHubhttps://github.com/fsprojects/Paket/issues/4223#issuecomment-1735295603, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACLJHRNSG63KUKWHV2MV6TLX4KXVJANCNFSM6AAAAAA3UJFWWM. You are receiving this because you commented.Message ID: @.***>