Martin Andersen
Martin Andersen

Reputation: 2730

Get JetBrains Rider to copy config files to output when running XUnit

I have created an Integration test for my asp.net core 2.1 web api using the TestServer. Test works when I run "dotnet test" but in JetBrains Rider running XUnit 2.3.1 it all fails because the apsetting.json are not copied to output.

I have looked in Riders setting but I can't find a way to make it copy the settings files.

Upvotes: 2

Views: 5940

Answers (1)

Ivan Shakhov
Ivan Shakhov

Reputation: 1425

In the context menu of file in SolutionExplorer open Properties enter image description here

Upvotes: 4

Related Questions