asp.net dev/production config file

asp.net dev/production config file

montoyammontoyam Posts: 115Questions: 32Answers: 3
edited February 14 in Free community support

Is there a way to have two config files? When I publish to dev I want to connect to a different SQL server than when I publish the app to production.

or do I just need to go in and edit the connection string each time I publish?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 51,411Questions: 1Answers: 7,752 Site admin
    Answer ✓

    This is something that you'd need to ask on StackOverflow or on a MS specific development forum I'm afraid. I believe it is possible by configuring different build profiles, but that's out of the scope of the support we offer.

    Allan

  • montoyammontoyam Posts: 115Questions: 32Answers: 3

    thanks. I was thinking this was a datatables thing :)

    I found the following that may be of use:
    https://deanhume.com/working-with-multiple-web-config-files/

Sign In or Register to comment.