Deploying a windows service in production - .NET -
I have created a setup project for a Windows project that was written in .NET. This service depends on many elements in App.config
which is different in the environment of environment in Dev environment (eg: path in folder)
Now I have an MSI file Can be run in the production to install. However, how can I change the value of config elements?
I'm not sure what the best practice is.
This is not a best practice, but what I do, if you find it interesting.
I make copies of App.config, let's call App.config.debug and App.config.production, and I just open App.config and other files appropriate and then copy / paste in the app Yes, it is not as ideal as the .config, and if you had the goal of more than one generation deployment, then surely would have to suck, but I did not find anything that I liked more. If you are using source control then you can choose to leave App.config out of it, because with my conference it is a copy of one of the other files.
Comments
Post a Comment