【问题标题】:Web.config Transform on another configuration fileWeb.config 转换另一个配置文件
【发布时间】:2012-01-15 06:33:28
【问题描述】:

您能否以相同的方式对另一个文件(如 connections.config、nlog.config、app.config)进行 web.config 转换?我似乎找不到答案。

 <connectionStrings xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
        <add name="ApplicationServices" connectionString="Data Source=ConnectionString" xdt:Transform="SetAttributes(mode)"/>
    </connectionStrings>

【问题讨论】:

标签: asp.net web-config slowcheetah


【解决方案1】:

我为此创建了一个 Visual Studio 插件。它叫做 SlowCheetah,你可以在 http://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5 找到它。

【讨论】:

  • 我在 VS2012 上安装了最新版本的 SlowCheetah 以与 NLog.config 一起使用,但是当我右键单击 NLog.config 时,我没有得到“添加转换”选项。有没有我不知道的不同方式?
  • 应该是这样。您正在使用什么类型的项目?你重启VS了吗?
猜你喜欢
  • 2011-07-30
  • 2010-09-18
  • 2012-06-16
  • 2015-06-04
  • 1970-01-01
  • 2012-11-08
  • 1970-01-01
  • 2018-06-05
  • 2011-03-06
相关资源
最近更新 更多