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

Matej Kr 1 Reputation point
2021-08-30T08:55:57.377+00:00

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=5.0.9.0".

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?
Regards!

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