With the maven license plugin you can cause a build to fail if any of the source files does not have the required license/copyright statement present.
Is there any way to do this for .Net projects (either in Visual Studio or via NAnt) without having to build my own tool for it?
Since I couldn’t find anything obvious I coded up a crude but effective .Net executable that can be invoked from the command line
Code is here and usage is as follows:
Or look at the source of Program.ParseOptions() for more detail.