App.config中转化为产品,不能在Visual Studio 2010中的Web项目的项目? [英] App.Config Transformation for projects which are not Web Projects in Visual Studio 2010?

查看:183
本文介绍了App.config中转化为产品,不能在Visual Studio 2010中的Web项目的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关Visual Studio 2010中的基于Web的应用程序,我们必须配置转换功能,通过它,我们可以保持多个配置文件用于不同的环境。但是,同样的功能不适用于文件的app.config为Windows服务/的WinForms或控制台应用程序。

For Visual Studio 2010 Web based application we have Config Transformation features by which we can maintain multiple configuration files for different environments. But the same feature is not available for App.Config files for Windows Services/WinForms or Console Application.

的建议在这里有一种变通方法可用。配置。

There is a workaround available as suggested here: Applying XDT magic to App.Config.

但是它并不简单,并且需要许多步骤。有没有更简单的方法来达到同样的的App.config文件?

However it is not straightforward and requires a number of steps. Is there an easier way to achieve the same for app.config files?

推荐答案

这现在工作与Visual Studio的外接程序处理在这篇文章中:<一href="http://www.hanselman.com/blog/SlowCheetahWebconfigTransformationSyntaxNowGeneralizedForAnyXMLConfigurationFile.aspx">SlowCheetah - Web.config文件转换语法现在广义的任何XML配置文件

This works now with the Visual Studio AddIn treated in this article: SlowCheetah - Web.config Transformation Syntax now generalized for any XML configuration file.

这篇关于App.config中转化为产品,不能在Visual Studio 2010中的Web项目的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆