Lets say my solution has 2 projects:
The first project (MainProject) has a NuGet dependency called "dependencyX". Obviously, the project "MainProjectTests" has a reference to "MainProject".
So when the test runner runs a test of "MainProjectTests" that calls methods from "MainProject" that uses "dependencyX" I'm getting a
System.IO.FileNotFoundException : Could not load file or assembly
'dependencyX, Version=184.108.40.206, Culture=neutral, PublicKeyToken=null' or one
of its dependencies.
Why am I getting this exception? When I add "dependencyX" to "MainProjectTests" all works fine, but it seems to me not a good practice... How to solve it?
Thanks for the help.