【问题标题】:what is active solution configuration in vs 2012 configuration manager?vs 2012 配置管理器中的活动解决方案配置是什么?
【发布时间】:2013-08-29 15:42:33
【问题描述】:

我使用的是 vs 2012。在 Active solution configuration 下拉列表中,我有 3 个配置(“Dev”、“QA”、“Production”)。

当我在本地运行此应用程序时,选择“QA”作为活动解决方案配置。我仍然有本地连接字符串,而不是 qa 字符串。我的理解是它应该使用 QA web.config 文件。我错了吗?

【问题讨论】:

    标签: visual-studio-2010 asp.net-mvc-3 asp.net-mvc-4 visual-studio-2012


    【解决方案1】:

    我的理解是它应该使用 QA web.config 文件。我错了吗?

    其实你错了。 web.QA.config 只会在您发布应用程序时使用,但不会在始终使用标准 web.config 的 Visual Studio 中运行时使用。

    【讨论】:

    • 感谢您的帮助。在 Active solution configuration 下拉列表中,如果我选择 QA 作为我的活动配置。它有什么作用?
    猜你喜欢
    • 2012-11-21
    • 1970-01-01
    • 2013-03-10
    • 1970-01-01
    • 2014-01-18
    • 1970-01-01
    • 2020-08-10
    • 2017-01-10
    • 2012-09-22
    相关资源
    最近更新 更多