Discussion Create deployment package using team build - web deploy

  • Tuesday, September 18, 2012 6:52 PM
     
     

    Hi All

    I'm trying to create a build definition for my web application on the build server which will create a deployment package (.zip package). 

    The deployment is successful (build server is able to create the package) with the following settings in "package/ publish" propeerties of the web [roject in VS 2010.  turned on :

    "Include IIS settings as configured in IIS" - UNCHECK.

    MS build arguments in build definition:

    /p:DeployOnBuild=True /p:Configuration=Debug /p:CreatePackageOnPublish=True

    However, when I create the build definition with the IIS settings option turned on, I get the following error:

    "Include IIS settings as configured in IIS" - Checked in project properties.

    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3009): Web deployment task failed.(Object of type 'manifest' and path 'D:\Builds\1\SEA\SEA_TEST_MSDeploy - TestMSDeploy\Binaries\_PublishedWebsites\TestMSDeploy_Package\TestMSDeploy.SourceManifest.xml' cannot be created.)  Object of type 'manifest' and path 'D:\Builds\1\SEA\SEA_TEST_MSDeploy - TestMSDeploy\Binaries\_PublishedWebsites\TestMSDeploy_Package\TestMSDeploy.SourceManifest.xml' cannot be created. One or more entries in the manifest 'sitemanifest' are not valid. Application '/TestMSDeploy' does not exist in site 'Default Web Site'.

    I know it is because it is looking for a virtual directory for this web project on the build server.  But is there any way around this? We want this option checked because we want to import IIS settings into the package as well.  Also Pls note I only want the build server to generate the .zip package on the shared path.

    Any help on this is appreciated!

    Thanks

    Sri.

All Replies