aws / aws-toolkit-visual-studio

AWS Toolkit for Visual Studio - a plugin to interact with AWS
https://aws.amazon.com/visualstudio/
Apache License 2.0
101 stars 29 forks source link

Properly support net 8 #436

Open Soundman32 opened 5 days ago

Soundman32 commented 5 days ago

When I try to use "ASP.NET Core App to AWS Elasticbeanstalk on Linux" to deploy my web site, it show s a warning:

Using self-contained publish since AWS Elastic Beanstalk does not currently have .NET 8 preinstalled

My application then fails to run because (for whatever reason), it appears that publishing my self-contained app is not supported.

I get an error about "Bad Image Format" and "can't load libhostpolicy.so".

I can find AMIs that DO have net8 pre-installed, so why won't the tools support them?

Describe the solution you'd like Support ASP.NET 8 projects without the workaround of 'self-contained' publishing

coderkevdev commented 3 days ago

Same thing deploying a .NET 8 Blazor app to a Windows IIS EBS. I get this message during deploy:

Using self-contained publish since AWS Elastic Beanstalk does not currently have .NET 8 preinstalled

When the IIS EC2 clearly does support hosted .NET 8 apps. If I remove the dlls from the target dir that implement the self-contained aspect, the app runs fine. With them in there, we get 500.30 errors.