I have 2 separate projects, lets call them Alpha and Bravo.
Project Alpha targets only the net462 framework in its project.json file, while project Bravo targets only netstandard1.5. Those 2 frameworks are compatible according to Microsoft.
Project Alpha references project Bravo's assembly. In particular, Alpha needs to implement an interface defined in Bravo. Let's call this interface IProblematic. This interface deals mostly with headers stuff, and defines methods like this
bool DoStuff(List<KeyValuePair<string, IEnumerable<string>>> requestHeaders, List<string> rolesList)
Project Alpha declares a class that implements that interface.
public bool DoStuff(List<KeyValuePair<string, IEnumerable<string>>> requestHeaders, List<string> rolesList) {... }
So far so good. But during runtime I get plagued by errors such as Unable to load one or more of the requested types
. I believe the source of the errors comes from the Collection types.
Using Visual Studio's "go to definition" feature, I can see that project Alpha (the 462 project) is using System.Collections.Generic defined in ..\Framework\v4.0.30319\mscorlib.dll, while if I do the same in project Bravo's collections, it shows me that it is using System.Collections.Generic, defined in ..\netstandard1.3\System.Collections.dll.
Thus, my question is, how can I get project Alpha to use the correct Collections assembly when implementing the netstandard1.5 interface, as opposed to using mscorlib's collections? Shouldn't this even be a non-issue, given that the 2 frameworks are compatible?
Thank you all in advance!