Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Dizmus opened this issue Aug 17, 2023 · 3 comments
Open

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

Dizmus opened this issue Aug 17, 2023 · 3 comments

Comments

@Dizmus
Copy link

Dizmus commented Aug 17, 2023

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
Copy link
Contributor

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
Copy link
Author

Dizmus commented Sep 26, 2023

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
Copy link
Contributor

ChrSteinert commented Sep 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants