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.
User contributions licensed under CC BY-SA 3.0