ASP.NET 浏览器 Caps 更新

发布于 2025-01-06 10:33:47 字数 615 浏览 5 评论 0原文

我正在尝试使用“.browser”文件更新浏览器上限(.NET Framework 2.0 中不推荐使用 web.config 的 browserCaps 部分)。到目前为止,我在 CodePlex 上找到了这个提供更新文件的项目:

http://aspnet.codeplex.com /releases/view/41420

从 Visual Studio 2008 命令提示中,我运行命令“aspnet_regbrowsers -i”,它创建了一个程序集(ASP.BrowserCapsFactory.dll) 并将其安装在 GAC 中。

到目前为止一切顺利,更新的定义在我的 asp.net 应用程序中生效。

问题是,是否可以在 GAC 外部使用该程序集,例如将其添加为 Web 应用程序中的引用(我尝试过,除非我做错了什么,否则它不起作用) ?

我知道“App_Browser”文件夹解决方案,但我正在寻找一种解决方案,以确保多个 Web 应用程序具有相同的浏览器定义,而无需将程序集放入 GAC 中。

预先感谢您的回答!

I'm trying to update the browser caps using the ".browser" files (browserCaps section of the web.config is deprecated in .NET framework 2.0). So far, I found this project on CodePlex that provides updated files:

http://aspnet.codeplex.com/releases/view/41420

From the Visual Studio 2008 command promt, I ran the command "aspnet_regbrowsers -i" wich creates an assembly (ASP.BrowserCapsFactory.dll) and installs it in the GAC.

So far so good, the updated definitions take effect in my asp.net application.

The question is, is it possible tu use that assembly outside the GAC, like add it as reference in a Web application (I tried it and unless I'm doing something wrong, it doesn't work)?

I'm aware of the "App_Browser" folder solution, but I'm looking for a solution that will ensure the same browsers definitions for several web application without having to put an assembly in the GAC.

Thanks in advance for your answers!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一紙繁鸢 2025-01-13 10:33:47

ASP.NET 4 白皮书

根据 ASP.NET 4 白皮书,您可以管理浏览器通过扩展 ASP.NET 浏览器功能或完全替换它,您的代码中的功能。到目前为止,这是您可以做的最好的事情,而不是使用 aspnet_regbrowsers

ASP.NET 4 White paper

According to ASP.NET 4 whitepaper, you can manage browser capabilities within your code by extending the ASP.NET Browser capabilities or totally replace it. So far, it's the best you could do instead of using the aspnet_regbrowsers

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文