如何包括抗XSS在ASP.Net 2.0没有Visual Studio中 [英] How to Include Anti-XSS in ASP.Net 2.0 Without Visual Studio

查看:325
本文介绍了如何包括抗XSS在ASP.Net 2.0没有Visual Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以包括微软的反XSS库中没有的Visual Studio我的ASP.Net 2.0应用程序?如果是这样,怎么样?

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

我已经下载并安装了库。从微软的下载页面:参考您的应用程序库和用它。这个研究变成了说明与Visual Studio这样做,但也不是没有。

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.

这S.O.回答链接到几个有前途的文章,但这些还假设Visual Studio的启动。

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

(至于为什么我不能使用Visual Studio:我的经理说:否)

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

推荐答案

它非常简单,只需要复制该文件 \\ PROGRAM FILES \\ Microsoft Corporation在\\防跨站点脚本库V1.5 \\库\\ .NET 2.0 \\ AntiXssLibrary.dll ,到 /斌/ 您的asp.net的目录,你准备好使用它只是包含的参考antixss每code,你赢了使用它。

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.

图书馆是这个文件: AntiXssLibrary.dll

如果对我写的目录中没有发现,只是搜索您的磁盘,你必须安装它。

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

有关版本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\

和复制两者 AntiXssLibrary.dll AntiXssLibrary.xml 你的 /您的asp.net的BIN / 目录

这篇关于如何包括抗XSS在ASP.Net 2.0没有Visual Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆