Search code examples
c#buildmsbuildnuke-build

Nuke build .nuke file and build multiple solutions


I am using nuke build for the first time.

Working through the getting started guide, I have ran the following:

dotnet tool install Nuke.GlobalTool --global
nuke :setup

This ran through a wizard which generated:

  1. build folder containing a csharp project to do the build
  2. .nuke file
  3. build.ps1 and build.sh to run the build

The .nuke file seems to contain a solution I selected during the build. Now I have a few solutions located under a folder that I want to build.

So I was assuming I could put them in the .nuke file.

code/solution1/solution1.sln
code/solution2/solution2.sln
code/solution3/solution3.sln

To no avail. When I run the build.ps1, it only builds the first solution in the list.

And the only help I see about the .nuke file states "Root directory marker file; references default solution file"

Question is, using the nuke build, how can I build multiple solutions under a folder hierarchy?


Solution

  • I don't believe it's designed for this - instead you need to have one nuke build per solution.