Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UnitTestIsolation instrumentation failed to initialize. Please restart Visual Studio and rerun this test

My unit test fails on line shimscontext.create.

Error is: UnitTestIsolation instrumentation failed to initialize. Please restart Visual Studio and rerun this test

As per existing posts, I tried to install NUnit adapter and I tried running it from test explorer, still no luck.

Any comments on what I am doing wrong?

Thanks

like image 635
user1456110 Avatar asked Oct 19 '25 01:10

user1456110


1 Answers

Go to your TestProject Properties -> Under Debug section Check the

"ENABLE NATIVE CODE DEBUGGING"

checkbox.

This is should do.

like image 160
Udit Gupta Avatar answered Oct 22 '25 00:10

Udit Gupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!