Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Msbuild fails with error msb4064 and msb4063

After installing Visual Studio 2012 with .NET 4.5 I started to get the following errors while building using msbuild:

  • error MSB4064:

The "SdkToolsPath" parameter is not supported by the "GenerateResource" task. Verify the parameter exists on the task, and it is a settable public instance property.

  • error MSB4063:

The "GenerateResource" task could not be initialized with its input parameters. Project file header is as follows:

    <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">

Any ideas what changes have been made in .NET 4.5 that could cause the abover errors?

like image 525
vladimir.karukes Avatar asked Sep 11 '12 21:09

vladimir.karukes


1 Answers

Actually a better solution if you have performed the workaround suggested by Bernard i.e. (If your build fails with “MSB6002: The command-line for the “ResGen” task is too long”). is to remove the workaround from your project file completely. Microsoft have actually fixed the need for this workaround with the Visual Studio 2012 SDK tools.

See the discussion on connect regarding this problem.

like image 144
Scott Baldwin Avatar answered Nov 16 '22 09:11

Scott Baldwin