Where is WinUI3 in Visual Studio 2022?
Asked Answered
P

3

22

I am unable to find Microsoft's new development platform WinUI3 in visual studio. Should I install any components or something bug in my VS?

enter image description here

Periphrastic answered 8/12, 2021 at 8:15 Comment(0)
U
17

You need to install the correct workload as described here:

Required workloads and components While installing Visual Studio 2022 or 2019, select the following workloads and components.

On the Workloads tab of the installation dialog, select:

  • Universal Windows Platform development .NET Desktop Development Desktop development with C++ On the Individual components tab of the installation dialog, make sure Windows 10 SDK (10.0.19041.0) is selected in the SDKs, libraries, and frameworks section.

  • In the Installation details pane of the installation dialog, make sure C++ (v142) Universal Windows Platform tools is selected in the Universal Windows Platform development section:

You also have to:

  1. Install the Windows App SDK extension for Visual Studio (VSIX) The Windows App SDK includes project and item templates for creating and developing WinUI 3 apps. These project templates are available as Visual Studio extensions (VSIX) for Visual Studio 2022 / 2019.
Unction answered 8/12, 2021 at 8:21 Comment(1)
Works Perfectly.Periphrastic
C
18

In the Visual Studio Installer under "Workloads / Installation details" at the right side, enable:

  • ".NET desktop development" > "Windows App SDK C# Templates"
  • "Desktop development with C++" > "Windows App SDK C++ Templates"

enter image description here

All other required features will be selected automatically.

Crotch answered 28/12, 2022 at 15:39 Comment(0)
U
17

You need to install the correct workload as described here:

Required workloads and components While installing Visual Studio 2022 or 2019, select the following workloads and components.

On the Workloads tab of the installation dialog, select:

  • Universal Windows Platform development .NET Desktop Development Desktop development with C++ On the Individual components tab of the installation dialog, make sure Windows 10 SDK (10.0.19041.0) is selected in the SDKs, libraries, and frameworks section.

  • In the Installation details pane of the installation dialog, make sure C++ (v142) Universal Windows Platform tools is selected in the Universal Windows Platform development section:

You also have to:

  1. Install the Windows App SDK extension for Visual Studio (VSIX) The Windows App SDK includes project and item templates for creating and developing WinUI 3 apps. These project templates are available as Visual Studio extensions (VSIX) for Visual Studio 2022 / 2019.
Unction answered 8/12, 2021 at 8:21 Comment(1)
Works Perfectly.Periphrastic
G
0

Starting with Visual Studio 17.10, the process is much simpler. A new workload called "Windows application development" replaced the "Universal Windows Platform development" workload, and should have everything you need.

In Visual Studio 17.10, the new “Windows application development” workload is now available for developers to jump right in and get started with writing stylish, modern, and fast WinUI apps using .NET or C++ with only one click. This workload replaces the older “Universal Windows Platform development” workload with tools aimed at the latest generation of WinUI + the Windows App SDK.

new workload

The blog post essentially says they've made this a one-click operation now unlike with previous Visual Studio versions:

In previous versions of Visual Studio, to develop with WinUI + the Windows App SDK you had to manually search for each required component in the list of optional components – and this was after reading the docs to find out what you needed! We also heard feedback that WinUI in the Windows App SDK, which represents the latest generation of WinUI that succeeds the Universal Windows Platform (UWP), was less prominent than its predecessor. With the new workload and components, we’ve addressed this feedback to make the newest tools and APIs clear, front-and-center, and available with one click!

Globoid answered 12/7 at 15:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.