Creating a WinUI project with .NET 5
WinUI adds several different project templates to Visual Studio. We have spent most of the book working with the Blank App (WinUI in UWP) C# template. This template is also available to C++ developers. These other templates are also available:
- Blank App, Packaged (WinUI in Desktop) (C# and C++): Creates a .NET 5 desktop application with support for WinUI controls in the UI.
- Class Library (WinUI in Desktop) (C#): Creates a class library project intended to be used with WinUI in Desktop apps and libraries.
- Class Library (WinUI in UWP) (C#): Creates a class library project intended for use with WinUI in UWP apps and libraries.
- Windows Runtime Component (WinUI in UWP) (C# and C++): Creates a Windows Runtime Component project. This is a packaged component with a
.winmd
file extension that can be consumed by any language with Windows Runtime projections, including C++, C#, Visual Basic, and JavaScript (React Native, for example).
...