How to have different web.config settings for my local machine?

前端 未结 3 1127
星月不相逢
星月不相逢 2020-12-06 18:14

I\'m finding myself having to manually update my DefaultConnection connection string in my web.config when I run locally. How can I automatically detect when I\'m running l

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 18:58

    Try creating web.config transformations as described in this article

    http://blogs.msdn.com/b/webdev/archive/2009/05/04/web-deployment-web-config-transformation.aspx

    I haven’t tried this myself though but it looks promising.

提交回复
热议问题