问题描述
我是新的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.
推荐答案
更新
由于第三方插件,,这现在是可能的。斯科特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).
我们希望让每个环境1X构建配置,和能够选择构建配置这相匹配的环境来调试反对的 - 这,我的理解是你的问题
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转换进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!