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 8, 2023
1 parent ee0bf9e commit a2ce311
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Orabot.Core.Abstractions/Orabot.Core.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<ItemGroup>
<PackageReference Include="Discord.Net.WebSocket" Version="3.11.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
</ItemGroup>

</Project>
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
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 a2ce311

Please sign in to comment.