The new version of nspectre (did I mention that you can get it here?) contains a console application called, after some considerable thought, NSpectre.Console. The purpose of this application is to provide the means to process an nspectre configuration file without having to write any code. It’s fairly simple to use. Open a command prompt in the folder where any required dlls (required in order to process the configuration file) are located (this is usually the bin directory of the project whose nspectre configuration file you want to process) and call NSpectre.Console (if you haven’t added the path to NSpectre.Console to your system path variable, then you’ll need the full path.) NSpectre.Console takes the following switches:
-config used to specify the configuration file
-logOutput used to indicate whether or not to output a log file. The logger will be set to Debug level output.
-logFile the name of the output file (the default is Output.log in the current folder.)
If you wanted a log file with the default name, the command would look like this:
NSpectre.Console -config “Your config file” -logOutput
It’s worth noting that the current version of NSpectre.Console only supports version 0.8.1 of nspectre.