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

Sep 18, 2009 at 11:00 PM

Hi,

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=4.3.1.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

 

My StyleCop version is the lastest Microsoft StyleCop 4.3.2.1.

 

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=3.5.0.0, 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.

Best,

Coordinator
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.

3.5.4.0 will ship soon and support Microsoft StyleCop 4.3.2.1.

Mike