It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.1-servicing.19572.8' was not found.
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
@Varorbc can you please describe what you're trying to do and when it fails like that?
@vitek-karas
PS C:\Test> dotnet --info
.NET Core SDK(反映任何 global.json):
Version: 3.1.100
Commit: cd82f021f4
运行时环境:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.100\
Host (useful for support):
Version: 3.1.0
Commit: 65f04fb6db
.NET Core SDKs installed:
2.2.203 [C:\Program Files\dotnet\sdk]
3.0.100 [C:\Program Files\dotnet\sdk]
3.1.100 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
1.dotnet new webapi(strangely, the new project is not a target framework of 3.1, but 3.0)
2.modify the target framework in Test.csproj to 3.1
3.dotnet run test.csproj
Interesting - thanks.
Can you please try this:
COREHOST_TRACE=1 and COREHOST_TRACEFILE=t.txtdotnet run test.csprojLook through the t.txt or if you're comfortable with it share it here (note that the file will contain local paths and potentially environment variables - so make sure you're not sharing something you don't want to).
@vitek-karas how to set it?
Sorry - these are environment variables
Which directory is the file in?
You can either specify a full path in the environment variable. Or if you don't it should be in the current directory.
Doesn't seem to work
Can you try this:
set COREHOST_TRACE=1
dotnet --info
You should see a LOT of output on the command line.
Now in the same window:
set COREHOST_TRACEFILE=t.txt
dotnet --info
After this you should find t.txt in the current directory.
Delete it and run the project with the problem from the window - it should produce t.txt again.
@vitek-karas I have emailed the file to you
This is weird - for some reason Microsoft.AspNetCore.App 3.1.0 has a framework reference to Microsoft.NETCore.App 3.1.1-servicing.19572.8.
When I look at my install of 3.1.0, I see a normal reference to 3.1.0.
@JunTaoLuo - any idea what's going on?
@vitek-karas Is there any progress? How can I solve this problem?
@anurse - can somebody from the ASP.NET side take a look? This feels like some pre-release bits, but they show up as release 3.1.0 on the machine.
@Varorbc just to be 100% sure, can you please look at C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.0\Microsoft.AspNetCore.App.runtimeconfig.json - and copy the content here?
@vitek-karas https://github.com/aspnet/AspNetCore/issues/17727
Microsoft.AspNetCore.App.runtimeconfig.json
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.1-servicing.19572.8"
},
"rollForward": "LatestPatch"
}
}
Thanks @Varorbc .
This feels wrong:
3.1.1-servicing.19572.8 is a pre-release version (per SemVer rules).3.1.0 of ASP.NET should not be referencing a pre-release version of NETCore.App.3.1.1 NETCoreApp to only by referenced from 3.1.1 ASP.NET framework.3.1.0 ASP.NET references 3.1.0 NETCoreApp and @Varorbc 's install references a different version?I have responded to the AspNetCore issue. It looks like an unreleased servicing build of ASP.NET Core is being installed on the machine but I'm unsure how that happened. This is likely not a dotnet/runtime issue so I think we can close this issue.
Hi! I have similar problem with Microsoft.NETCore.App 3.1.1 on openSuse Linux
I am trying to execute "dotnet solution" and it told me that it has found only SDK version 3.1.0
I had the same problem. Installing .NET Core 3.1.1 runtime solved the problem. link to install Windows 64 bit version of .NET Core 3.1.1 runtime
I had the same problem. Installing .NET Core 3.1.1 runtime solved the problem. link to install Windows 64 bit version of .NET Core 3.1.1 runtime
I just have fixed it by installing Ubuntu) I have there another troubles with Asp.Net Blazor. But that's another story
I had the same problem. Installing .NET Core 3.1.1 runtime solved the problem. link to install Windows 64 bit version of .NET Core 3.1.1 runtime
Thanks. Installing Runtime (v3.1.2) - Windows x64 worked for me.
So bad!!!
I had same problem, When I updated dotnet-ef version to 3.1.2
dotnet ef database update --startup-project ../MyApplication
Build started...
Build succeeded.
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.2' was not found.
- The following frameworks were found:
2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.15 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
3.1.1 at [C:\Program Files\dotnet\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.2&arch=x64&rid=win10-x64
@xiongdasha please open a new issue if necessary
Most helpful comment
I had the same problem. Installing .NET Core 3.1.1 runtime solved the problem. link to install Windows 64 bit version of .NET Core 3.1.1 runtime