msbuild - MSDeploy task and presync -


is possible specify presync/postsync commands via msdeploy task? if not, how accomplish this?

what kind of msdeploy task using? if it's through exec of msdeploy.exe yes, of course, if it's kind of wrapper doesn't support them directly can emulate calling sync again run-command provider since pre/post-sync call sync within try/catch/finally structure wrapping main sync anyway.

private int executeworker() {     ...     if (!this.handleauxillarysync("-presync", this._commandline._presyncparameters, retbaseoptions2))         return -1;     deploymentchangesummary deploymentchangesummary;     try     {         deploymentchangesummary = @object.syncto(retprovideroptions2, retbaseoptions2, syncoptions);     }     ...         {         this.handleauxillarysync("-postsync", this._commandline._postsyncparameters, retbaseoptions2);     }     this.handleauxillarysync("-postsynconsuccess", this._commandline._postsynconsuccessparameters, retbaseoptions2);     ...  private bool handleauxillarysync(string synctype, dictionary<string, string> sourceparameters, deploymentbaseoptions destbaseoptions) {     ...     try     {         using (deploymentobject @object = deploymentmanager.createobject(retprovideroptions, retbaseoptions))         @object.syncto(destbaseoptions, syncoptions);             flag = true;     } 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -