Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
655 views
in Technique[技术] by (71.8m points)

visual studio 2010 - 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: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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 FilesMSBuildMicrosoftVisualStudiov10.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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...