3

Install tools for preview and experimental versions of the Windows App SDK - Win...

 2 years ago
source link: https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/preview-experimental-install?tabs=vs-2022-17-1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Install tools for preview and experimental channels of the Windows App SDK

  • Article
  • 02/24/2022
  • 3 minutes to read

Configure your development computer by installing the appropriate tools to develop apps for Windows with the preview and experimental channels of the Windows App SDK.

This topic is for the preview and experimental release channels of the Windows App SDK—see Windows App SDK release channels. For the stable channel, there's also Install tools for the Windows App SDK.

Install Visual Studio

Use these links to install Visual Studio 2022 (recommended) or Visual Studio 2019. You can choose between the free Visual Studio Community edition, Visual Studio Professional, or Visual Studio Enterprise. Also see System requirements for Windows app development.

Required workloads and components

While installing Visual Studio, select these workloads and components.

  • On the Workloads tab of the installation dialog, select:

    • Universal Windows Platform development
      • Then in the Installation details pane of the installation dialog for that workload, make sure either C++ (v143) Universal Windows Platform tools (for Visual Studio 2022) or C++ (v142) Universal Windows Platform tools (for Visual Studio 2019) is selected.
    • .NET Desktop Development for C# app development
    • Desktop development with C++ for C++ app development
  • On the Individual components tab of the installation dialog, in the SDKs, libraries, and frameworks section, make sure Windows 10 SDK (10.0.19041.0) is selected.

Preview release

The Windows App SDK includes Visual Studio project and item templates for creating and developing WinUI 3 apps. For a preview of the next stable release, install the latest extension from the preview release channel. For more info, see Preview release channel.

The templates are available by installing a Visual Studio extension (VSIX).

If you installed Windows App SDK C# Templates (an installation detail of the .NET Desktop Development workload) and/or Windows App SDK C++ Templates (an installation detail of the Desktop development with C++ workload), then run Visual Studio Installer to uninstall them before installing the VSIX.

The extensions from the preview channel are available only from the download locations provided above. These extensions are not available via Visual Studio Marketplace or the Manage Extensions dialog box in Visual Studio.

If you install the C# version of the Windows App SDK 1.0 Preview 2 extension for Visual Studio 2019, and you want to use the Single-project MSIX Packaging Tools project template (see Package your app using single-project MSIX), then you must also install the Single-project MSIX Packaging Tools extension separately. The Blank App, Packaged (WinUI 3 in Desktop) project template has a known issue that results in a build error unless you also install the single-project packaging tools extension. This issue doesn't affect other versions of the Windows App SDK 1.0 Preview 2 extension.

Experimental release

For experimental features, install the latest extension from the experimental release channel. For more info, see Experimental release channel.

Choose one of these options to install the latest experimental release (version 1.0 Experimental):

  • In Visual Studio, click Extensions > Manage Extensions, search for Windows App SDK (Experimental), and install the latest extension.
  • Alternatively, you can download and install the extension directly from Visual Studio Marketplace:

For more versions of the Windows App SDK, see Downloads for the Windows App SDK.

Next steps

To create your first WinUI 3 app that uses the Windows App SDK, see Create your first WinUI 3 project.

Also see Use the Windows App SDK in an existing project.

Related topics


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK