Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The disappearing, reappearing Moq reference

Tags:

moq

This question describes the problem I'm having, but I'm not aware of any dependencies that Moq might have. Has anyone experienced this, or is anyone aware of Moq dependencies? Thanks!

like image 799
Samo Avatar asked Dec 04 '25 13:12

Samo


1 Answers

This can happen if you're targeting the .Net Client Profile and not the full framework.

In Visual Studio, right click on your project and choose properties. Make sure your target framework is .NET 4 Framework and not .NET 4 Framework Client Profile.

It should look like this:

enter image description here

like image 185
brendan Avatar answered Dec 07 '25 16:12

brendan