From 2319fa23e9203bdc08e16f24cbdaef3c71d9a3d6 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Wed, 8 Nov 2023 23:13:23 +0100 Subject: [PATCH] Add support for using user secrets --- Orabot.Core/DependencyInjection/ServiceCollectionExtensions.cs | 1 + Orabot.Core/Orabot.Core.csproj | 1 + Orabot.Hosts.ConsoleHost/Orabot.Hosts.ConsoleHost.csproj | 2 ++ 3 files changed, 4 insertions(+) diff --git a/Orabot.Core/DependencyInjection/ServiceCollectionExtensions.cs b/Orabot.Core/DependencyInjection/ServiceCollectionExtensions.cs index 552e780..e6ad21a 100644 --- a/Orabot.Core/DependencyInjection/ServiceCollectionExtensions.cs +++ b/Orabot.Core/DependencyInjection/ServiceCollectionExtensions.cs @@ -39,6 +39,7 @@ public static IServiceCollection AddAppSettingsConfiguration(this IServiceCollec .AddSingleton(provider => new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") + .AddUserSecrets("245384e8-58dc-45d7-b441-5c63468071e4") .Build()); } diff --git a/Orabot.Core/Orabot.Core.csproj b/Orabot.Core/Orabot.Core.csproj index 8e21c68..1bbecf0 100644 --- a/Orabot.Core/Orabot.Core.csproj +++ b/Orabot.Core/Orabot.Core.csproj @@ -8,6 +8,7 @@ + diff --git a/Orabot.Hosts.ConsoleHost/Orabot.Hosts.ConsoleHost.csproj b/Orabot.Hosts.ConsoleHost/Orabot.Hosts.ConsoleHost.csproj index ec680e6..0709d72 100644 --- a/Orabot.Hosts.ConsoleHost/Orabot.Hosts.ConsoleHost.csproj +++ b/Orabot.Hosts.ConsoleHost/Orabot.Hosts.ConsoleHost.csproj @@ -3,9 +3,11 @@ Exe net6.0 + 245384e8-58dc-45d7-b441-5c63468071e4 +