Added vcpkg skill#2300
Draft
AugP wants to merge 2 commits into
Draft
Conversation
Contributor
🔒 PR Risk Scan ResultsScanned 5 changed file(s).
|
Contributor
🔍 Vally Lint Results✅ All checks passed
Summary
Full linter output |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a vcpkg skill covering dependency management, versioning, integration, and cross-platform builds.
Changes:
- Adds core vcpkg guidance.
- Adds registries, CI/CD, and troubleshooting references.
- Adds the skill to the generated documentation index.
Show a summary per file
| File | Description |
|---|---|
skills/vcpkg/SKILL.md |
Defines the core skill guidance. |
skills/vcpkg/references/ci.md |
Documents CI/CD and caching. |
skills/vcpkg/references/registries.md |
Covers registries and overlays. |
skills/vcpkg/references/troubleshooting.md |
Covers diagnostics and maintenance. |
docs/README.skills.md |
Indexes the new skill. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 23
- Review effort level: Medium
| @@ -0,0 +1,283 @@ | |||
| --- | |||
| name: vcpkg | |||
| description: Guide for setting up vcpkg in C++ projects, managing dependency versions, and cross-compiling. Covers manifest initialization, CMake and Visual Studio integration, classic-to-manifest migration, version pinning, baselines, overrides, triplets, and cross-compilation. Use when a user is working with vcpkg project setup, installation, version management, or cross-platform builds. For specialized tasks, additional references cover custom registries and overlay ports (references/registries.md), CI/CD and binary caching (references/ci.md), and troubleshooting and dependency lifecycle (references/troubleshooting.md). | |||
|
|
||
| If the user is working inside **Visual Studio** (not VS Code), prefer using the **in-box copy of vcpkg that ships with Visual Studio** rather than a standalone vcpkg clone, unless the user indicates they want to use a different installation. The VS-bundled vcpkg: | ||
| - Is located under the Visual Studio installation directory (e.g., `C:\Program Files\Microsoft Visual Studio\<version>\<edition>\VC\vcpkg\`) | ||
| - Is automatically integrated with MSBuild — no need to run `vcpkg integrate install` |
| { | ||
| "name": "my-project", | ||
| "version": "1.0.0", | ||
| "dependencies": [] |
Comment on lines
+61
to
+62
| find_package(fmt CONFIG REQUIRED) | ||
| target_link_libraries(my-app PRIVATE fmt::fmt) |
|
|
||
| 1. List what's currently installed: `vcpkg list` | ||
| 2. Create `vcpkg.json` with those dependencies | ||
| 3. Delete global installs: `vcpkg remove --outdated --recurse` |
Comment on lines
+9
to
+11
| **Azure Blob Storage:** | ||
| ``` | ||
| set VCPKG_BINARY_SOURCES=clear;x-azblob,https://myaccount.blob.core.windows.net/vcpkg-cache,<sas-token>,readwrite |
| - Is located under the Visual Studio installation directory (e.g., `C:\Program Files\Microsoft Visual Studio\<version>\<edition>\VC\vcpkg\`) | ||
| - Is automatically integrated with MSBuild — no need to run `vcpkg integrate install` | ||
| - Stays up-to-date with Visual Studio updates | ||
| - Works out of the box with CMake projects opened via "Open Folder" or CMake presets |
| vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") | ||
| ``` | ||
|
|
||
| Use it: `vcpkg install telemetry-sdk --overlay-ports=./my-overlays` |
|
|
||
| ### Adding vcpkg to an Existing Visual Studio Solution | ||
|
|
||
| 1. Run `vcpkg integrate install` (one-time, system-wide) |
Comment on lines
+14
to
+18
| - `build-<triplet>-out.log` — Build (compile) output | ||
| - `install-<triplet>-out.log` — Install step output | ||
| - `config-<triplet>-err.log` — CMake configure errors | ||
| - `build-<triplet>-err.log` — Build errors | ||
| - `package-<triplet>-out.log` — Packaging output |
AugP
marked this pull request as draft
July 15, 2026 22:32
Author
|
Will make a few changes and re-open when done. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
Added a skill to enhance Copilot's support for the vcpkg package manager. Skill was already demoed for the Pure Virtual C++ 2026 conference using Copilot CLI. Now I hope to share it with the community.
Type of Contribution
Additional Notes
About me: I am the product manager for vcpkg.
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.