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?

preguntada hace 3 años872 visualizaciones
1 Respuesta
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.

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas