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

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

问题描述

我已经成功设置了一个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:\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:)

推荐答案

发现了类似的问题

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 文件\ MSBuild \ Microsoft \ VisualStudio \ v10.0 在开发机器上的文件夹中复制 "Web"和"Web应用程序"文件夹 到您的等效目录 构建服务器.

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.

这解决了我的问题!

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

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