I have a .NET tests project that uses HttpClient from System.Net.Http.dll that is loaded from shared folder: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\System.Net.Http.dll (example for netcoreapp3.1 tests project target framework).
I need the tests project to use a modified version of System.Net.Http.dll from the bin folder instead of from the shared folder or instead of from the GAC. Is it possible by configuring the tests project?
Another option could be to modify tests project dll via dnlib library. I loaded a list of references via dnlib but could not change reference for System.Net.Http. Is there a way to force project dll to use System.Net.Http.dll from the bin folder by modifying project dll via dnlib library or by any other similar library?
Thanks for your time and your help.