【发布时间】:2020-12-29 20:01:22
【问题描述】:
, 我正在尝试使用 Azure DevOps Pipeline 发布我的 Elastic Beanstalka .NetCore 项目,但 Azure DevOps Pipeline 也出现在 Beanstalk Publish 中,在还原、构建、发布步骤中没有任何问题,但我得到了AWS Beanstalka 日志文件中的以下错误。 .Net Core 2.2 项目 AWS文档中:https://docs.amazonaws.cn/en_us/elasticbeanstalk/latest/platforms/platforms-supported.html#platforms-supported.dotnetlinux
[INFO] Executing instruction: RunAppDeployPreBuildHooks
[INFO] The dir .platform/hooks/prebuild/ does not exist in the application. Skipping this step...
[INFO] Executing instruction: CheckProcfileForDotNetCoreApplication
[INFO] checking application and updating executable file permissions...
[INFO] checking Procfile...
[ERROR] An error occurred during execution of command [app-deploy] - [CheckProcfileForDotNetCoreApplication]. Stop running the command. Error: there is no .runtimeconfig.json file for your single application. Please provide a valid application
【问题讨论】:
-
你知道
.runtimeconfig.json文件在哪里吗? -
在发布文件中。 projectname.runtimeconfig.json 存在。但 AWS Benstalk 看不到该文件。
-
同时,Azure DevOps 管道在 AWS Beanstalk 平台上运行,在 Windows Server Core 2019 / 2.5.8 上具有相同的设置。在 64 位 Amazon Linux 2 / 2.0.2 服务器上运行的 AWS Beanstalk .NET Core 我收到错误消息:(
标签: amazon-web-services core publish .net-core-2.2