Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
UseSqlServer() method is missing from Microsoft.EntityFrameworkCore.SqlServer 1.1.1 #7891
While following the Identity4 tutorial, it seems the
Steps to reproduce
services.AddIdentityServer() .AddTemporarySigningCredential() .AddTestUsers(Config.GetUsers()) .AddConfigurationStore(builder => builder.UseSqlServer(connectionString, options => options.MigrationsAssembly(migrationsAssembly))) .AddOperationalStore(builder => builder.UseSqlServer(connectionString, options => options.MigrationsAssembly(migrationsAssembly)));
Further technical details
EF Core version: 1.1.1
remove the follow refs from the csproj file,
Add the following refs,
Okay so adding this manually isn't working for me. It says that the using directive is unnecessary.
Edit: Installing the NuGet package "Microsoft.EntityFrameworkCore.SqlServer" fixed this for me, my bad.
referenced this issue
Jun 11, 2017
Here I am, vs code, did "dotnet new web", have the following packages added via dotnet add package:
Have in Startup.cs
But this line Fails:
That is easily the weirdest issue I've seen in a while. So, game over, or what?
It looks like
I had it when i started with a mvc auth project.
To fix it i removed all SQL LITE library references, and after that i installed SQL SERVER reference:
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 2.0.0
It works for me, i wish that it can be helpful!