小编mbr*_*dac的帖子

将 ASP.NET Core 部署到 AWS Elastic Beanstalk,必须包含带有“.runtimeconfig.json”后缀错误的文件

我尝试使用 Bitbucket 管道将 ASP.NET Core(dotnet 版本 5.0)部署到 AWS Elastic Beanstalk,但部署步骤会导致错误:实例部署:您的源包有一个 .NET Core 应用程序。您必须包含带有“.runtimeconfig.json”后缀的文件。部署失败。

弹性豆茎设置:

  • 平台:Linux 上的 .NET Core
  • 平台分支:在 64 位 Amazon Linux 2 上运行的 .NET Core
  • 平台版本:2.1.0(推荐)

(使用#some_text更改敏感数据)

Elastic Beanstalk 日志:

2020-12-04 02:04:16 UTC+0100 ERROR During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
2020-12-04 02:04:16 UTC+0100 ERROR Failed to deploy application.
2020-12-04 02:04:16 UTC+0100 ERROR Unsuccessful command …
Run Code Online (Sandbox Code Playgroud)

deployment amazon-web-services amazon-elastic-beanstalk asp.net-core

9
推荐指数
1
解决办法
6188
查看次数