Web application packaging and deployment automation using MSBuild needs the following steps:
Step 0. Server preparation is covered here How to prepare a Windows Server 2012 for web deployment
- Configure solution build profiles
- Configure transformation of web.config file
- Configure publishing profiles
- Create a web deployment package with MSBuild script
- Run deployment from command line
Sample solution that includes build script and configured publishing profiles can be downloaded here https://github.com/mchudinov/BuildWebDeployPackage
Continue reading