xUnit does not currently work with .Net Standard

If you try to use xUnit with .Net Standard and have included the necessary packages for „xunit“ and „xunit.runner.visualstudio“, you won’t see the tests within the test explorer of Visual Studio. At least with the current version (xUnit 2.2.0 and VS Community 15.2).

If you would like to use xUnit, you need to create your test assembly as a .Net Framework 4.6.2 library and you may create your library itself as a .Net Standard project.

This works perfectly…

Keywords: Visual Studio, XUnit, Test Explorer Empty, .Net Standard.


By the way… This is the first post which is directly connected to Facebook and Twitter.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

This site uses Akismet to reduce spam. Learn how your comment data is processed.