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
The first attempt failed because Package target doesn't exist in the solution file. When using MSBuild on a solution file, a temporary MSBuild project is created (SamplePackage.sln.metaproj); this project file contains only some targets (Build, Clean, Rebuild, Publish, ...)
One way to do what you want is to use DeployOnBuild property like this :
Any Cpu
Dev
$(MSBuildProjectDirectory)\package.zip
Additional links :