ASP.NET Core 5.0.9 with EntityFrameworkCore 5.0.9 strange behavior on scaffolding new Razor page

Matej Kr 1 Reputation point

I have updated EntityFrameworkCore and its dependencies to version 5.0.9 (.Design, .Tools. SqlServer), as well as installed all .Net 5.0.9 packages.
On Scaffolding new Razor Page, dependency EntityFrameworkCore.SqlServer and EntityFrameworkCore.Tools get downgraded to version 5.0.8.
Regarding the downgrade, I always get the error "Could not load file or assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=".

Running the application and navigating to the page using data from Sql always returns error EntityFrameworkCore.dll -> object reference not set to an instance of an object

Any advice?

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
710 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
4,281 questions
{count} votes