Skip to content

Commit

Permalink
Fixing issue with appsettings file in unit tests project
Browse files Browse the repository at this point in the history
  • Loading branch information
babelshift committed Apr 3, 2020
1 parent 5f6c092 commit 629a0ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Steam.UnitTests/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class BaseTest
public BaseTest()
{
var builder = new ConfigurationBuilder()
.AddJsonFile("appsettings.json")
.AddUserSecrets<CSGOServersTests>();
configuration = builder.Build();

Expand Down
5 changes: 5 additions & 0 deletions src/Steam.UnitTests/Steam.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@
<ProjectReference Include="..\Steam.Models\Steam.Models.csproj" />
<ProjectReference Include="..\SteamWebAPI2\SteamWebAPI2.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

0 comments on commit 629a0ea

Please sign in to comment.