I have 2 C# projects 'B' and 'C', both are console apps, and one class library 'A' also.
'C' points to latest 'A' i.e. 1.2.2 and when a code from 'B' (which points to older 'A' i.e. 0.0.1) is executed via 'C', an exception is thrown, as since there was some file present in the older 'A' which is not in the latest 'A'.
Here is the exception:
Could not load type 'A.xyz' from assembly 'A.Utils, Version=1.2.2, Culture=neutral, PublicKeyToken=null'
How to make 'B' project use its own version of dependency instead of what version its user 'C' has?
Or, in other words: how to call a method of 'B' from 'C' using 0.0.1 'A' instead of 1.2.2 'A'?
I have tried out experimenting with "PrivateAssets" in the
.csprojbut that didn't help.I cannot use the "Aliases" as 'A' is a source generator lib, so the error comes from a generated file, whose namespace I cannot edit.
I have already tried running it in a new thread, but got the same error.
