[英]why I got this in my web.config
I got these dlls in gac then why I got them in web.config as well, 我在gac中得到了这些dll然后为什么我在web.config中得到它们,
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=removedForPrivacyMyself"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=removedForPrivacyMyself"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=removedForPrivacyMyself"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=removedForPrivacyMyself"/>
</assemblies>
</compilation>
My application seem to work fine when i remove this section 删除此部分时,我的应用程序似乎工作正常
These are just stored in the config file by default. 这些只是默认存储在配置文件中。 It also means that you do not need to provide a
这也意味着您不需要提供
using System.Web.Extensions;
etc. in every source file. 在每个源文件中。
During compilation, the compiler will use the <assemblies>
section to figure out which assemblies to add into the compilation process. 在编译期间,编译器将使用
<assemblies>
部分来确定要添加到编译过程中的程序集。 If you do put usings everywhere then indeed this section adds nothing. 如果你确实在任何地方使用,那么这部分确实没有增加任何东西
Your web application project properly using those assemblies in the reference definition. 您的Web应用程序项目正确使用参考定义中的那些程序集。 You can remove them, but remember if you going to use one of those assemblies your web application won't work.
您可以删除它们,但请记住,如果您要使用其中一个程序集,您的Web应用程序将无法运行。
Usually the visual studio add them automatically your web.config 通常,visual studio会自动添加web.config
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.