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

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

问题描述

我是新的VS 2010 Web.config转换的粉丝。我使用此功能部署的目的,并想知道是否可以使用它们进行调试。



我想在IDE中使用它们:我想创建不同的构建配置(具有链接的变换配置);选择其中一个;请在IDE中启动网站,并以此方式调试不同的配置。

解决方案

更新 p>

由于第三方插件, SlowCheetah ,这是现在可能。 Scot Hanselman对此有博文






原始回应:



不幸的是,web.config转换似乎只会影响发布网站和建筑部署包。



在我们的场景中,我们有两个开发组,一个可访问多个环境(内部),另一个可访问单个环境。我们有内部组需要直接调试QA的期间,而离岸保持锁定(因此他们的web.config必须指向开发环境)。



我们希望有每个环境的1x构建配置,并且能够选择与要调试的环境匹配的构建配置 - 这是我的理解,这是你的问题。 / p>

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.

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.

解决方案

Update

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


Original response:

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

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).

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天全站免登陆