MSBuild could not create or connect to a task host with runtime "CLR2" and architecture "x86".
2014-04-15 15:33
651 查看
vs2010 and vs2012 are installed on target machine.
Build c# project using vs2010, following error occurred:
ERROR message :
error MSB4216: 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\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\MSBuildTaskHost.exe" exists and can be run.
Solution:
Set environment variables:
DisableOutOfProcTaskHost=true
____________________
Following solution is provided by Forrest Guo.
Following content is only used for knowledge sharing. ^^
This is a known issue which supposed to be fixed in later release. The MSBuildTaskHost.exe is introduced by Visual Studio 2012 but not the Windows SDK. This is a new feature in VS 2012 build system, out of process build.
You can disable this feature if VS 2012 is not used in building. Setting environment variable: DISABLEOUTOFPROCTASKHOST=1
Reference: Build is unable to find MSBuildTaskHost.exe
Build c# project using vs2010, following error occurred:
ERROR message :
error MSB4216: 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\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\MSBuildTaskHost.exe" exists and can be run.
Solution:
Set environment variables:
DisableOutOfProcTaskHost=true
____________________
Following solution is provided by Forrest Guo.
Following content is only used for knowledge sharing. ^^
This is a known issue which supposed to be fixed in later release. The MSBuildTaskHost.exe is introduced by Visual Studio 2012 but not the Windows SDK. This is a new feature in VS 2012 build system, out of process build.
You can disable this feature if VS 2012 is not used in building. Setting environment variable: DISABLEOUTOFPROCTASKHOST=1
Reference: Build is unable to find MSBuildTaskHost.exe
相关文章推荐
- Cannot connect to WMI provider.You do not have permission or the server is unreachable.Note that you can only manager SQL Server 2005 and later version with SQL Server Configuration Manager.Invalid namespace [0x8004100e]
- How to deal with "Could not find component on update server. Contact VMware Support or your system administrator." in Vmware.
- Struts2中Could not create and/or set value back on to object的解决办法
- MySQL workbench 中修改"Host 'X' is not allowed to connect to this MySQL server"] with root ca
- "Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased."
- java异常:Could not create and/or set value back on to object 总结
- Could not create and/or set value back on to object .
- 六、ERROR - Could not create and/or set value back on to object
- DomainU Fails to boot with "Error: Device 0 (vif) could not be connected. Could not find bridge, and none was specified"
- struts2.x 的提交表单出现 Could not create and/or set value back on to object
- Home not found. Define system property "openfireHome" or create and add the openfire_init.xml file to the classpath
- java.sql.SQLException: null, message from server: "Host '10.11.3.67' is not allowed to connect to t
- This application failed to start because it could not find or load the Qt platform plugin "windows"
- message from server: "Host 'xxx' is not allowed to connect to this MySQL server"
- This application failed to start because it could not find or load the Qt platform plugin "windows"
- javax.mail.MessagingException: Could not connect to SMTP host: smtp.xx.com, port: 465;
- "Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
- phpmailer SMTP Error: Could not connect to SMTP host. 错误解决
- java.sql.SQLException:null, message from server: "Host '192.168.0.131' is not allowed to connect.
- 【xcode】错误之Could not launch "" failed to get the task for process