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?

asked 3 years ago859 views
1 Answer
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.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions