[英]Visual Studio Team Services - How to copy built Windows service files To Azure VM
I am trying to run Visual Studio Team Services automated build and deploy but having trouble with copying built windows service to Azure VM.我正在尝试运行 Visual Studio Team Services 自动构建和部署,但在将构建的 Windows 服务复制到 Azure VM 时遇到问题。
These are my steps:这些是我的步骤:
Tried with Windows File Copy尝试使用 Windows 文件复制
Tried with Azure File Copy尝试使用 Azure 文件复制
When I copy files from web projects (ASP.NET MVC 5) with Azure File Copy, everything works fine and the files are transfered.当我使用 Azure 文件复制从 Web 项目 (ASP.NET MVC 5) 复制文件时,一切正常并且文件被传输。 When I try to copy Windows Service built files, it failes silently.
当我尝试复制 Windows 服务构建的文件时,它以静默方式失败。 The task passes successfully but when I open the VM through remote desktop, the folder is empty.
任务成功通过,但是当我通过远程桌面打开虚拟机时,该文件夹为空。 Any ideas?
有任何想法吗?
Windows Service project is different with Asp.Net MVC project. Windows Service 项目与 Asp.Net MVC 项目不同。 With the arguments you specified in "MSBuild Arguments" of "Visual Studio Build" step, there is no file generated in "$(build.stagingdirectory)" folder.
使用您在“Visual Studio Build”步骤的“MSBuild Arguments”中指定的参数,“$(build.stagingdirectory)”文件夹中没有生成文件。 So "Azure File Copy" task just passed and copied nothing.
所以“Azure 文件复制”任务刚刚通过,什么也没复制。
To fix this, changing the argument to following and then try the build again:要解决此问题,请将参数更改为以下,然后再次尝试构建:
/p:outputpath="$(build.stagingdirectory)"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.