加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

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

发布时间:2020-12-16 23:55:15 所属栏目:大数据 来源:网络整理
导读:我的应用程序不断收到此错误(我使用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 ensu
我的应用程序不断收到此错误(我使用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)MSBuild12.0binMSBuildTaskHost.exe” exists and can be run.

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

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

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

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

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

<PropertyGroup>
    ...
    <DisableOutOfProcTaskHost>true</DisableOutOfProcTaskHost>
</PropertyGroup>

发现here。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读