Paket icon indicating copy to clipboard operation
Paket copied to clipboard

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

Open Dizmus opened this issue 1 year ago • 3 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

Dizmus avatar Aug 17 '23 15:08 Dizmus

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?

ChrSteinert avatar Sep 26 '23 10:09 ChrSteinert

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

Dizmus avatar Sep 26 '23 10:09 Dizmus

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: @.***>

ChrSteinert avatar Sep 26 '23 11:09 ChrSteinert