我们如何在 dot net core 3.1 的管道中设置构建配置?无法使用自包含框架 -self contains true -r linux-x64
从 azure 门户的部署中心设置 3.1,我们收到以下错误错误:
进程“C:\hostedtoolcache\windows\dotnet\dotnet.exe”失败,退出代码为 1。
请提出建议。谢谢。
最佳答案
尝试这样。
dotnet publish -r linux-x64 -c Release /p:PublishSingleFile=true
并进行依赖修剪
dotnet publish -r linux-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
关于azure - 使用独立框架时,为 dot net core 3.1 设置 CI 构建配置失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60501313/