Paket
Paket copied to clipboard
Paket Restore Targets doesn't work with .NET 6+
Description
Paket.Restore.targets doesn't work for .NET 6/7 projects.
Repro steps
Please provide the steps required to reproduce the problem
- Create new project (Class Library or Console App)
- Install Paket using dotnet tool
- Initiazlie Paket using: Paket init
- 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
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: @.***>