VS2017 MSTEST Discovery Fails due to System.Runtime Binding in App.config

2

Whenever my MSTEST projects have a System.Runtime binding under the runtime element in app.config, test discovery in the Test Explorer fails. The Tests output in the Output Window looks like this:

[9/28/2017 12:37:17 PM Informational] ------ Discover test started ------
[9/28/2017 12:37:18 PM Warning] The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
[9/28/2017 12:37:18 PM Informational] ========== Discover test finished: 3 found (0:00:00.8953713) ==========
[9/28/2017 12:37:18 PM Informational] No tests found to run.

The System.Runtime binding looks like this:

<dependentAssembly>
    <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
</dependentAssembly>

This binding is declared due to NuGet installs/updates.

visual-studio
nuget
mstest
asked on Stack Overflow Sep 28, 2017 by rasx • edited Oct 4, 2017 by rasx

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0