MSBuild support

Oct 21, 2011 at 12:28 PM

The only missing thing is a MSBuild integration so that the rules are applied just when building the project. This would be useful for automated builds.

Other benefit: It would be easy to use FxCop with all VS versions supporting MSBuild (VS2005 and higher) and also Express editions of VS will benefit from it

Since this is already possible with StyleCop I assume that it is no big deal doing this for FxCop too?

e.g. StyleCop integration to MSBuild file:

<Import Project="$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.3\Microsoft.StyleCop.targets" />  
Harald-René Flasch (hfrmobile)

Nov 9, 2011 at 1:44 PM

Hi hfrmobile, thank you for your suggestion.


Certainly, it isn't so hard thing to implement a MSBuild target file and MSBuild tasks to integrate FxCop into build process.

I'll consider to add this MSBuild Integration feature in the future release.

Nov 9, 2011 at 8:35 PM

You're welcome!

Looking forward for the future releases!