Reputation: 452
I build a simple dll with .Net Core and I want to use it in a Windows Universal Application. But when I do it have :
Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference
I switch between different version of .Net Core for my dll but the problem is still the same.
Maybe my question is stupid or it's a simple thing but I don't find the solution.
Thanks
Upvotes: 0
Views: 1073
Reputation: 28836
Don't create a Library with .Net Core, target it as .net standard 2.0 instead.
Now create an UWP app that has MinVersion set as Build 16299 and add the reference to the .net standard 2.0 dll.
Upvotes: 1