asp.net dev/production config file

asp.net dev/production config file

montoyammontoyam Posts: 568Questions: 136Answers: 5
edited February 2020 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: 61,452Questions: 1Answers: 10,055 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: 568Questions: 136Answers: 5

    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/

This discussion has been closed.