我尝试使用 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 …Run Code Online (Sandbox Code Playgroud)