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
- 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