Skip to content

Commit eaf8230

Browse files
committed
Fix appsettings setting
1 parent aa6154c commit eaf8230

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/TelegramBot/Builders/BotBuilder.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ public BotBuilder(params string[] args)
3838
Services = new ServiceCollection();
3939
var configuration = new ConfigurationManager();
4040
configuration.AddCommandLine(args);
41-
if (Debugger.IsAttached)
42-
{
43-
configuration.AddJsonFile("appsettings.json", optional: true);
44-
}
41+
configuration.AddJsonFile("appsettings.json", optional: true);
4542
configuration.AddEnvironmentVariables();
4643
Configuration = configuration;
4744
Services.AddLogging(builder => builder.AddConsole());

0 commit comments

Comments
 (0)