【发布时间】:2020-10-10 15:47:21
【问题描述】:
我正在使用 Visual Studio 2017 Enterprise 版本 15.7.1 和 .NET Framework 4.5。
我刚刚安装了 Windows 10 更新版本 10.0.18363 build 18363。
我可以在同一个解决方案中构建其他项目,但是对于这个项目,我在构建时遇到此错误
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3045,5):
error MSB4216:
Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime "CLR4" and architecture "x64".
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)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\amd64\MSBuild.exe" exists and can be run.
Error MSB4028 The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter.
Object does not match target type. my-project-name C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 3066
我该如何解决这个问题? 谢谢。
【问题讨论】:
标签: .net visual-studio msbuild .net-4.5