After facing this problem for many days, I found out this article that solved my problem:
https://www.linkedin.com/pulse/app-service-troubleshooting-potato-snake-matthew-ricketts/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My app runs successfully in local docker container however when deploying to azure container apps, it gives this error.
The command could not be loaded, possibly because:
Download a .NET SDK:
https://aka.ms/dotnet/download
Learn about SDK resolution:
After facing this problem for many days, I found out this article that solved my problem:
https://www.linkedin.com/pulse/app-service-troubleshooting-potato-snake-matthew-ricketts/