Search code examples
visual-studio-codeomnisharp

visual studio code error when debugging xunit test


Failed to run test because null.

Strange error attempting to run an xunit test in visual studio code.

enter image description here


Solution

  • It seems that this error message comes from github.com/OmniSharp/omnisharp-vscode/blob/master/src/featur‌​es/ Are you trying to run a .net framework xUnit test? Looks like only dotnet core tests are supported!?