0

net sln witch has a website project and also a windows service project. Within team services and on my build job I am able to output the website to the drop folder using the following

/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\"

I need to also output the windows service to another folder within the drop folder

Any help would be great

4
  • What is your question? Aug 17, 2016 at 13:45
  • @user1488692 did you build solution directly? If so, the windows service project will be build and the files would be copied to artifact directory through Copy files task. Do you add Copy files task to copy file? Aug 18, 2016 at 5:31
  • Hi. My build tasks on Team services consists of the following. 1. NuGet restore 2. Build solution with msbuild arguments: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\" 3. Publish symbols path 4. Publish Artifact: drop Aug 18, 2016 at 7:42
  • In my artifacts drop folder I can see the two web sites zipped but nothing for the windows service Aug 18, 2016 at 7:45

1 Answer 1

1

You need to add Copy files task to copy files to artifact directory (Below Publish symbols path task) https://www.visualstudio.com/en-us/docs/build/steps/utility/copy-files.

For example: enter image description here The BuildConfiguration variable is in Variables tab, default is release, you may need to change to debug if you build project with debug configuration.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.