Release version of .NET Core 2.1 is incompatible - "Specified framework not found [...] version '2.1.0-preview1-26216-03"
See original GitHub issueI upgraded my project to the freshly released .NET Core 2.1. But it seems that nswag is looking for a preview version (which I don’t have installed) and fails because it doesn’t recognize the release version as compatible.
Probably rebuilding with the release version would solve this issue.
> nswag run /runtime:NetCore21
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.1.0-preview1-26216-03' was not found.
- Check application dependencies and target a framework version installed at:
C:\Program Files\dotnet\
- Installing .NET Core prerequisites might help resolve this problem:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
- The .NET Core framework and SDK can be installed from:
https://aka.ms/dotnet-download
- The following versions are installed:
2.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.0.5 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.0.6 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.0.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
The specified framework 'Microsoft.NETCore.App', version ...
I am developing an Angular 6 application in dotNet Core 2.1. Everything is working flawlessly, until I got to setting up EFCore. All...
Read more >Release version of .NET Core 2.1 is incompatible ...
But it seems that nswag is looking for a preview version (which I don't ... NET Core 2.1 is incompatible - "Specified framework...
Read more >Started to get "This project is targeting a version of .NET ...
I'm getting this same issue with ASP.Net Core 3.1. The solution has been fine for two years and now it want's to install...
Read more >NETSDK1045: The current .NET SDK does not support ...
NET Core 2.1.100 SDK and later versions. This error occurs when the build tools can't find the version of the .NET SDK that's...
Read more >Running .NET Core Apps on a Framework other than ...
It fails to run due to the missing .NET Core 2.1 runtime. Notice that the error message is pretty helpful and shows what...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Should be fixed in v11.17.13, please report any problems…
I have similar issue on my projects and I fix it with
global.json