Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Add System.Web Reference To A Windows Form Application

I want to use HttpUtility.UrlEncode in a windows form application,
but i can not find System.Web in .NET (Add Reference) area!
How can i add this assembly to my project?
i am using .net 4...

thanks in advance

like image 730
SilverLight Avatar asked Dec 12 '22 20:12

SilverLight


1 Answers

Right click on a project -> Properties -> Change Target Framework from .Net Framework 4 Client Profile to .Net Framework 4

When you remove a Client Profile restriction, you will see System.Web in .Net (Add Reference) area.

like image 63
Warlock Avatar answered Jan 29 '23 14:01

Warlock