Visual Studio 2019 Version 16.11.0 Winforms Issue with Microsoft.EntityFrameworkCore.SqlServer Version 5.0.9

john zyd 421 Reputation points
2021-08-11T13:52:19.877+00:00

Hello:
Today, in the morning, I found Visual Studio 2019 has a new version, so I installed the new version: 16.11.0, and I also found there were quite a number of Windows updates, I also installed all the updates, and did a reboot, then I shutdown my PC to take a rest.
In the afternoon, I have to create one WinForms App (C#) project, and I have to use nuget package of EntityFrameworkCore, I had used the nuget until version 5.0.8, the package worked well.
Today, I found there are new version for this EntityFrameworkCore, the new version is: 5.0.9.
So, I want to use the latest version of such package, but I can’t install it in a WinForms App project, from my testing, this version of package can be installed on C# Console Project, either AnyCPU or x64.
But for WinForms App project, when I installed this version of nuget package, the installation stops at this point:
Successfully installed 'Microsoft.IdentityModel.Tokens 5.6.0' to InstallEFCore509Form,
and Visual Studio 2019 UI has been freezing for a long time, I wait for more than 15 minutes, it can’t finish the installation.
There are still 76 packages to be installed, according to the packages installed from C# console project.
I think there must be some issue with the Winforms project template for version 16.11.0.
Please check and find a fix, as I can’t create new Winforms project any more using Visual Studio version 16.11.0.
My OS is Windows 10 Version 21H1.
Thanks,
See the attached picture for details.

122421-installefcore509nok20210811.png

Developer technologies | C#
{count} vote

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-08-11T14:29:36.513+00:00

    Try using the following project by cloning, run the script, build/run.

    NuGet Package list

    Connection is in appsettings.json

    122353-figure1.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.