Visual Studio 2017 desktop for xunit

When I run tests xunitfrom VS 2017, the working directory is different from what was in VS 2015, and even more ugly - it differs only in that it simply runs the test and debugs it.

In runtime, it looks like UnitTestProject\bin\debug\netcoreapp1.1

In debug - C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\

When I run dotnet testfrom my project folder, it justUnitTestProject

I prefer the latter, and in fact, as it was in VS 2015, it was always a project directory in all three cases.

So the question is how to make VS 2017 (and dotnet testif there is no new path) to use the same working directory.

+4
source share

Source: https://habr.com/ru/post/1671924/


All Articles