After installing Visual Studio 2012 with .NET 4.5 I started to get the following errors while building using msbuild:
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.
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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With