Moq w aplikacjach deskopowych

0

Witam,

chciałbym zapytać czy istnieje możliwość użycia Moqa (http://code.google.com/p/moq/) w przypadku aplikacji deskopowych. W przypadku aplikacji MVC nie ma problemu, jednak po dodaniu referencji do niego w aplikacji konsolowej najpierw otrzymuję braku referencji do System.Web a później kolejne błędy:

Warning    1    Could not resolve assembly "System.Web". The assembly is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.    ConsoleApplication27

Warning	2	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". Please remove references to assemblies not in the targeted framework or consider retargeting your project.	ConsoleApplication27

Proszę o pomoc i dziękuję za każdą odpowiedź.

0

Może chodzi o zmianę docelowego Framework'a z Client Profile na pełny:
http://msdn.microsoft.com/en-us/library/bb398202.aspx

1 użytkowników online, w tym zalogowanych: 0, gości: 1