Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The framework 'Microsoft.AspNetCore.App', version '3.1.0' (x64) was not found #7373

Closed
prabhatguptanic opened this issue Apr 13, 2022 · 7 comments
Labels
area-tutorials Issues related to getting started tutorials

Comments

@prabhatguptanic
Copy link

Problem encountered on https://dotnet.microsoft.com/en-us/learn/aspnet/microservice-tutorial/run-docker
Operating System: windows

docker run -it --rm -p 3000:80 --name mymicroservicecontainer mymicroservice
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' (x64) was not found.

  • The following frameworks were found:
    6.0.4 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:

@leecow
Copy link
Member

leecow commented Apr 13, 2022

@prabhatguptanic - can you share the results of running dotnet --info on your machine?

@leecow leecow added the needs-more-info Not enough information has been provided. Please share more detail as requested. label Apr 13, 2022
@prabhatguptanic
Copy link
Author

prabhatguptanic commented Apr 18, 2022 via email

@mairaw mairaw added the area-tutorials Issues related to getting started tutorials label Apr 18, 2022
@mairaw
Copy link
Contributor

mairaw commented Apr 18, 2022

Glad you got it working. Closing the issue then.

@mairaw mairaw closed this as completed Apr 18, 2022
@mairaw mairaw removed the needs-more-info Not enough information has been provided. Please share more detail as requested. label Apr 18, 2022
@heraldogama
Copy link

I have the same problem, on WSL Arch Linux (Windows 10). Can someone help me?

 dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.106
 Commit:    4f1e0330de

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/6.0.106/

Host (useful for support):
  Version: 6.0.6
  Commit:  7cca709db2

.NET SDKs installed:
  6.0.106 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

@mchccc
Copy link

mchccc commented Oct 11, 2022

I'm having the same issue as @heraldogama, same packages listed as installed, zero useful information from the linked pages... any suggestions?

edit: read a bit through #7699: tl;dr I think is either update to 22 and perform the dance described there, or install from the binaries here.

edit edit: that didn't work either :/

@heraldogama
Copy link

I removed all installed packages, clear all .NET references in the system. So I installed the version 3.x I needed, because the project I was trying to open was created in this version. Then I installed the last version. With that I solved my problem.

@mchccc
Copy link

mchccc commented Oct 11, 2022

Thank you for the update! I think I'm needing both versions so this is going to be fun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-tutorials Issues related to getting started tutorials
Projects
None yet
Development

No branches or pull requests

5 participants