I've got this weird issue adding a Project Reference via a relative path in csproj file &/or the DLL directly. It keeps reverting back to the NuGet DLL in my Nuget folder: C:\Users\jeremy.nuget\packages\
Steps to cause problem:
- Delete a Base NuGet Project Ref
- Add a reference to the Base DLL of a Project in a different Solution.
- Check the Path to the referenced DLL's properties and it still points to the NuGet not the DEBUG Project Ref.
I've turned off the NuGet Source and Visual Studio still uses the NuGet.
If I rename the NuGet DLL and then reference by Project specifying the Debug folder DLL it then fails! So what is causing it to look up the NuGet as a priority over the Project?
When I clear the NuGet cache it gives me an error saying not all packages could be deleted, however when all my packages are gone this doesn't fix up the problem, it actually creates more issues.
I should note there's another project in this solution that also references Base.DLL but for the life of me I can't change it to not use a NuGet Reference either, this really feels like a bug.
Problem is it overrides my Project Reference. And yes I've tried copying over the Debug folder DLL over the NuGet one locally but that still doesn't get me the pdb and symbolic debug info to debug into Base.
Any advice, suggestions, feedback much appreciated?
Visual Studio 2022 v17.5.4