question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Release version of .NET Core 2.1 is incompatible - "Specified framework not found [...] version '2.1.0-preview1-26216-03"

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
LeonidEfremovcommented, Jun 2, 2018

I have similar issue on my projects and I fix it with global.json

{
  "sdk": {
   "version": "2.1.300"
  }
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found