I just created a new project in MVC3 using EF4 code first deployed on Windows Azure. I want to keep my "web.config" file as clean as possible because it s a little complicated to understand all tags it contains.
页: 1
The first is for IIS6 and the second for IIS7+ I do not need backward compatibility so want to delete the first.
我将第一部分变成了第二部分,但我无法找到如何改变这些部分:
<system.web>
<authentication mode="None" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral />
<add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral />
<add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral />
<add assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral />
</assemblies>
</compilation>
<pages validateRequest="false">
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
</namespaces>
</pages>
</system.web>
如何这样做,我可以删除已折旧的<代码><system.web>?。