简体   繁体   中英

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.

These are my steps:

Build在此处输入图片说明

Tried with Windows File Copy在此处输入图片说明

Tried with Azure File Copy在此处输入图片说明

When I copy files from web projects (ASP.NET MVC 5) with Azure File Copy, everything works fine and the files are transfered. When I try to copy Windows Service built files, it failes silently. 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. With the arguments you specified in "MSBuild Arguments" of "Visual Studio Build" step, there is no file generated in "$(build.stagingdirectory)" folder. So "Azure File Copy" task just passed and copied nothing.

To fix this, changing the argument to following and then try the build again:

/p:outputpath="$(build.stagingdirectory)"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM