小编Rob*_*olf的帖子

dotnet build/msbuild 在使用 .NET 6 的GenerateResource 任务上失败

我尝试使用 gitlab 运行程序在 CI/CD 管道中构建我的项目,但总是以以下错误消息结束:

\n
C:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.Common.CurrentVersion.targets(3264,5): error MSB4216: The GenerateResource task could not be performed because MSBuild could not create a task host or connect to a task host with runtime CLR4 and architecture x86.  Make sure that (1) the requested runtime and/or architecture is available on the computer and (2) the required executable file "C:\\Program Files\\dotnet\\sdk\\6.0.100\\MSBuild.exe" exists and can be executed. [project_path]\nC:\\Program Files\\dotnet\\sdk\\6.0.100\\Microsoft.Common.CurrentVersion.targets(3286,7): error MSB4028: The output of the GenerateResource task could not be retrieved from the …
Run Code Online (Sandbox Code Playgroud)

.net c# msbuild

6
推荐指数
0
解决办法
689
查看次数

标签 统计

.net ×1

c# ×1

msbuild ×1