I\'m porting a Net Framework 4 dll to Net Core. When porting my unit tests project I get an exception running some specific tests (not all).
System.IO
I got the issue, and realized that it was because I had two different references. one reference was from my project library, and the second one was a dependency of a .Net Standard library, and therefore a Nuget package. The steps to solve were the following:
System.Net.Http
(project => add reference => remove the reference).Update-Package –reinstall System.Net.Http
to bring back the reference.Now it works again. :)