Stylecop version problem (4.3.1.3 - 4.3.2.1)

Oct 8, 2009 at 9:18 PM

Hello.

I have the follow error in my build log, but my build is green but the stylecop not run.

(AfterDropBuild target) ->
  MSBUILD : warning : FileNotFoundException: Could not load file or assembly 'Microsoft.StyleCop, Version=4.3.1.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
MSBUILD : warning :    at MSBuild.ExtensionPack.CodeQuality.StyleCop.Scan()
MSBUILD : warning :    at MSBuild.ExtensionPack.CodeQuality.StyleCop.InternalExecute() in c:\Projects\CodePlex\MSBuildExtensionPack\Releases\3.5.3.0\Main3.5\StyleCop\StyleCop.cs:line 159
MSBUILD : warning :    at MSBuild.ExtensionPack.BaseTask.Execute() in c:\Projects\CodePlex\MSBuildExtensionPack\Releases\3.5.3.0\Main3.5\Common\BaseTask.cs:line 69

This may occur from a change in the version of stylecop. Currently 4.3.2.1
How can i fix it?
Coordinator
Oct 8, 2009 at 10:03 PM

Hi Eric

Please upgrade to 3.5.4.0 which targets stylecop 4.3.2.1. You will need to copy the new MSBuild.ExtensionPack.StyleCop.dll to the StyleCop\v4.3 installation folder.

Mike

Oct 8, 2009 at 11:39 PM

Thx!!! After your advice, the build is running very well.