Build automation with C# and .NET Core

Matthias
2 min readOct 17, 2017

--

NUKE is a build automation system for C# developers. Its key advantage is that it allows builds to be written as simple C# projects, thus providing full IDE integration out of the box. One of the most requested features so far, was the support for dotnet CLI based builds. Today I’m very excited to announce that it has finally been implemented!

Using one of our dedicated build setup scripts you can now select .NET Core as the target platform. You will also be asked about how you want to name your build project and where it should be created. The build project is also automatically added to your solution. By default, the generated bootstrapping scripts will make sure that the dotnet CLI is installed in a nearby temporary directory. However, if it is already installed on all your related systems, you may choose to remove the relevant parts.

After the setup has finished you can reopen your solution. The default build implementation looks roughly as shown in the image above. It contains a Clean, a Restore and a Compile build step. For most solutions, this will already yield reasonable results as shown below:

To extend the build to your needs, you can check out further information about build authoring and our documentation for all the currently supported tools and addins.

--

--