gpt4 book ai didi

amazon-web-services - AWS 代码构建 : Unknown runtime version named '5.0' of dotnet

转载 作者:行者123 更新时间:2023-12-05 08:48:46 24 4
gpt4 key购买 nike

我的 ASP.net 核心 API 面向 Dot net 5.0。是否有人使用 AWS CodeBuild 使用 CI/CD 方法在 Amazon Linux 平台上成功部署了 dotnet 5 应用程序?

我尝试使用解析为版本 3.1 的 dotnet latest。而且,当我在 buildspec.yml 中使用 5.0 时,它会出错。作为per the blog ,好像是支持的。但不确定如何使用 buildspec.yml 安装。

phases:   
install:
runtime-versions:
dotnet: 5.0

aws error

最佳答案

尚不支持。来自链接的博客:

Support for targeting .NET 5 in AWS CodeBuild is coming soon.

还有more recent github issue表明您可以为 CB 和 dotnet:5.0 构建自己的自定义图像

latest支持的版本是 dotnet 3.1

关于amazon-web-services - AWS 代码构建 : Unknown runtime version named '5.0' of dotnet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65546757/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com