Are there good patterns for mapping solution configurations to environments and using MsDeploy for packaging per environment?
Shortest version: Grab this file, and try t
I've done something similar that may be useful. In a recent project, we had 'Dev', 'Test' and 'Prod' environments.
I added solution configurations for each of these.. eg.
For most projects in the solution, these configurations were just linked to the regular 'Release' build, but where appropriate, some projects did have distinct 'Release-Test' build configurations where there might be #if/#endif stuff in the code.
This would also make sense to allow customisation for your msdeploy config per configuration too.
Regarding the msbuild target. The target referrs to the name of a element. eg you could call msbuild with /t:BuildWebPackage for your example above.