The framework 'Microsoft.AspNetCore.App' version'3.1.0' was not found

Question: How do you resolve the Error: The framework 'Microsoft.AspNetCore.App' version'3.1.0' was not found when hosting an application in Docker Container Asp.net Core?

 

Answer: Make sure that you are using the right Docker Image. If you are hosting a Dot Net Core Web Application in a Linux Enviroment, make sure that the image you are pulling is of the right version for example, Asp.Net Core 3.1 Docker image hosted in Linuxe Container will be pulled from mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim .


Edit this Article
Docker Dotnet Core Docker Error Docker Images Docker published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

Your Session is Ending
Login to Continue

© 2021 - ErnesTech - Privacy