Msbuild error with msb4064 and msb4063 error

After installing Visual Studio 2012 with .NET 4.5, I started getting the following errors when building using msbuild:

  • error MSB4064:

The SdkToolsPath parameter is not supported by the GenerateResource task. Ensure that the parameter exists in the task and that it is a public instance custom object.

  • error MSB4063:

The GenerateResource task cannot be initialized using input parameters. The header of the project file is as follows:

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

Any ideas on what changes were made in .NET 4.5 that might cause abbreviation errors?

+5
source share
3 answers

Microsoft.Common.targets C:\Windows\Microsoft.Net\v4.0.30319. Visual Studio 2012 . - "" GenerateResourceMSBuildRuntime , - Windows 8 ( . 2271). , Microsoft.Common.targets

<GenerateResourceMSBuildRuntime 
     Condition="'$(GenerateResourceMSBuildRuntime)' == '' and 
                 $([MSBuild]::DoesTaskHostExist(`$(TargetFrameworkAsMSBuildRuntime)`, `$(GenerateResourceMSBuildArchitecture)`))">$(TargetFrameworkAsMSBuildRuntime)</GenerateResourceMSBuildRuntime>
+3

, , , .. ( "MSB6002: " ResGen " " ). , . Microsoft Visual Studio 2012 SDK.

. .

+1

, , ( "MSB6002: " ResGen ".

After removing all the attributes that are not supported by version 3.5 of the task ( GenerateResource Task ), my build works again.

0
source

All Articles