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.

The specified framework version '2.0' could not be parsed...

See original GitHub issue

The global.json with 2.1.4 does not help when using dotnet ef commands in a classlib. You still have to manually add the RuntimeFrameworkVersion to the CSPROJ file on all projects in the solution. If you only add to one NUGET wants to consolidate because some projects are using 2.0.0 and only the ones specified with RuntimeFrameworkVersion use 2.0.5. I only have SDK 2.1.4 installed why does it just not use Runtime 2.0.5 by default?

Why do I have to specify this in ever CSPROJ, what good is the global.json then?

<RuntimeFrameworkVersion>2.0.5</RuntimeFrameworkVersion>

2018-03-07 09_42_50-sso - microsoft visual studio

2018-03-07 09_42_56-sso - microsoft visual studio

2018-03-07 09_42_24-core - programs and features

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
bricelamcommented, Mar 7, 2018

The fix will be in EF Core 2.0.2. We’re hoping it finally ships this month. 🤞 You can use the patch preview feed to try it out now.

2reactions
livarcocccommented, Mar 7, 2018

Yep. Ok, given that you have a workaround and that the bug is being fixed in EF, I am going to close this issue.

@cgountanis Glad to see you are unblocked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The specified framework version '2.0' could not be parsed - ...
I finally found the answer after going through some issues on GitHub. It looks like it is an issue with dotnet CLI itself,...
Read more >
The specified framework version '2.1' could not be parsed ...
Just now seeing this error when trying to run update-database from PM console. I have the latest SDK installed. I've tried repairing VS2017 ......
Read more >
The specified framework version '2.0' could not be parsed
After upgrading to Visual Studio 15.4.4 I started receiving the following error from the dotnet cli: The specified framework version '2.0' ...
Read more >
[NETCore][Issue]The specified framework version '2.0' ...
When using dotnet ef migration, the following occurred: The specified framework version '2.0' could not be parsed. The specified framework 'Microsoft.
Read more >
C# – Cannot use 'dotnet ef…' – The specified framework version ' ...
The specified framework version '2.0' could not be parsed The specified framework 'Microsoft.NETCore.App', version '2.0' was not found.
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