【问题标题】:Is there a better way to do configSections in VS 2010 Beta2?有没有更好的方法在 VS 2010 Beta2 中执行 configSections?
【发布时间】:2009-10-20 14:02:31
【问题描述】:

我注意到在与 VS 2010 Beta 2 一起分发的最新版 MVC 的默认 web.config 文件中,许多部分现在都丢失了。

通过一点研究,我发现 ScottGu's article 解释了为什么会这样。

我的问题是在这个版本的 .net 中是否有一种新的方式来加载命名空间,我们是否应该不再使用 web.config 中的“configSections”?请注意,在 web.confg 中放置一个 configSection 仍然有效。

来自 Unity web.config 的示例 例如:

<configSections>
    <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration"/>
</configSections>

【问题讨论】:

    标签: .net asp.net visual-studio-2010


    【解决方案1】:

    web.config 仍然是正确的位置,应该可以像以前一样工作 - 现在删除了所有“混乱”,它变得更容易了。

    【讨论】:

      猜你喜欢
      • 2013-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-05
      • 2010-09-14
      • 2011-09-22
      相关资源
      最近更新 更多