I seem to have a problem I can't solve.
I have a .NET Core 2.0 console app. This app requires a niche-nuget package that I only have available locally. Let's call it NicheNuget.
Both the console app and the NicheNuget package depends on a second package that we can call SecondNuget. This SecondNuget is also a package that I only have locally, and only have one version of.
My console app reference these packages:
<PackageReference Include="NicheNuget" Version="126.96.36.199" /> <PackageReference Include="SecondNuget" Version="0.0.0.45" />
Everything compiles, and all is splendid right until my console app tries to use SecondNuget:
system.IO.FileLoadException: Could not load file or assembly 'NicheNuget, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I'm absolutely 200% sure that neither my console app or any project that I have attempts to get a version 184.108.40.206 of NicheNuget. And I can use the NicheNuget package just fine through my console app. SecondNuget however doesn't play nice. The second I call a class that makes use of SecondNuget, I will get the FileLoadException. This leads me to believe that it is SecondNuget that is trying to find NicheNuget with a version that I don't have.
SecondNuget should run just fine with the version I have of NicheNuget. I know they're compatible. What I'm entirely lost on is:
**How can I force the use of NicheNuget version 220.127.116.11 on SecondNuget, instead of the attempted use of 18.104.22.168 which I don't have?
User contributions licensed under CC BY-SA 3.0