Deployment TFS Web部署不';不是通过构建执行,而是在本地执行?

Deployment TFS Web部署不';不是通过构建执行,而是在本地执行?,deployment,tfs,msbuild,msdeploy,Deployment,Tfs,Msbuild,Msdeploy,我有一个解决方案,我正试图让TFS 2010在构建后部署 当我在本地运行以下msbuild命令时,它可以正常部署: msbuild C:\Path\to\Solution.sln/p:DeployOnBuild=True/p:DeployTarget=MsDeployPublish/p:CreatePackageOnPublish=True/p:MSDeployPublishMethod=WMSVC/p:MSDeployServiceUrl=https://[Server]:8172/MsDep

我有一个解决方案,我正试图让TFS 2010在构建后部署

当我在本地运行以下msbuild命令时,它可以正常部署:

msbuild C:\Path\to\Solution.sln/p:DeployOnBuild=True/p:DeployTarget=MsDeployPublish/p:CreatePackageOnPublish=True/p:MSDeployPublishMethod=WMSVC/p:MSDeployServiceUrl=https://[Server]:8172/MsDeploy.axd/p:deployisappath=“TestSite”/p:UserName=Domain\UserName/p:Password=NotTheRealPassword/p:AllowUntrustedCertificate=True

但是,当我将这些相同的选项粘贴到TFS 2010 build MS build参数中时:

…它似乎没有执行任何操作

构建正确完成:

但我在整个日志文件中看不到任何与部署等相关的内容。就好像这些参数从未从TFS传递到MSBuild一样

TFS正在调用的MSBuild命令 日志的格式为(清除敏感数据):
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe/nologo/noconsolelogger“C:\Builds\1\[scrubed]\Daily6am\Sources\[scrubed].sln”/m:1/fl/flp:“logfile=C:\Builds\1\[scrubed]\[scrubed]\Sources\[scrubed].log;encoding=Unicode;verposity=normal”/p:SkipinValidConfiguration=true/p:DeployOnBuild=true/p:DeployTarget=MsDeployPublish/p:CreatePackageOnPublish=true/p:MSDeployPublishMethod=WMSVC/p:MSDeployServiceUrl=https://[scrubed]:8172/MsDeploy.axd/p:Deployiisappath=“TestSite”/p:UserName=[scrubed]\farmservice/p:Password=[scrubed]/p:AllowUntrusted=True/p:AllowUntrustedCertificate=True/p:OutDir=“C:\Builds\1\[scribed]\[scribed]\Binaries\\”/p:Configuration=“Debug”/p:Platform=“Any CPU”/p:VCBuildOverride=“C:\Builds\1\[scribed]\[scribed]\Sources\[scribed].sln.Any CPU.Debug.vsprops”/dl:WorkflowCentralloger,“C:\程序文件\微软Team Foundation Server 2010 \Too\\Buto.Team Foundation .Bug .Server .Logg.dll”;“VuBurthy=正常”;BuildUri=vstfs:///Build/Build/23;InformationNodeId=4504;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;TFSUrl=http://[scrubed]:8080/tfs/[scrubed]\u集合;“* WorkflowForwardingLogger,”C:\程序文件\微软Team Foundation Server 2010 \Too\\Buto.Team Foundation .Bug .Server .Logg.dll;“VuBurthy=正常;“

问题
  • 如何让TFS通知MSBuild生成部署
  • 如何验证参数是否已传入
  • 如何正确阅读日志以了解是否发生了这种情况

如果您能在这些方面提供帮助,我将不胜感激。

我能够找到一个前不久提出的问题的答案:)

根据(信用卡到期时)的回答,建议复制以下文件:

  • C:\ProgramFiles(x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web
  • C:\ProgramFiles(x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications

我复制了Web应用程序,但没有复制Web。复制Web解决了问题。

尝试将部署URL更改为虚假地址,然后查看日志中是否仍然没有任何内容。嗨,John--请参见下面的我的答案。就在您前面几分钟,但这为我解决了问题。我看到了您的答案,但想知道如果你使用了一个伪造的URL。哦,我明白了——对不起,我不明白。我今天晚些时候会检查一个新的版本,并让你知道。谢谢!