Prerequisites
Building WinGet from source requires Windows 10 1809 (17763) or later.
System Requirements
Enable Developer Mode
Enable Developer Mode on your Windows machine.
Install Visual Studio 2022
Download and install Visual Studio 2022Or use WinGet:
You may need to adjust workloads via Tools → Get Tools and Features after installation.
Install Required Workloads
Install these Visual Studio workloads:
- .NET Desktop Development
- Desktop Development with C++
- Universal Windows Platform Development
Check the .vsconfig file for the complete components list.
Install Windows SDK
Install Windows SDK for Windows 11 (10.0.26100)Or use WinGet:Or via Visual Studio:
- Go to Tools → Get Tools and Features
- Select Individual Components
- Find Windows 10 SDK (10.0.26100.0)
Install Visual Studio Extension
Building the Client
Configure Your System
Run the configuration from the project root (so relative paths resolve correctly).Choose based on your Visual Studio edition:
Integrate vcpkg
Run from Developer Command Prompt or Developer PowerShell for VS 2022:
This is a one-time setup step until the configuration file is updated to work with vcpkg setup.
Running and Debugging
Deploy the Solution
After building completes, deploy the solution:- In Visual Studio, go to Build → Deploy Solution
- Run the client from command line using:
Enable Step-Through Debugging
Configure Debug Settings
- Right-click
AppInstallerCLIPackagein Solution Explorer - Select Properties
- Navigate to the Debug tab
- In Debugger type selection:
- Change “Application process” to “Native Only”
- Change “Background task process” to “Native Only”
Set Breakpoints
The main entry point is in
src/AppInstallerCLI/main.cppAdd breakpoints in your code where needed.Running Unit Tests
The unit tests are located in theAppInstallerCLITests project.
Test Location
After building, tests are compiled under:Running Tests
- Run All Tests
- Run Specific Test
- View Options
Development Workflow
Troubleshooting Build Issues
Missing Windows SDK
Missing Windows SDK
Error: Cannot find Windows SDK 10.0.26100Solution: Install the specific SDK version using WinGet or Visual Studio Installer:
vcpkg Integration Failed
vcpkg Integration Failed
Error: vcpkg not found or integration failedSolution: Ensure you’re running from Developer Command Prompt for VS 2022:
- Open Developer Command Prompt from Start menu
- Navigate to project directory
- Run
vcpkg integrate install
Build Fails with C++ Errors
Build Fails with C++ Errors
Solution: Verify all required workloads are installed:
- Open Visual Studio Installer
- Click Modify on VS 2022
- Ensure “Desktop Development with C++” workload is selected
- Check for any pending updates
wingetdev Command Not Found
wingetdev Command Not Found
Solution: Deploy the solution after building:
- In Visual Studio: Build → Deploy Solution
- Wait for deployment to complete
- Try
wingetdevagain in a new terminal window
Contributing
Once you have a working development environment, you can contribute to the project:- Check open issues for areas to contribute
- Follow the contribution guidelines
- Submit pull requests with your improvements
Make sure to run tests and verify your changes work correctly before submitting a pull request.