VS 2010 Web.config transformations for debugging

后端 未结 3 1811
忘了有多久
忘了有多久 2020-12-05 07:33

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 t

3条回答
  •  被撕碎了的回忆
    2020-12-05 08:28

    In case anyone is curious why they haven't built this feature, from: http://forums.asp.net/p/1532038/3711423.aspx

    "When the web app gets run, the web.config under project root folder will be picked up by asp.net and I know unfortunately it is under source control . I certainly understand the cleanness coming with letting runtime use a transformed web.config from a temp folder; however, asp.net runtime doesn't know anything about vs projec structure and it is totaly based on directory structure. Using alternate path might also break as a web.config under a subfolder expect to inherit settings from the upper level of directory."

提交回复
热议问题