At my company, we use the Web Config Transformation Runner, available on GitHub. It may be invoked directly from the command line, a bit like this:
D:\Utils\WebConfigTransformRunner.exe App.config App.production.config App.config
We've incorporated this into a larger packaging and deployment process to handle deploying to our various environments.