Create app bundle sample
This sample shows you how to create an app bundle using the Packaging API.
The sample covers these tasks:
- Use IAppxBundleFactory::CreateBundleWriter to create a bundle writer.
- Use IAppxBundleWriter::AddPayloadPackage to add the payload packages to the bundle.
- Create an input stream and use IAppxBundleWriter::Close to flush the stream.
Operating system requirements
Client
Windows 8.1
Server
Windows Server 2012 R2
Build the sample
- Start Microsoft Visual Studio and select File > Open > Project/Solution.
- Go to the directory named for the sample, and double-click the Visual Studio Solution (.sln) file.
- Press F7 or use Build > Build Solution to build the sample.
Run the sample
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.