Unit tests not working in Rider 2021.3.3

Answered

Rider 2021.3.3 Build #RD-213.6775.4, built on January 26, 2022

When I try to run unit tests, I get an error:

Test not run

Last runner error: Test runner agent exited unexpectedly Process C:\Program Files\JetBrains\JetBrains Rider 2021.3.3\lib\ReSharperHost\TestRunner\netcoreapp3.0\ReSharperTestRunner.exe:16136 exited with code '0': Failed to load the dll from [C:\Program Files (x86)\dotnet\host\fxr\5.0.14\hostfxr.dll], HRESULT: 0x800700C1 The library hostfxr.dll was found, but loading it from C:\Program Files (x86)\dotnet\host\fxr\5.0.14\hostfxr.dll failed - Installing .NET Core prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=798306

--- EXCEPTION #1/3 [UnknownExitCodeException]
Message = “
  Process C:\Program Files\JetBrains\JetBrains Rider 2021.3.3\lib\ReSharperHost\TestRunner\netcoreapp3.0\ReSharperTestRunner.exe:16136 exited with code '0':
  Failed to load the dll from [C:\Program Files (x86)\dotnet\host\fxr\5.0.14\hostfxr.dll], HRESULT: 0x800700C1
  The library hostfxr.dll was found, but loading it from C:\Program Files (x86)\dotnet\host\fxr\5.0.14\hostfxr.dll failed
    - Installing .NET Core prerequisites might help resolve this problem.
       https://go.microsoft.com/fwlink/?linkid=798306

ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.UnknownExitCodeException
HResult = COR_E_EXCEPTION=80131500

--- Outer ---

--- EXCEPTION #2/3 [ProcessExitedUnexpectedlyException]
Message = “Test runner agent exited unexpectedly”
ExceptionPath = Root.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.ProcessExitedUnexpectedlyException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.ReSharper.UnitTestFramework
StackTraceString = “
  в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TestRunnerAgent.AnalyseExitCode(IPreparedProcess process)
     в JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__14`2.MoveNext()
  --- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
     в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__3.MoveNext()
  --- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
     в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     в JetBrains.dotCover.Ide.Core.UnitTesting.Model.PreloadedTestRunners.PreloadedTestRunnerAgentPool.<Allocate>d__13.MoveNext()
  --- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
     в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext()
  --- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
     в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__19.MoveNext()
  --- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
     в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__16.MoveNext()
  --- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
     в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
  --- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
     в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     в JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F)
     в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
  --- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
     в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext()

--- Outer ---

--- EXCEPTION #3/3 [LoggerException]
Message = “Test runner agent exited unexpectedly”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  в JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
     в JetBrains.Util.ILoggerEx.Error(ILogger this, Exception exception, ExceptionOrigin origin, String comment)
     в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext()
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__16.MoveNext()
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__19.MoveNext()
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext()
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     в JetBrains.dotCover.Ide.Core.UnitTesting.Model.PreloadedTestRunners.PreloadedTestRunnerAgentPool.<Allocate>d__13.MoveNext()
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__3.MoveNext()
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     в JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__14`2.MoveNext()
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task`1.TrySetResult(TResult result)
     в System.Threading.Tasks.TaskFactory.CompleteOnInvokePromise.Invoke(Task completingTask)
     в System.Threading.Tasks.Task.FinishContinuations()
     в System.Threading.Tasks.Task`1.TrySetResult(TResult result)
     в System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result)
     в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     в System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)

3 comments
Comment actions Permalink

I have the same issue, in case that helps anything (except it's for .net core 6):

Last runner error: Test runner agent exited unexpectedly Process C:\Program Files\JetBrains\JetBrains Rider 221.5080.110\lib\ReSharperHost\TestRunner\netcoreapp3.0\ReSharperTestRunner.exe:12492 exited with code '-2147450750': Failed to load the dll from [C:\Program Files (x86)\dotnet\host\fxr\6.0.3\hostfxr.dll], HRESULT: 0x800700C1 The library hostfxr.dll was found, but loading it from C:\Program Files (x86)\dotnet\host\fxr\6.0.3\hostfxr.dll failed - Installing .NET Core prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=798306

--- EXCEPTION #1/3 [UnknownExitCodeException]
Message = “
  Process C:\Program Files\JetBrains\JetBrains Rider 221.5080.110\lib\ReSharperHost\TestRunner\netcoreapp3.0\ReSharperTestRunner.exe:12492 exited with code '-2147450750':
  Failed to load the dll from [C:\Program Files (x86)\dotnet\host\fxr\6.0.3\hostfxr.dll], HRESULT: 0x800700C1
  The library hostfxr.dll was found, but loading it from C:\Program Files (x86)\dotnet\host\fxr\6.0.3\hostfxr.dll failed
    - Installing .NET Core prerequisites might help resolve this problem.
       https://go.microsoft.com/fwlink/?linkid=798306

ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.UnknownExitCodeException
HResult = COR_E_EXCEPTION=80131500

--- Outer ---

--- EXCEPTION #2/3 [ProcessExitedUnexpectedlyException]
Message = “Test runner agent exited unexpectedly”
ExceptionPath = Root.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.ProcessExitedUnexpectedlyException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.ReSharper.UnitTestFramework
StackTraceString = “
  at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TestRunnerAgent.AnalyseExitCode(IPreparedProcess process)
     at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__14`2.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__3.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__19.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__16.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F)
     at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext()

--- Outer ---

--- EXCEPTION #3/3 [LoggerException]
Message = “Test runner agent exited unexpectedly”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
     at JetBrains.Util.ILoggerEx.Error(ILogger this, Exception exception, ExceptionOrigin origin, String comment)
     at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext()
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     at System.Threading.Tasks.Task.FinishContinuations()
     at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     at System.Threading.Tasks.Task.FinishContinuations()
     at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__16.MoveNext()
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     at System.Threading.Tasks.Task.FinishContinuations()
     at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__19.MoveNext()
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     at System.Threading.Tasks.Task.FinishContinuations()
     at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext()
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     at System.Threading.Tasks.Task.FinishContinuations()
     at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__3.MoveNext()
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     at System.Threading.Tasks.Task.FinishContinuations()
     at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
     at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
     at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
     at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__14`2.MoveNext()
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
     at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
     at System.Threading.Tasks.Task.FinishContinuations()
     at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
     at System.Threading.Tasks.TaskFactory.CompleteOnInvokePromise.Invoke(Task completingTask)
     at System.Threading.Tasks.Task.FinishContinuations()
     at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
     at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result)
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)

0
Comment actions Permalink

Hello!

Thank you for the input. The encountered behaviour is indeed caused by RIDER-72248

The workaround is to specify either one of the following environment variables

DOTNET_ROOT(x86)=C:\Program Files (x86)\dotnet\ 
DOTNET_ROOT(x86)=C:\Program Files (x86)\dotnet\dotnet.exe
1

Please sign in to leave a comment.