It is much easier to add two more cloud projects to your solution. In one project, refer only to your web role. In another project, refer only to your working role.
You can save the cloud project, which refers to both roles, and use it for local debugging, but when the time comes for deployment, right-click the cloud project, which refers only to the role that you want to deploy, and click Publish
Ultimately, you will support configuration files for each cloud project, but that sounds a lot easier than manually editing the package file every time.
Joseph White
source share