3

I often have this situation:

Foo.sln
    Foo.csproj
    Foo.Wpf.csproj

Then I create:

  • A nuget package Foo.nupkg
  • A package for Foo.Wpf.nupkg referencing Foo.nupkg.

I could not find out how to specify that dependency in the docs.

Johan Larsson
  • 17,112
  • 9
  • 74
  • 88

1 Answers1

4

Just create a paket.template for each project and make sure you set the "type" property to "project". Paket will figure things out automatically for you

Edit:

Sample:

Foo.sln
    Foo.csproj
        paket.template
    Foo.Wpf.csproj
        paket.template

Where the paket.template files looks like this:

type project
// This assumes that Author and Version are specified in the project.

If you want to override the defaults check out the docs

Johan Larsson
  • 17,112
  • 9
  • 74
  • 88
forki23
  • 2,784
  • 1
  • 28
  • 42