Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building / Publishing Artifacts with Visual Studio Online

I am trying to learn the basics of building with Visual Studio Online.

I have worked through the basic instructions and watched the video here.

As in the video, I am using a simple web application project. What gets copied to the artifacts folder is the contents of the bin folder. What I am trying to have copied to the artifacts folder is everything for the site (such as the bin folder contents, web.config, etc). I think I am supposed to specify the path in the Contents text box for the Publish Build Artifacts step but I have tried every combination but nothing is ever copied. What is the secret to doing this?

like image 505
Jason Richmeier Avatar asked Mar 14 '23 07:03

Jason Richmeier


1 Answers

Contents specify minimatch pattern filters (one on each line) that you want to apply to the list of files to be copied. For example:

** copies all files in the root folder.

**\ * copies all files in the root folder and all files in all sub-folders.

**\ bin copies files in any sub-folder named bin.

Check: https://msdn.microsoft.com/Library/vs/alm/Build/steps/build/publish-build-artifacts

If you want to manage Artifacts with TFS Build vNext, you can check this article: http://www.codewrecks.com/blog/index.php/2015/06/30/manage-artifacts-with-tfs-build-vnext/

like image 108
Cece Dong - MSFT Avatar answered Mar 23 '23 06:03

Cece Dong - MSFT