Moq 4.13.1 incompatibility with Task.Extensions

0

I am trying to run a unit test that uses Moq. the problem is I keep getting the follwing with Visual studio 2019.

Message: System.TypeInitializationException : The type initializer for 'Moq.DefaultValueProvider' threw an exception. ----> System.IO.FileLoadException : Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I am using the latest version of Moq 4.13.1 and System.Threading.Tasks.Extensions v.4.5.3 Is there any specific version of System.Threading.Tasks.Extensions or .NET that should be used with Moq?

c#
.net
moq
asked on Stack Overflow Feb 13, 2020 by Nesan Mano • edited Feb 13, 2020 by Nkosi

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0