Different config files in C# project
It is almost certain that you would need different configuration for different environments. Here’s one way to maintain separate config files.
This should work for any number of configurations in the project- Release, Debug and whatever else custom configurations exist.
- Externally open
ProjectName.csproj
using a text editor. - Import below after the last import. This is for the
TransformXml
task in step 3.
- Add this task as BeforeBuild target like so: