By default, code analysis is only done for projects which are compiled. So when I run MSBuild from the command line, it runs code analysis only for the first time. On subsequent
Simply set CodeAnalysisGenerateSuccessFile to false in the project file.
CodeAnalysisGenerateSuccessFile
false
true false