Skip to content

Commit

Permalink
Add support for using user secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdefg30 committed Nov 9, 2023
1 parent ee0bf9e commit 2319fa2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static IServiceCollection AddAppSettingsConfiguration(this IServiceCollec
.AddSingleton<IConfiguration>(provider => new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json")
.AddUserSecrets("245384e8-58dc-45d7-b441-5c63468071e4")
.Build());
}

Expand Down
1 change: 1 addition & 0 deletions Orabot.Core/Orabot.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<PackageReference Include="Discord.Net" Version="3.11.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.48" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
<PackageReference Include="Refit.HttpClientFactory" Version="6.3.2" />
<PackageReference Include="RestSharp" Version="110.2.0" />
Expand Down
2 changes: 2 additions & 0 deletions Orabot.Hosts.ConsoleHost/Orabot.Hosts.ConsoleHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<UserSecretsId>245384e8-58dc-45d7-b441-5c63468071e4</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.1" />
</ItemGroup>

Expand Down

0 comments on commit 2319fa2

Please sign in to comment.