This project is read-only.

Stylecop version problem ( -

Oct 8, 2009 at 10:18 PM


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=, 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\\Main3.5\StyleCop\StyleCop.cs:line 159
MSBUILD : warning :    at MSBuild.ExtensionPack.BaseTask.Execute() in c:\Projects\CodePlex\MSBuildExtensionPack\Releases\\Main3.5\Common\BaseTask.cs:line 69

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

Hi Eric

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


Oct 9, 2009 at 12:39 AM

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