stylecop.dll requires msbuild 3.5?

Feb 21, 2013 at 1:21 AM
Greetings,
I've recently installed VS2012 and uninstalled all previous versions of VS. When attempting to get MSBuild Extension Pack working, i discovered that stylecop.dll version 4:7:1000:0 (File version=4.7.44.0), depends on the following (according to ildasm):
.assembly extern 'Microsoft.Build.Utilities.v3.5'
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 3:5:0:0
}

I've had discussions with the MSBuild Extension Pack folks (http://msbuildextensionpack.codeplex.com/discussions/433398). Do in need to re-install VS 2010 to get this all working?

Thanks -- Dan'l
Mar 1, 2013 at 8:17 PM
Sorry, this is probably not the issue. I eventually found a version of that assembly installed on my server. There's still some issue, not sure if it's with StyleCop.dll or MSBuildExtensionPack. Hopefully, someone smarter than i can figure it out.

Dan'l
Mar 12, 2013 at 3:23 PM
Ok from my side there isn't anything I can do. It would be nice to have stylecop bumped up to .net 4 / 4.5 only but that'll be up to the team on this site.

your workaround for now is to put back .net 3.5

Mike
Mar 13, 2013 at 1:04 AM
I installed .net 3.5 and the problem remains.
Aug 26, 2014 at 1:46 PM

Fix for StyleCop dependencies to .NET3.5 build utility

'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Workaround if not .NET 3.5 is present and using MSBuild.StyleCop 4.7
  1. Find all folders _*\packages\StyleCop.MSBuild.4.7.49.0\tools_
  2. Copy file Microsoft.Build.Utilities.v3.5.dll to folder
Workaround if not .NET 3.5 is present and using StyleCop
  1. Find folder _*\StyleCop4.7_
  2. Copy file Microsoft.Build.Utilities.v3.5.dll to folder