我尝试使用 gitlab 运行程序在 CI/CD 管道中构建我的项目,但总是以以下错误消息结束:
\nC:\\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 FilesWritten parameter. Object does not match target type. [project_path]\nRun Code Online (Sandbox Code Playgroud)\n我\xc2\xb4ve安装了版本6.0.100的.NET6 SDK。\n它似乎试图找到msbuild.exe,但\xc2\xb4s不在那里。I\xc2\xb4ve 临时复制了该文件,但这会导致无休止的构建,没有结果或错误消息。
\n我错过了什么吗?在我的 Visual Studio 2022 中,构建过程正在运行并生成我的二进制文件。
\n| 归档时间: |
|
| 查看次数: |
689 次 |
| 最近记录: |