Skip to content

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

Open

Agent suggestions

Public preview

Description

@Dizmus

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

Activity

  1. ChrSteinert commented on Sep 26, 2023

    @ChrSteinert
    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?

  2. Dizmus commented on Sep 26, 2023

    @Dizmus
    Author

    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

  3. ChrSteinert commented on Sep 26, 2023

    @ChrSteinert
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions