This sample demonstrates how to use winapp CLI with a C++ application built with CMake to add package identity and package as MSIX.
For a complete step-by-step guide, see the C++ Getting Started Guide.
- Basic C++ console application built with CMake
- Using Windows App Model APIs to retrieve package identity
- Configuring CMake to automatically apply debug identity after building in Debug configuration
- MSIX packaging with app manifest and assets
- Visual Studio Native Desktop workload or Visual Studio with C++ development tools
- CMake 3.20 or later
cmake -B build
cmake --build build --config DebugThe CMakeLists.txt is configured to automatically apply debug identity when building in Debug configuration. Simply build and run:
cmake --build build --config Debug
.\build\Debug\cpp-app.exeOutput: Package Family Name: cpp-app_12345abcde