vcpkg C++ 依赖管理
原名:vcpkg
使用 vcpkg 管理 C/C++ 库、清单、版本和跨平台构建依赖。
中文 Skills 技能说明
适合原生应用和 CMake 项目。先确认 triplet、基线和现有包管理方式,避免全局状态污染;下载依赖、升级基线和修改 CI 前说明影响并验证许可证。
上游能力依据
上游原始适用说明: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).
上游 SKILL.md 主要章节(保留原文标题):
- Additional References (load on demand)
- Important Behavioral Rules
- Classic vs. Manifest Mode
- Visual Studio Environment
- Shell Environment Variable Syntax
- Project Setup
- Initializing vcpkg in a New Project (Manifest Mode)
- Adding vcpkg to an Existing Visual Studio Solution
- Classic-to-Manifest Migration
- Installing Dependencies
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/vcpkg
适用范围
平台:linux、macos、windows;标签:软件开发、vcpkg C++ 依赖管理
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。