Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find Microsoft.Build.Utilities.v3.5

How can I get Microsoft.Build.Utilities.v3.5? I am using StyleCop 4.7 and it would seem that StyleCop msbuild task which is in Stylecop.dll has as a dependency Microsoft.Build.Utilities.v3.5. Do you know how can I obtain that dll? I mean what should I download and install in order to get that dll (installing Visual Studio is not an option)

like image 539
pmanolov Avatar asked Jul 18 '12 13:07

pmanolov


4 Answers

I had similar issue with Visual-StyleCop.MSBuild version 4.7.59.0.

I fixed it by navigating to Control Panel-> Programs and Features-> Turn Windows features on or off and installed .NET Framework 3.5 (includes .NET 2.0 and 3.0)

like image 156
Aliaksei Maniuk Avatar answered Dec 05 '22 05:12

Aliaksei Maniuk


Try downloading and installing the .NET v3.5 framework if it's not already explicitly installed on your machine.

http://www.microsoft.com/en-us/download/details.aspx?id=21

like image 23
gws2 Avatar answered Dec 05 '22 05:12

gws2


I know this question is over two years old, however this may prove useful to others...

Recently I needed to setup TeamCity Build Integration Server on a Windows 2012 R2 machine (which has .Net 4.5 baked in) and ran into StyleCop 4.7 issues. It is a known issue with the .Net3.5 build utility dependency that StyleCop 4.7 has.

Taken from stylecop.codeplex.com

"I'm trying to get stylecop to run as part of msbuild. I have a server 2012 R2 server that I am using as a build server, where one of the steps of the build is to run stylecop. I have Stylecop 4.7 installed on the build server, but not visual studio. When the build step executes, it complains that one of Stylecop.dll's dependencies "microsoft.build.utilities.v3.5.dll" cannot be found and therefore stylecop cannot run.

Once I copy over a microsoft.build.utilities.v3.5.dll from another machine that does have visual studio (2013) installed and put it into C:\Program Files\Stylecop 4.7, all is well."

I copied the dll from a Visual Studio 2010 only machine and it cleared up the issue.

like image 24
Paul Zahra Avatar answered Dec 05 '22 05:12

Paul Zahra


I had a similar issue and the solution was install .net framework v.3.5.

This should be very simple on windows, just accessing Turn Windows feature on or off and then check .NET Framework 3.5 (includes .NET 2.0 and 3.0).

However I had problem to turn on this feature on my machine, because after checking, the download of resources always returned error.

After searching I found a solution for my case as follows in the video:

"How to fix .NET Framework 3.5 Error 0x800f081f in Windows 10": https://www.youtube.com/watch?v=ZHQqb7IOHZE

Basically, it's necessary to download a .CAB file, move it to C:\ and then run a command in the prompt command.

Link to the .CAB file: http://www.mediafire.com/download/gaflwfg9tth889o/microsoft-windows-netfx3-ondemand-package.cab

Command (Requires to open command prompt as Admnistrator): Dism.exe /online /enable-feature /featurename:NetFX3 /source:C:\ /LimitAccess

The information, link and command has been extracted from the video and its description.

like image 21
Diego Cotini Avatar answered Dec 05 '22 04:12

Diego Cotini