Azure DevOps (VSTS) can't find Moq DLLs when running tests

234 views Asked by At

I keep getting this error:

System.IO.FileNotFoundException: System.IO.FileNotFoundException: Could not load file or assembly 'Moq, Version=4.2.1507.118, Culture=neutral, PublicKeyToken=69f491c39445e920' or one of its dependencies. The system cannot find the file specified.WRN: Assembly binding logging is turned OFF.

It compiles fine in my project, and all of my Moq Nuget packages are set to version 4.2.1507.118. I don't have any binding redirects for Moq.

By the way, is there any way to turn assembly binding logging on for a VSTS hosted agent?

Log files:
Here's my build step log output
Here's my test step log output

0

There are 0 answers