You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static void Main(string[] args)
{
Console.Title = "IdentityServer4";
var host = CreateWebHostBuilder(args).Build();
var config = host.Services.GetRequiredService<IConfiguration>();
bool seed = config.GetSection("Data").GetValue<bool>("Seed");
if (seed)
{
var connectionString = config.GetConnectionString("conn");
Users.EnsureSeedData(connectionString);
}
host.Run();
}
Severity Code Description Project File Line Suppression State
Error CS1061 'IConfiguration' does not contain a definition for 'GetSection' and no accessible extension method 'GetSection' accepting a first argument of type 'IConfiguration' could be found (are you missing a using directive or an assembly reference?)
The text was updated successfully, but these errors were encountered:
.Nte 3.0
public static void Main(string[] args)
{
Console.Title = "IdentityServer4";
Severity Code Description Project File Line Suppression State
Error CS1061 'IConfiguration' does not contain a definition for 'GetSection' and no accessible extension method 'GetSection' accepting a first argument of type 'IConfiguration' could be found (are you missing a using directive or an assembly reference?)
The text was updated successfully, but these errors were encountered: