我有一个TFS 2013版本,我试图发布到生成服务器上的文件夹。我已经安装了WebDeploy,但我总是得到错误:麻烦发布网站TFS 2013
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (4274): Web deployment task failed. (Could not connect to the remote computer ("localhost"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE .)
我已经成立了一个网站,在构建服务器而这也正是我想要发布的网站。实际上,我甚至不关心发布它本身 - 我只需要我的编译输出自动到本地文件夹。现在,我们必须手动打开解决方案并选择发布...以获取后续InstallShield构建需要输入的输出。这里是我的MSBuild参数。有没有人有任何想法可能会失踪?
/p:SrcDir=C:\Builds\TFS\WebApps\Src
/p:RevKeyname=WebAppsRevNr
/p:DeployOnBuild=true
/p:DeployTarget=MsDeployPublish
/p:MSDeployServiceURL=https://127.0.0.1:8172/msdeploy.axd
/p:CreatePackageOnPublish=True
/p:DeployIisAppPath="WebApp"
/p:MsDeployPublishMethod=WMSVC
/p:AllowUntrustedCertificate=True
/p:AutoParameterizationWebConfigConnectionStrings=False
/p:Authtype=NTLM /p:username=""
我已经检查了net start wmsvc和net start msdepsvc,并且两者都在运行。有任何想法吗?
谢谢!
UPDATE 我已经试过了安迪建议和现在的一切,当我在命令行中我得到这个奇怪的错误消息,这条命令:
"C:\Workspace\VS2013\WebApps\Main\Src\webapps.sln" (default target) (1) ->
"C:\Workspace\VS2013\WebApps\Main\Src\CoreWebApps\CoreWebApps.csproj"
(default
target) (7) ->
(AutoParameterizationWebConfigConnectionStringsCore target) ->
C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web
.Publishing.targets(2295,5): error : Could not open Source file: Could not
find
a part of the path
'C:\Workspace\VS2013\WebApps\Main\Src\CoreWebApps\Areas\Adm
in\Views\Web.config;Areas\Admin\Views\Web.config'.
[C:\Workspace\VS2013\WebApps
\Main\Src\CoreWebApps\CoreWebApps.csproj]
任何想法,为什么它寻找Web.config文件;区\管理\查看\ Web.config文件。”?这是没有意义的。
行 - 我想你提到的一切,现在我得到这个奇怪的错误消息:(见上修改问题): –
@Ben_G请看到更新的答案,您可以尝试链接文章中提到的解决方法,以检查是否适合您。 –