Skip to content

Cake Addin

Grzegorz Gałęzowski edited this page Nov 4, 2018 · 3 revisions

How to get it?

in your cake build script, use the following preprocessor directive:

#addin nuget:?package=Cake.NScan&loaddependencies=true

or, if you prefer a specific version:

#addin nuget:?package=Cake.NScan&version=0.5.0&loaddependencies=true

API

In your cake script, use the NScanAnalyze() method:

NScanAnalyze(<<path to solution>>, <<path to config file>>);

e.g.

NScanAnalyze(@"C:\Users\myUser\Documents\GitHub\nscan\src\NScan.sln", @"C:\Users\myUser\Documents\GitHub\nscan\nscan.config");

The method will log on console window and throw an exception when a check fails.

Clone this wiki locally