Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeFontana authored Dec 24, 2022
1 parent ed62ca3 commit b970990
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,7 @@ internal class Program
{
try
{
string env = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
bool isDevelopment = string.IsNullOrEmpty(env) || env.ToLower() == "development";
await Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(config =>
{
config.SetBasePath(Directory.GetCurrentDirectory());
config.AddJsonFile("appSettings.json", true, true);
config.AddJsonFile($"appSettings.{env}.json", true, true);
config.AddUserSecrets<Program>(optional: true);
config.AddEnvironmentVariables();
})
.ConfigureLogging((context, builder) =>
{
builder.ClearProviders();
Expand Down Expand Up @@ -125,18 +114,7 @@ internal class Program
{
try
{
string env = Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT");
bool isDevelopment = string.IsNullOrEmpty(env) || env.ToLower() == "development";
await Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(config =>
{
config.SetBasePath(Directory.GetCurrentDirectory());
config.AddJsonFile("appsettings.json", true, true);
config.AddJsonFile($"appsettings.{env}.json", true, true);
config.AddUserSecrets<Program>(optional: true);
config.AddEnvironmentVariables();
})
.ConfigureLogging((context, builder) =>
{
builder.ClearProviders();
Expand Down

0 comments on commit b970990

Please sign in to comment.