简体   繁体   中英

Include an artefact in one Visual Studio Team Services project in another project?

I'm using Visual Studio Team services to build CRFSuite and LibLBFGS . CRFSuite depends on LibLBFGS library being built. I can build LibLBFGS without issue. I want to be able to have the library and header file that are generated by the LibLBFGS build included in the CRFSuite project when I build that.

Hopefully I am missing something pretty obvious and this can be done.

The simple way to achieve your requirement is that, you can add another Visual Studio Build or other to build LibLBFGS project to your CRFSuite build definition.

Steps:

  1. Create build definition for CRFSuite project (eg Visual Studio build template)
  2. Set mappings for LibLBFGS and CRFSuite projects in Repository tab
  3. Add Visual Studio Build step/task (build LibLBFGS project) before step/task of building CRFSuite project
  4. Add Copy files step/task to copy LibBFGS build result (artifacts) to corresponding folder according how CRFSuite project is referenced

On the other hand, if you are familiar to the PowerShell, you can custom build task to call REST API to download artifact of other build. There is the sample code that can help you.

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