name | description | page_type | languages | products | urlFragment | ||
---|---|---|---|---|---|---|---|
Windows App SDK Hello World |
Hello World app for basic demonstration |
sample |
cpp |
|
HelloWorld |
This C++ sample demonstrates an instance of the "Blank App, Packaged (WinUI in Desktop)" project template (available in WinUI 3) that has been configured to include the Project Reunion NuGet package. This sample simply displays a button that, when pressed, makes a call to AppLifecycle::GetActivatedEventArgs() to show that Windows App SDK APIs load and run correctly. You can use this sample as a starting point for exploring Windows App SDK APIs. For more info about the available APIs, see the following links.
-
Follow steps here to set up environment.
-
Clone this repository and open ReunionCppDesktopSampleApp.sln in Visual Studio 2019 Preview
-
Press Ctrl+Shift+B, or select Build > Build Solution.
Note: When building the solution, if you get an error related to a PowerShell command:
The command "powershell.exe -ExecutionPolicy Unrestricted -file ..." exited with code 1.
You will need to manually run that PowerShell command to build. Copy the full PowerShell command inside the quotes of the error message and paste it into a command prompt. -
To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging.
- Windows 10 Version 1809 or higher