Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Deploy packaging not working on my build server

I have successfully set up an MSBuild script that when run locally builds and packages up my site and places the package in the desired folder. However when running it on Server 2008 the build will run without errors but it never creates the package.

I have compared the logs from the 2 machines and they start similarly, my local machine references the package request..

ValidateGlobalPackageSetting:
$(PackageAsSingleFile) is True
$(PackageFileName) is C:\GIT\BamBamV2\output\package\BamBamV2.zip. Validating...

... and then goes on to move a whole load of stuff about.

On the build server none of this is mentioned and it just completes the build without errors or warnings.

I am wondering if its something to do with the way I am calling the packaging in my build script

<Target Name="CompileSolution" >
    <MSBuild Projects="$(SourceFolder)\$(ProjectName).sln" Properties="Configuration=$(Configuration);OutDir=$(ProjectBuildDirectory);DeployOnBuild=true;DeployTarget=Package;PackageLocation=$(PackagePath)">
</MSBuild>

As you can see I am passing in the whole solution rather than a specific project so perhaps this has something to do with it.

Sam : )

like image 726
samaspin Avatar asked Jun 20 '11 09:06

samaspin


1 Answers

Found a similar problem here although in their case they were lucky enough to get an error message in my case the packaging steps were being skipped with no error or warning messages

Taking the last step in the suggested solution fixed the issue for me which was...

From the C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0 folder on your dev machine copy the "Web" and "Web Applications" folders to the equivalent directory on your build server.

This fixed my problem!

like image 132
samaspin Avatar answered Nov 15 '22 21:11

samaspin