Deploying .NET with Beanstalk: must include '.runtimeconfig.json'

0

I am trying to deploy a .NET application on Linux using the .NET core on Linux deployment option in Elastic Beanstalk. Due to account permissions I can't use the plugin for VS, so I'm trying to upload a ZIP of the published code. Everything seems to be in place, and I can deploy the sample application code with no problems. But when I try to upload my own code, I get the following error, even though the Website.runtimeconfig.json file is present in the uploaded .zip file:

Instance deployment: Your source bundle has a single .NET Core application. You must include a file with a '.runtimeconfig.json' suffix. The deployment failed.

Any idea what I might be missing?

已提问 3 年前872 查看次数
1 回答
0

The issue was that I was zipping up the folder that contained the code, rather than just the code inside the folder itself. The extra folder of depth seemed to cause Beanstalk not to detect the files correctly. Zipping up just the code worked.

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则