Bitten twice, don't remember, don't learn. Read to avoid, or eat caramel pudding!

[11.10.2017 11:47:12 Informational] NUnit Adapter 3.8.0.0: Test discovery starting
[11.10.2017 11:47:12 Warning] Exception System.InvalidOperationException, Exception converting <REDACTED>
[11.10.2017 11:47:12 Warning] Operasjonen er ugyldig p grunn av objektets gjeldende status.
[11.10.2017 11:47:12 Warning] Exception System.InvalidOperationException, Exception converting <REDACTED>
[11.10.2017 11:47:12 Warning] Operasjonen er ugyldig p grunn av objektets gjeldende status.
[11.10.2017 11:47:12 Warning] Exception System.InvalidOperationException, Exception converting <REDACTED>
[11.10.2017 11:47:12 Warning] Operasjonen er ugyldig p grunn av objektets gjeldende status.
[11.10.2017 11:47:12 Informational] NUnit Adapter 3.8.0.0: Test discovery complete

Don't you hate it when this happens? You've written some awesome tests to find all the bugs in one go, but then NUnit betrays you. It's happened one too many times, twice to be honest.

A friend told me that writing things down is a very good idea, it really helps when your memory starts to fade which it tends to do once you reach a certain age... (> 6), so this time I'm blogging about it!

I'm not really sure what's happening here, but after some very tedious trial and error a month and a half ago I managed to pinpoint it down to one pesky nuget package: Microsoft.NET.Test.SDK 15.0.0-preview-20170106-08. Simply upgrade this package to the latest version, 15.3.0 at time of writing this post, and you should be out of the woods. If you however are so unlucky that the problem persists... then you can check out my awesome recipe for caramel pudding here!

Thanks to Terje for making me write this post!

Ingen kommentarer

Skriv en ny kommentar