I need some help on how to handle web.config file using a single deployment project for multiple environment.
I am currently working on automating the build and deploy of an ASP.NET Web Application developed using VB.Net in Visual Studio. The solution have a deployment project (.vdproj) which creates MSI. Currently there are deployment projects setup for each environment (e.g.: Setup.DEV, Setup.UAT, Setup.PROD). Each setup have its own web.config file embedded to the MSI after build.
Our automation pipeline uses jenkins for build and urbancode deploy for deployment. I can now build the solution and projects, create the msi thru jenkins. I need to configure urbancode to use the msi and deploy to the desired environment.
However, I think having multiple deployment projects to create MSI for each environment is not ideal.
I want to use a single deployment project and use it for the deployment but I am not sure how should I handle the web.config files which are specific to the environment being deployed to.