用于调试的 VS 2010 Web.config 转换 [英] VS 2010 Web.config transformations for debugging

查看:26
本文介绍了用于调试的 VS 2010 Web.config 转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢新的 VS 2010 Web.config 转换.我将此功能用于部署目的,并想知道是否也可以将它们用于调试.

I’m a fan of the new VS 2010 Web.config transformations. I use this feature for deployment purposes and wondered if it is possible to use them for debugging too.

我想在 IDE 中使用它们:我想创建不同的构建配置(带有链接的转换配置);选择其中之一;在 IDE 中启动网站并通过这种方式调试不同的配置.

I think of using them in the IDE: I want to create different built configuration (with linked transformation configurations); choose one of them; start the web site in the IDE and debug the different configurations this way.

推荐答案

更新

感谢 3rd 方插件 SlowCheetah,现在是可能的.Scot Hanselman 有一篇关于它的博文.

Thanks to a 3rd party plugin, SlowCheetah, this is now possible. Scot Hanselman has a blog post about it.

原回复:

不幸的是,web.config 转换似乎只影响发布站点和构建部署包.

Unfortunately, the web.config transformations appear to effect only publishing sites and building deployment packages.

在我们的场景中,我们有两个开发组,一个可以访问多个环境(内部),另一个可以访问单个环境(离岸).我们有时需要内部团队直接针对 QA 进行调试,而海外团队仍然处于锁定状态(因此他们的 web.config 必须指向开发环境).

In our scenario we have two development groups, one with access to multiple environments (in-house) and the other with access to a single environment (offshore). We have periods where the in-house group needs to debug directly against QA, while offshore remains locked-out (so their web.config's must point to the dev environment).

我们希望每个环境有 1 个构建配置,并且能够选择与环境匹配的构建配置进行调试--据我所知,这是您的问题.

We were hoping to have 1x build-configuration per-environment, and be able to choose the build-configuration which matched the environment to debug against--which, as I understand it is your question.

这篇关于用于调试的 VS 2010 Web.config 转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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