创建引用解决方案中另一个包的包

Create package that references another package in solution

我经常遇到这种情况:

Foo.sln
    Foo.csproj
    Foo.Wpf.csproj

然后我创建:

我无法找到如何在 the docs 中指定该依赖项。

只需为每个项目创建一个 paket.template,并确保将 "type" 属性 设置为 "project"。 Paket 会自动为您解决问题

编辑:

样本:

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

paket.template 文件如下所示:

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

如果您想覆盖默认设置,请查看 the docs