![]() For more details about the available items, see WinUI 3 templates in Visual Studio.īuild and run your solution on your development computer to confirm that the app runs without errors. In the Add New Item dialog box, select the WinUI tab, choose the item you want to add, and then click Add. To add a new item to your app, right-click the project node in Solution Explorer, and select Add > New Item. The project also includes the package manifest for building the app into an MSIX package. Those classes derive from types in the Microsoft.UI.Xaml namespace provided by WinUI 3. The MainWindow.xaml file and code-behind file(s) define a MainWindow class that represents the main window displayed by your app. ![]() The App.xaml file and code-behind file(s) define an Application-derived class that represents your running app. The project that Visual Studio generates contains your app's code. For more information about this project template, see Package your app using single-project MSIX.Įnter a project name, choose any other options as desired, and click Create. The generated project is configured with the package manifest and other support needed to build the app into an MSIX package (see What is MSIX?). That template creates a desktop app with a WinUI 3-based user interface. Select the Blank App, Packaged (WinUI 3 in Desktop) project template, and click Next. ![]() In the New Project dialog's drop-down filters, select C#/ C++, Windows, and WinUI, respectively. In Visual Studio, select File > New > Project. To set up your development computer, see Install tools for the Windows App SDK. ![]() Packaged: Create a new project for a packaged C# or C++ WinUI 3 desktop app For more info about your packaging options, see Advantages and disadvantages of packaging your app. Packaging is an important consideration of any Windows App SDK project. Packaged, unpackaged, and packaged with external location If you're working on a UWP app, then refer to Migrate from UWP to the Windows App SDK. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |