Why Moq has dependency on System.Web

58 views
Skip to first unread message

Michael Sync

unread,
Nov 3, 2009, 7:12:32 AM11/3/09
to Moq Discussions
Hello,
 
I'm getting this error when I'm running WPF 4.0 project by referencing moq 4.0.812.4 in VS 2010.
 
Any idea?
 
Regards,
Michael Sync
 
 
Silverlight MVP/Microsoft WPF/Silverlight insider


--
Don't go the way life takes you.
Take life the way you go

http://michaelsync.net

Michael Sync

unread,
Nov 3, 2009, 7:14:45 AM11/3/09
to Moq Discussions
Sorry. forget to put the error message.
 
Warning 1 The referenced assembly "Moq" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". WpfApplication1


Daniel Cazzulino

unread,
Nov 6, 2009, 10:02:33 AM11/6/09
to moq...@googlegroups.com
we don't have such a dependency, AFAIK :S

/kzu

--
Daniel Cazzulino | Developer Lead | XML MVP | Clarius Consulting | +1 425.329.3471

Michael Sync

unread,
Nov 6, 2009, 10:29:35 AM11/6/09
to moq...@googlegroups.com
Have you tried to recompile Moq source in .NET 4.0? I'm getting error that i mentioned in previous mail. Thanks.

Daniel Cazzulino

unread,
Nov 6, 2009, 10:38:03 AM11/6/09
to moq...@googlegroups.com
.NET 4.0 is yet now supported. There are other things that will break too (our expression visitor).


/kzu

--
Daniel Cazzulino | Developer Lead | XML MVP | Clarius Consulting | +1 425.329.3471


Mariano Omar Rodriguez

unread,
Nov 6, 2009, 10:54:06 AM11/6/09
to moq...@googlegroups.com
Get the latest bits from SVN, it works, you have to remove the conditional compilation symbol NET35.

Brad Wilson

unread,
Nov 6, 2009, 11:38:45 AM11/6/09
to moq...@googlegroups.com
Since Moq uses xUnit.net, and xUnit.net has a dependency on System.Web, it's possible that the unit tests have a dependency on System.Web, but Moq itself should not.

Of course, if you're using xUnit.net as your unit testing framework, then the Client profile will not be sufficient.

- Brad (xUnit.net developer)
Reply all
Reply to author
Forward
0 new messages