How to use system.web 4.0 build?

I am fighting.

Warning 1 The referenced assembly "DudePro" 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. GroupInvater_vk

What should I do? I need System.web

EDIT:

I am creating a .dll. IN dll I use System.web - no errors!

when I connect the DLL to the project and compile the .dll, it disappears, and the more it does not see VS.

+3
source share
1 answer

Perhaps your project is targeting a .NET Client Profile that does not include System.Web. You need to modify your project to cover the full profile using the Target Framework field on the Application tab of your project properties.

+8
source

Source: https://habr.com/ru/post/1772648/


All Articles