I've runned into a very strange issue that making our CI flow very fragile - we've got our tests running by nCrunch console tool and it throws us this exception:
Code:
System.InvalidProgramException: Common Language Runtime detected an invalid program.
at Tests.App.<ProcessAsync>d__3.MoveNext()
...
The bad thing - it doesn't failing in VS2015
I've manage to narrow it to two things: using NLog and using exception filtering (when (ex is ...))
I've created the sample project:
https://drive.google.com...lk3VEU/view?usp=sharing
To reproduce an error I've used this command line with NCrunch Console Tool v2.26.0.1:
Code:
"C:\Program Files (x86)\Remco Software\NCrunch Console Tool\NCrunch.exe" "d:\temp\Tests\Tests.sln" /o "D:\Temp\NCrunchOutput" /t /vs 2015 -LogVerbosity Detailed