【问题标题】:TeamCity - Web Deploy with MSBuild and the file systemTeamCity - 使用 MSBuild 和文件系统进行 Web 部署
【发布时间】:2013-09-30 03:30:32
【问题描述】:

我只想构建源代码并将其复制到另一个文件夹,但我有问题或者我没有得到它或两者兼而有之:

/p:Configuration=Release 
/p:OutputPath=bin 
/p:DeployOnBuild=True 
/p:DeployTarget=MSDeployPublish 
/p:MsDeployServiceUrl=https://{server}:8172/msdeploy.axd 
/p:username=**** 
/p:password=**** 
/p:AllowUntrustedCertificate=True 
/p:DeployIisAppPath=test.livesite.com 
/p:MSDeployPublishMethod=WMSVC

我真正想要的是让它构建并成功复制到:D:\f1\f2\website。我该怎么做?

我做了一些更改,现在是我所在的位置:

Build 
MSBuild 
src\ZooKeeper.Web\ZooKeeper.Web.csproj 
MSDeployPublish 
VSMSDeploy 
C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4377, 5): error 
ERROR_COULD_NOT_CONNECT_TO_REMOTESVC: Web deployment task failed. 
(Could not connect to the remote computer ("ZooKeeper") 
using the specified process ("Web Management Service") because the server did not 
respond. Make sure that the process ("Web Management Service") is started on the remote
computer.  Learn more at:     http://go.microsoft.com/fwlink/?
LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.) 
Project src\ZooKeeper.Web\ZooKeeper.Web.csproj failed. 
src\ZooKeeper.Web.Tests\ZooKeeper.Web.Tests.csproj 
Project src\ZooKeeper.Web.Tests\ZooKeeper.Web.Tests.csproj failed. 
    Project src\ZooKeeper.Web.sln failed. 

【问题讨论】:

    标签: msbuild teamcity


    【解决方案1】:

    Web部署需要安装很多东西,也许你遗漏了什么?

    按照这个很棒的教程:http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx(它对我来说非常有用)

    【讨论】:

    • 我实际上有 3 个构建步骤。一个是构建,一个是运行测试,第三个是部署步骤。它给了我一个错误:ERROR_DESTINATION_NOT_REACHABLE
    • 在您的原始帖子中指定这一点会很棒,您可以添加它吗?因此,我将修改我的答案。
    • 你是对的。我以为我已经安装了,但我所做的只是更新 Web 平台安装程序。我做到了,效果很好。
    猜你喜欢
    • 1970-01-01
    • 2012-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-01
    相关资源
    最近更新 更多