Integration Test .net core
I have integrated test that call my .net core webapi
The tests failed because when resolve
Assembly.GetExecutingAssembly().Location
Return me Jetbrains test folder "C:\Program Files\JetBrains\JetBrains Rider 2020.3.2\lib\ReSharperHost\TestRunner\netcoreapp2.0\"
With Visual studio I haven't problem..
I didn't found fix for this from many days..
Please sign in to leave a comment.
Hello,
Perhaps this problem is cased by JIT optimization inlining your method. Please try to add [MethodImpl(MethodImplOptions.NoInlining)] attribute to the method where you make this call .