Cake Addin - grzesiek-galezowski/nscan GitHub Wiki
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.