Home > Articles > Details

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?


Login to See the Rest of the 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 .

If you log in, you will be notified when someone leaves a comment.

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

© 2022 - ErnesTech - Privacy