vb.net – “GenerateResource”任务CLR2运行时错误

我的应用程序不断收到此错误(我使用VS 2013,VB.NET和Windows 8.1,顺便说一下):

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.

该应用程序是为.NET 3.5(3.5和更低的版本让我这个错误)。
我尝试再次运行该应用程序。有时,它有效有时,错误回来了。

我已经尝试在谷歌寻找答案,他们给我的答案证明是:“你的构建的用户名太长”(他们说20个字符或更多的原因导致错误),但这不是真的。我的用户名只有5个字符。无论如何,我不认为我的版本的用户名长度与它有任何关系;这个不成立。

有人知道3.5和更低版本有什么问题吗?谢谢。

解决了我的机器上的问题:

解决它,请转到您的csproj文件,并在属性组下添加以下行:

<PropertyGroup>
    ...
    <disableOutOfProcTaskHost>true</disableOutOfProcTaskHost>
</PropertyGroup>

发现here

相关文章

Format[$] ( expr [ , fmt ] ) format 返回变体型 format$ 强...
VB6或者ASP 格式化时间为 MM/dd/yyyy 格式,竟然没有好的办...
在项目中添加如下代码:新建窗口来显示异常信息。 Namespace...
转了这一篇文章,原来一直想用C#做k3的插件开发,vb没有C#用...
Sub 分列() ‘以空格为分隔符,连续空格只算1个。对所选...
  窗体代码 1 Private Sub Text1_OLEDragDrop(Data As Dat...