This project is read-only.

StyleCop lastest version and MSBuild.ExtensionPack.StyleCop.dll assembly reference to old version

Sep 18, 2009 at 11:00 PM


I've the next error:

c:\tmp\Prueba\Build\BuildType\TFSBuild.proj(243,5): error : 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.


My StyleCop version is the lastest Microsoft StyleCop


There is a thing that I can do for use the lastest version without recompile the source Code?


Also I tried to compile the source code version MSBuildExtensionPack-28153, but there is other error:


c:\tmp\Prueba\Build\BuildType\TFSBuild.proj(243,5): error MSB4062: The "MSBuild.ExtensionPack.CodeQuality.StyleCop" task could not be loaded from the assembly C:\Program Files\MSBuild\Microsoft\StyleCop\v4.3\MSBuild.ExtensionPack.StyleCop.dll. Could not load file or assembly 'MSBuild.ExtensionPack.StyleCop, Version=, Culture=neutral, PublicKeyToken=10d297e8e737fe34' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.


Sep 21, 2009 at 9:04 AM

You can run this from a .net command prompt

    sn.exe -Vr *,10d297e8e737fe34

to skip verification on your locally compiled assemblies. will ship soon and support Microsoft StyleCop