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

Voyageur Solitaire 1 Reputation point
2021-12-06T01:33:28.933+00:00

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=1.1.8.0, Culture=neutral, PublicKeyToken=null' uses 'System.Reflection.DispatchProxy, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Reflection.DispatchProxy' with identity 'System.Reflection.DispatchProxy, Version=4.0.4.0, 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 :)

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