HttpUtility.UrlEncode in console application

后端 未结 7 1797
长情又很酷
长情又很酷 2021-02-03 21:45

I\'d like to use HttpUtility.UrlEncode in a console application, VB.NET, VS 2010 Beta 2.

System.Web.HttpUtility.UrlEncode(item)

Error message:

7条回答
  •  野性不改
    2021-02-03 22:05

    For VB projects in Visual Studio 2010, the option to change the target framework from ".NET Framework 4.0 Client Profile" to ".NET Framework 4.0" is under Project > Properties > Compile > 'Advanced Compile Options...'

提交回复
热议问题