gpt4 book ai didi

msbuild - 使用 MSBuild 和 TeamCity 进行部署时出现问题

转载 作者:行者123 更新时间:2023-12-02 14:26:49 25 4
gpt4 key购买 nike

我正在尝试使用 MSBuild 和 TeamCity 构建和部署 Web 应用程序。我阅读了多篇 SO 帖子,最后决定使用这些参数

/p:Configuration=Debug 
/p:OutputPath=bin
/p:DeployOnBuild=True
/p:DeployTarget=MSDeployPublish
/p:username=BuildUser
/p:password=Password1
/p:AllowUntrustedCertificate=True
/p:DeployIisAppPath=<siteName>
/p:MSDeployPublishMethod=WMSVC
/p:MsDeployServiceUrl=http://<servername>

但是,我收到以下错误:

Could not complete the request to remote agent URL .(Could not complete the request to remote agent URL 'https://10.10.10.42/MSDEPLOYAGENTSERVICE:8172/msdeploy.axd?site=CFS.Services.Hosting'.)

出于某种原因,teamcity 或 msbuild 假设我想通过 https 进行部署,但我不想。如果我像在 Visual Studio 中那样设置 p:MsDeployServiceUrl = http://我收到以下错误:

Could not complete the request to remote agent URL 'https://http//10.10.10.42:8172/msdeploy.axd?site=CFS.Services.Hosting'.

任何帮助将不胜感激。

最佳答案

您是否尝试过使用MSDeployPublishMethod=RemoteAgent?根据 MSDeployServiceURL 的值(即使用 http 而不是 https 的 URL),我猜测您正在使用远程代理服务,而不是通过 Web 管理服务调用 MSDeploy。如果这不对,请告诉我,我可以尝试进一步深入研究。

关于msbuild - 使用 MSBuild 和 TeamCity 进行部署时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10434528/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com