fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2.02k stars 524 forks source link

msbuild and dependency group #3358

Open mdissel opened 6 years ago

mdissel commented 6 years ago

In the documentation https://fsprojects.github.io/Paket/groups.html two groups are created Build and Test, but how does Paket knows which group should be used when building from VS?

We need to create 3 separate Release builds. The 3 builds are referencing 3 different nuget packages (Shareppoint PnPCore 2013, PnPCore 2016 and PnPCore Online). The source contains conditional compilation based on variables (#if SP2013, etc #endif).

ps. The PnP core nuget packages have a lot of transitive dependencies https://www.nuget.org/packages/SharePointPnPCoreOnline/

forki commented 6 years ago

in the paket.references files you always specify the group. There is no distinction between VS builds and cmd line builds.

mdissel commented 6 years ago

I've update the initial question with more background..