UWP App can't use DispatchProxy related code from .net Standard Assembly

Voyageur Solitaire 1 Reputation point

Hello all!

I have a packed library assembly (.net standard 2.0) that makes use of the NuGet package
System.Reflection.DispatchProxy (v 4.7.1).

When I try to reference that assembly in a UWP app -Version 2004, Build 19041-
(all done through NuGet), I get the error:

"CS1705 Assembly 'Observation' with identity 'Observation, Version=, Culture=neutral, PublicKeyToken=null' uses 'System.Reflection.DispatchProxy, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Reflection.DispatchProxy' with identity 'System.Reflection.DispatchProxy, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'"

The thing is, I've tried installing the same NuGet Package -System.Reflection.DispatchProxy (v 4.7.1)- in my uwp app,
but the exact same error is thrown about the assembly version.

I'm using VS 2019, if it matters.
I'm uncertain of the correct way to be approaching this kind of problem. Do you have any suggestions?
Thank you in advance :)

Microsoft Technologies based on the .NET software framework.
3,192 questions
Universal Windows Platform (UWP)
{count} votes