title: Web Deploy packaging not working on my build server
body: <p>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.</p>
  
  <p>I have compared the logs from the 2 machines and they start similarly, my local machine references the package request..</p>
  
  <pre><code>ValidateGlobalPackageSetting:
  $(PackageAsSingleFile) is True
  $(PackageFileName) is C:\GIT\BamBamV2\output\package\BamBamV2.zip. Validating...
  </code></pre>
  
  <p>... and then goes on to move a whole load of stuff about.</p>
  
  <p>On the build server none of this is mentioned and it just completes the build without errors or warnings.</p>
  
  <p>I am wondering if its something to do with the way I am calling the packaging in my build script</p>
  
  <pre><code>&lt;Target Name="CompileSolution" &gt;
      &lt;MSBuild Projects="$(SourceFolder)\$(ProjectName).sln" Properties="Configuration=$(Configuration);OutDir=$(ProjectBuildDirectory);DeployOnBuild=true;DeployTarget=Package;PackageLocation=$(PackagePath)"&gt;
  &lt;/MSBuild&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>Sam : )</p>