Answers: <p>According to <a href="https://docs.microsoft.com/en-us/vsts/package/overview?view=vsts" rel="nofollow noreferrer">this page</a>, the hosted agent supports NuGet, npm, and Maven.</p>
  
  <p>It looks like it might also support <code>pip</code>.
  You could install <code>cget</code> using <code>pip</code> and then use <code>cget</code> to install your package. A bit of a roundabout way, but it might do what you need.</p>
  
  <pre><code>"C:\Program Files\Python36\Scripts\pip" install cget
  cget install nlohmann/json
  </code></pre>
  
  <p>I don't have a way to test this right now, but I will try some real examples and edit tomorrow if I have time.</p>
  
  <p>Since it is a CMake/Git project, you could also just clone the repository (or add it as a <a href="https://git-scm.com/book/en/v2/Git-Tools-Submodules" rel="nofollow noreferrer">submodule</a>) and build it every time. Since I often use libraries that aren't managed, I tend to take this route and leverage the caching that many CI platforms offer to keep my build times low. Sadly, it looks like VSTS hasn't gotten to this <a href="https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/32044321-improve-hosted-build-agent-performance-with-build" rel="nofollow noreferrer">yet</a>.</p>
  
Answers: CC BY-SA 4.0
Answers: 2018-07-03T05:36:28.860Z
Answers: 2018-07-03T05:36:28.860Z
Answers: jmcker
Body: <p><a href="https://docs.microsoft.com/en-us/vsts/pipelines/tasks/build/cmake?view=vsts" rel="nofollow noreferrer">Here</a>, I can read that it is possible to setup a CMake build on a Microsoft hosted vsts agent. What C++ package managers (e.g. Conan) are supported for these agents?</p>
  
  <p>It would be great if at least one of these package managers is supported: <a href="https://github.com/nlohmann/json#package-managers" rel="nofollow noreferrer">https://github.com/nlohmann/json#package-managers</a></p>
  
Tags: <azure-devops><dependency-management><azure-pipelines>
Title: What package managers are supported on Microsoft hosted agents with CMake enabled?
UserDisplayName: Daan
ThreadText: # What package managers are supported on Microsoft hosted agents with CMake enabled?
  
  (Asked by: username_0 on 2018-06-28)
  
  [Here](https://docs.microsoft.com/en-us/vsts/pipelines/tasks/build/cmake?view=vsts), I can read that it is possible to setup a CMake build on a Microsoft hosted vsts agent. What C++ package managers (e.g. Conan) are supported for these agents?
  
  It would be great if at least one of these package managers is supported: <https://github.com/nlohmann/json#package-managers>
  
  **Tags:** azure-devops, dependency-management, azure-pipelines
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-07-03. Score: 1
  
  According to [this page](https://docs.microsoft.com/en-us/vsts/package/overview?view=vsts), the hosted agent supports NuGet, npm, and Maven.
  
  It looks like it might also support `pip`.
  You could install `cget` using `pip` and then use `cget` to install your package. A bit of a roundabout way, but it might do what you need.
  
  ```
  "C:\Program Files\Python36\Scripts\pip" install cget
  cget install nlohmann/json
  
  ```
  
  I don't have a way to test this right now, but I will try some real examples and edit tomorrow if I have time.
  
  Since it is a CMake/Git project, you could also just clone the repository (or add it as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules)) and build it every time. Since I often use libraries that aren't managed, I tend to take this route and leverage the caching that many CI platforms offer to keep my build times low. Sadly, it looks like VSTS hasn't gotten to this [yet](https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/32044321-improve-hosted-build-agent-performance-with-build).
  
  
  ---
  
  