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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南