You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8c48efa
Browse filesBrowse the repository at this point in the historyBrowse files
Add script for vcpkg initialization for pipeline and dev setup (#6630)
## 📖 Description
<!-- Describe what this PR changes, why, and any limitations. -->
This adds a `Initialize-Vcpkg.ps1` script to call `vcpkg integrate
install` using the installed vcpkg from Visual Studio without needing a
VS developer command prompt. The script can be used for dev setup and in
pipelines instead of depending on `VCPKG_INSTALLATION_ROOT`, which gives
us more flexibility with the agent images we use to build.
## 🔗 References
<!-- Link related issues, PRs, or docs. Use "Resolves #1234" to
auto-close. -->
## 🔍 Validation
<!-- How did you test? List manual steps or note automated test
coverage. If applicable, include a screenshot or short recording
demonstrating the change working. -->
## ✅ Checklist
<!-- Place an "x" between the brackets to check an item. e.g: [x] -->
- [ ] Signed the [Contributor License
Agreement](https://cla.opensource.microsoft.com)
- [ ] Linked to an issue
- [ ] Added a [release note fragment](../doc/release-notes/README.md)
(if applicable)
- [ ] Updated documentation (if applicable)
- [ ] Added or updated tests (or noted why not applicable)
- [ ] Updated [Copilot instructions](.github/copilot-instructions.md)
(if build, architecture, or conventions changed)
## 🤖 AI Assistance
<!-- Check one -->
- [x] AI assistance was used and has been disclosed in this PR
- [ ] No AI assistance was used
## 📋 Issue Type
<!-- Select the type that best describes this PR -->
- [ ] Bug fix
- [ ] Feature
- [ ] Task
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/6630)
Copy file name to clipboardExpand all lines: doc/Developing.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,9 @@ For naming, formatting, error handling, casts, `std::move()` usage, and resource
32
32
- For VS Community: `winget configure .config/configuration.winget`
33
33
- For VS Professional: `winget configure .config/configuration.vsProfessional.winget`
34
34
- For VS Enterprise: `winget configure .config/configuration.vsEnterprise.winget`
35
-
3. Run `vcpkg integrate install` from the Developer Command Prompt / Developer PowerShell for VS. This is a one-time setup step until the configuration file in step 2 is updated to work with vcpkg setup.
35
+
3. From PowerShell at the repository root, run [`.\tools\Initialize-Vcpkg.ps1`](../tools/Initialize-Vcpkg.ps1) to enable MSBuild integration with Visual Studio's bundled vcpkg.
36
+
This replaces any existing vcpkg integration for the current user.
37
+
This is a one-time setup step until the configuration file in step 2 is updated to work with vcpkg setup.
36
38
37
39
Open `winget-cli\src\AppInstallerCLI.sln` in Visual Studio and build. We currently only build using the solution; command-line methods of building a VS solution should work as well.
0 commit comments