在web.config中的组件节点的目的是什么? [英] What is the purpose of the Assemblies node in Web.Config?

查看:186
本文介绍了在web.config中的组件节点的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建在Visual Studio 2005中新的ASP.NET AJAX的Web应用程序,默认的web.config包含以下部分(内侧的编辑的节点):

When creating a new ASP.NET AJAX Web Application in Visual Studio 2005, the default web.config contains the following section (inside the compilation node):

<assemblies>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>

不管是不是的组装的节点似乎存在并没有影响到AJAX功能。更新板等很好地工作而不管参考System.Web.Extensions程序是否被包括在Web.Config中

Whether or not the assemblies node exists doesn't seem to affect the AJAX functionality. Update panels, etc work fine regardless of whether or not the reference to System.Web.Extensions is included in Web.Config.

这是什么节的目的,并可以将其安全地删除?

What's the purpose of this section, and can it be safely removed?

推荐答案

这可能会或可能不会被安全地删除。该组件节点是基于配置的参​​考加法。它使用了code文件部署未编译的.cs到他们的网站,而不是(因为明智的人做)ASP.NET网站编译的程序集。

It may or may not be safely removed. The Assemblies node is for configuration-based reference addition. It's used by ASP.NET websites that deploy uncompiled .cs code files to their website, rather than (as sensible people do) compiled assemblies.

如果您正在部署code隐藏文件到您的网站,而不是组件,然后把它。如果你正在部署组件,将其删除。

If you are deploying code-behind files to your website rather than assemblies, then keep it in. If you are deploying assemblies, remove it.

这篇关于在web.config中的组件节点的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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