Web 部署打包在我的构建服务器上不起作用 [英] Web Deploy packaging not working on my build server

查看:22
本文介绍了Web 部署打包在我的构建服务器上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已成功设置了一个 MSBuild 脚本,该脚本在本地运行时会构建和打包我的站点,并将该包放置在所需的文件夹中.但是,在 Server 2008 上运行时,构建将运行而不会出错,但不会创建包.

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.

山姆:)

推荐答案

发现类似问题 此处 尽管在他们的案例中,他们很幸运地收到了错误消息,但在我的案例中,打包步骤被跳过,没有错误或警告消息

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

从 C:Program文件MSBuildMicrosoftVisualStudiov10.0开发机器上的文件夹复制Web"和Web 应用程序"文件夹到您的等效目录构建服务器.

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.

这解决了我的问题!

这篇关于Web 部署打包在我的构建服务器上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆