简体   繁体   中英

Mac - The framework 'Microsoft.NETCore.App', version '3.1.0' (x64) was not found

I am using a Mac (x64, Intel) and trying to test a Dotnet project.

I currently have 6.0.104 dotnet SDK installed, and when I am trying to test that project, I am facing the following error:

Testhost process exited with error: It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.0' (x64) was not found.
  - The following frameworks were found:
      6.0.4 at [/usr/local/Cellar/dotnet/6.0.104_1/libexec/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=osx.12-x64
. Please check the diagnostic logs for more information.

Test Run Aborted.

I have installed 3.1.x SDK from this page and somehow it is not getting reflected. Is there a way we can bypass this error and change the SDK version?

According to the error message ,it need the 3.1.0 runtime to run the asp.net core application, so I suggest you could try to go to this page to download the 3.1.0 runtime to test again.

在此处输入图像描述

Another workaround is update your application to use dotnet core 3.1.24 instead of using the 3.1.0. It is too old which is out of support time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM