How to Include Anti-XSS in ASP.Net 2.0 Without Visual Studio

£可爱£侵袭症+ 提交于 2019-12-23 14:19:42

问题


Can I include Microsoft's Anti-XSS library in my ASP.Net 2.0 application without Visual Studio? If so, how?

I've already downloaded and installed the library. From Microsoft's download page: "Reference the library in your application and use it." Researching this turns up instructions for doing so with Visual Studio, but not without.

This S.O. answer links to a few promising articles, but those also assume Visual Studio to start.

(As for why I can't use Visual Studio: my manager says "No.")


回答1:


Its very simple, just copy the file \program Files\Microsoft Corporation\Anti-Cross Site Scripting Library V1.5\Library\Net 2.0\AntiXssLibrary.dll, into your /bin/ directory of your asp.net and you ready to use it by just include the reference of antixss in every code that you won to use it.

The library is this file: AntiXssLibrary.dll

If not found on the directory I write for, just search your disk, where you have install it.

Ver 4.2.1

For the version 4.2.1 that you have a link on it the files are on

c:\Program Files\Microsoft Information Security\AntiXSS Library v4.2\NET20\

and you copy both, AntiXssLibrary.dll and AntiXssLibrary.xml to your /Bin/ directory of your asp.net

Download

If you can not find the library installed on your computer from the visual studio or from the SDK, you can always download it from Microsoft. The latest version is here:

https://www.microsoft.com/en-us/download/details.aspx?id=43126



来源:https://stackoverflow.com/questions/9182253/how-to-include-anti-xss-in-asp-net-2-0-without-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!