locked
TFS 2010 Passing parameters to msdeploy via msbuild RRS feed

  • Question

  • Hello,

    I am currently using MSBuild to automatically deploy a web app via MSDeploy as part of a CI build process (TFS 2010).  I'm passing the following arguments to MSBuild:

    /p:DeployOnBuild=True /p:Configuration=Debug /p:DeployTarget=MSDeployPublish /p:MSDeployPublishMethod=RemoteAgent /p:MSDeployServiceUrl=http://<servername>:8080/msdeployagentservice  /p:username=<username> /p:password=<password>

    The problem is that I need to recycle the application pool prior to deployment to release the lock on the application log file.  I wanted to use the presync parameter to accomplish this but not sure how to do this since MSBuild is the one making the call to MSDeploy.

     

    Thanks,

    Marshall

     

    Monday, September 13, 2010 7:12 PM

Answers

  • Hi bellmar,

    You can visit out ASP.NET forum http://forums.asp.net/ and there will be more experts on MSDeploy.

    If you can use MSBuild to deploy it successful, you can add a MSBuild Activity after Compile.


    Best regards,
    Ruiz
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com
    Wednesday, September 15, 2010 6:39 AM
    Moderator

All replies

  • Hi Marshall,

    Sorry that I am not familiar with MSDeploy. Here is a thread that use Power Shell to recycle the App Pool on remote server, hope it could help you.

    http://social.msdn.microsoft.com/Forums/en/tfsbuild/thread/13a25481-c887-4d1c-b594-e35b8e38268c


    Best regards,
    Ruiz
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com
    Tuesday, September 14, 2010 7:03 AM
    Moderator
  • Ruiz, thanks for the link.  I first need to to find out how to pass parameters to MSDeploy via the MSBuild command line
    Tuesday, September 14, 2010 12:12 PM
  • Hi bellmar,

    You can visit out ASP.NET forum http://forums.asp.net/ and there will be more experts on MSDeploy.

    If you can use MSBuild to deploy it successful, you can add a MSBuild Activity after Compile.


    Best regards,
    Ruiz
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com
    Wednesday, September 15, 2010 6:39 AM
    Moderator