Blog Post

Could not run the "GenerateResource"

Monday, March 14, 2016 9:47 AM

Error:

 

Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime "CLR2" and architecture "x86".  Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files (x86)\MSBuild\12.0\bin\MSBuildTaskHost.exe" exists and can be run. projectName

build issue

The issue has been known for a while 

and reported here: 'https://connect.microsoft.com/VisualStudio/feedback/details/758772/generateresource-fails-for-net-3-5-application-when-net-4-5-has-been-installed'

This however does not resolve the issue.

 

I have changed .NET version on the project and now I can compile. As illustrated on picture below

Blog
Products
Error pages
Links and tools