Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2017 RC generating an 0x8000ffff error when trying to debug xUnit tests

I'm trying to debug my .NET Core xUnit tests in VS 2017 RC. I run my tests via the Test Explorer window. While right-clicking a test and selecting Run Selected Tests works fine, selecting Debug Selected Tests does not:

I'm at a loss at how to get past this. I have tried restarting VS, doing a clean build, removing the .vs/ folder, and even updating to a newer build of VS 2017. However, nothing so far has worked. Does anyone have suggestions for how I can work around this? Thanks!

edit: My project has a Git repo here, so if you want to you're free to clone it and see if you can repro for yourself. The test assembly is in src/BasicCompiler.Tests/.

like image 799
James Ko Avatar asked Dec 25 '16 20:12

James Ko


2 Answers

In my case with Visual Studio 2017 release version the unit test project failed with this error because for some reason the unit test project had a launchsettings.json file under the project "properties" folder. Deleting it resolved the debugging issue.

like image 154
Joe G Avatar answered Oct 08 '22 17:10

Joe G


Try running Visual Studio as an administrator, it might resolve the issue.

In case you don't know how: Right click on the application icon, right click on the applications name and select Run as Administrator.

like image 1
Alec Ruderman Avatar answered Oct 08 '22 18:10

Alec Ruderman