using these profile gives us the ability to create different publishing for different environments.
all that is nice and well and work splendid with the VS2012, but what with my Builds?
We have 2 options:
- Add to Build Definition, Process->Advanced->MSBuild Arguments "/p:DeployOnBuild=true /p:PublishProfile=<Publish Profile Name>"
- Add the following lines to a project configuration
<DeployOnBuild>True</DeployOnBuild>
<PublishProfile>Deploy2</PublishProfile>
<PublishProfile>Deploy2</PublishProfile>
Using option 2 works better with multiple websites in the same
solution
Also for File System Publish update publish profile like this, because of a bug in the build:
<publishUrl>$(MSBuildThisFileDirectory)..\Deployment\</publishUrl>
$(MSBuildThisFileDirectory) - the location of the pubxml in the project properties
No comments:
Post a Comment