Finalbuilder and Microsoft's StyleCop

Dear VSoft guys,

first of all, I wish you a happy new year everybody.

Today I played around with Microsoft’s StyleCop and I tried to integrate it in our build process. That’s what I experienced:

StyleCop is called from the MSBuild process (from within the *.csproj file). Please refer to the article “Setting Up StyleCop MSBuild Integration” (http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx) for details.

If StyleCop isn’t installed on the Finalbuilder machine it cannot be executed by MSBuild. The result is that the build will not generate any output but unfortunately the build process doesn’t fail.

Of course the StyleCop application should be installed. Therefore I wouldn’t call that a bug. It’s more a missbehavior. I didn’t check yet which value MSBuild returns. Maybe it’s a bug on MS side.

I thought I better let you know.

Best regards, Gerald

Hi Gerald

Happy new year to you too… and thanks for the heads up. We do check the return code from msbuild… so I guess it’s possible msbuild isn’t setting an error code if an unknown element exists in the file.

We’ll look into it when time permits and see if we can get it to report an error is stylecop is referenced but not installed on the build machine.