Sitelet https://github.com/fsprojects/Paket/issues/1779
Skip to content

Not able to use net20 library in net461 project #1779

Description

@simendsjo

Description

I'm having a problem after upgrading Paket to 3.4.0. Our project is net461, and we have framework: net461 at the top of our paket.dependencies. However, we use a package which only exists for net20. We used to have the reference to this project in paket.references, but added a reference to the dll manually. The new version of paket breaks this though. It removes our manually added reference, but does not add a reference to the dll, probably as its net20 and not net461. We tried a workaround by removing it from paket.references and adding it manually, but this breaks on our build server as we're using paket.targets which runs restore directly against the paket.references file and, as we removed the reference, won't download the package. Preferable, we would like paket to add this to our project even though a specific version doesn't exist for net461 (which works automatically for libraries >=net40 it seems). Is there a way to force this behavior? Or other workarounds which doesn't involve changing paket.targets or our build server?

Repro steps

Run paket install in repo https://github.com/simendsjo/paket-net20-library-problem

Expected behavior

net20 library is referenced in net461 project

Actual behavior

net20 library is not referenced

Known workarounds

None

Related information

  • Operating system: Windows 10
  • Paket: 3.4.0
  • .NET: 4.6.1

Activity

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