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:GITBamBamV2outputpackageBamBamV2.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 : )
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…