locked
Separate Web.config file for each solution configuration RRS feed

  • Question

  • User1417140358 posted

    I have 3 different config files Web.config.Local, Web.config.Dev, Web.config.Prod. Whenever I create a release to deply, I rename respective file to Web.config build it and then deply.

    Is there any way where I can have entry in solution configuration for Debug (for Local), Dev, & Prod and the selection itself should decide which config file to select and build the solution?

    Or any other simple automated way?

    Thursday, November 28, 2013 11:42 PM

Answers

  • User71929859 posted

    Perhaps MSBuild could do that. Have never done it myself. Give it a try.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, November 30, 2013 9:32 PM

All replies