Windows SDK add on là gì

Windows 앱 SDK
이 Windows 앱 SDK OS에서 분리되어 NuGet 패키지를 통해 개발자에게 릴리스되는 통합 API 및 도구 집합을 제공합니다. 이러한 API 및 도구는 Windows 11 데스크톱 앱에서 일관된 방식으로 사용하고 Windows 10, 버전 1809 위해 다운레벨로 사용할 수 있습니다.

시작

다운로드 링크를 선택하거나 Visual Studio 2022 설치 관리자의 선택적 구성 요소에서 "Windows 11 SDK(10.0.22621.0)"를 선택하여 이 페이지에서 Windows SDK를 설치하는 두 가지 방법으로 Windows SDK를 가져올 수 있습니다. 이 SDK를 설치하기 전에 다음을 수행합니다.

  • 모든 시스템 요구 사항 검토
  • 설치하기 전에 Visual Studio를 종료합니다.
  • 릴리스 정보 및 알려진 문제를 검토합니다.

마지막 업데이트: 2021년 10월 4일

시스템 요구 사항

Windows SDK에는 다음과 같은 최소 시스템 요구 사항이 있습니다.

지원되는 운영 체제

  • Windows 10 버전 1507 이상: Home, Professional, Education 및 Enterprise(UWP에는 LTSB 및 S가 지원되지 않음)
  • Windows Server 2022, Windows Server 2019, Windows Server 2016 및 Windows Server 2012 R2(명령줄에만 해당)
  • Windows 8.1
  • Windows 7 SP1

(이전 운영 체제에서 모든 도구가 지원되는 것은 아닙니다.)

하드웨어 요구 사항

  • 1.6GHz 이상의 프로세서
  • 1GB RAM
  • 4GB의 사용 가능한 하드 디스크 공간

추가 SDK 요구 사항

Windows 8.1 및 이전 운영 체제에 설치하려면 Windows에서 유니버설 C 런타임에 대한 업데이트가 필요합니다. Windows 업데이트 통해 설치하려면 Windows SDK를 설치하기 전에 Microsoft 업데이트에서 권장되는 최신 업데이트 및 패치를 설치해야 합니다.

샘플

이제 GitHub를 통해 Windows 앱 샘플을 사용할 수 있습니다. GitHub에서 코드를 찾아보거나, Git에서 리포지토리의 개인 복사본을 복제하거나, 모든 샘플의 압축된 보관 파일을 다운로드 할 수 있습니다. 피드백을 환영하므로 문제가 있거나 질문이 있는 경우 리포지토리 내에서 문제를 자유롭게 열 수 있습니다. 이러한 샘플은 UWP(유니버설 Windows 플랫폼)를 지원하는 데스크톱, 모바일 및 향후 디바이스에서 실행되도록 설계되었습니다.

이전 SDK 버전

업데이트 세부 정보를 포함하여 이전에 릴리스된 SDK 및 에뮬레이터는 보관 페이지에서 찾을 수 있습니다.

API 켜기

새 API를 사용하는 경우 가장 광범위한 Windows 디바이스에서 올바르게 실행되도록 앱을 적응형으로 작성하는 것이 좋습니다. 적응형 앱은 디바이스 및 Windows 버전이 지원하는 모든 위치에서 새로운 기능으로 "켜지게"하지만, 그렇지 않으면 검색된 플랫폼 버전에서 사용할 수 있는 기능만 제공합니다. 구현 세부 정보는 버전 적응 코드 문서를 참조하세요.

Chuyển đến nội dung chính

Trình duyệt này không còn được hỗ trợ nữa.

Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật.

  • Bài viết
  • 12/13/2022
  • 5 phút để đọc

Trong bài viết này

Configure your development computer by installing the appropriate tools to develop apps for Windows with the Windows App SDK and WinUI.

To install the required tools and workloads using the command line, enter one of the following commands in the console. This is supported only with Visual Studio 2022 and later. If you already have Visual Studio 2022 or later installed, then the command will open Visual Studio Installer with any missing workloads selected. You can then select Modify in the Visual Studio Installer to install the required workloads.

For C# developers

  • Visual Studio Community
  • Visual Studio Enterprise
  • Visual Studio Professional
winget install "Visual Studio Community 2022"  --override "--add Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.ComponentGroup.WindowsAppSDK.Cs" -s msstore
winget install "Visual Studio Enterprise 2022"  --override "--add Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.ComponentGroup.WindowsAppSDK.Cs"
winget install "Visual Studio Professional 2022"  --override "--add Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.ComponentGroup.WindowsAppSDK.Cs"

For C++ developers

  • Visual Studio Community
  • Visual Studio Enterprise
  • Visual Studio Professional
winget install "Visual Studio Community 2022"  --override "--add Microsoft.VisualStudio.Workload.NativeDesktop  Microsoft.VisualStudio.ComponentGroup.WindowsAppSDK.Cpp"  -s msstore
winget install "Visual Studio Enterprise 2022"  --override "--add Microsoft.VisualStudio.Workload.NativeDesktop  Microsoft.VisualStudio.ComponentGroup.WindowsAppSDK.Cpp"  
winget install "Visual Studio Professional 2022"  --override "--add  Microsoft.VisualStudio.Workload.NativeDesktop  Microsoft.VisualStudio.ComponentGroup.WindowsAppSDK.Cpp" 

To install the required tools and workloads manually, read the following sections.

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. Before you begin, see System requirements for Windows app development.

Important

Visual Studio 2019 only supports Windows App SDK 1.1 and earlier. Visual Studio 2022 is recommended for developing apps with all versions of the Windows App SDK.

Required workloads and components

While installing Visual Studio, you have the option to install the workloads and components you want. After installation, you can open Visual Studio Installer and select Modify to add workloads and components.

While installing, select the following workloads and components:

  • Visual Studio 2022 version 17.1 and later
  • Other Visual Studio versions

From within the Visual Studio Installer app:

  • On the Workloads tab of the installation dialog box, select as appropriate:

    • For C# app development using the Windows App SDK, select .NET Desktop Development.
      • Then in the Installation details pane of the installation dialog box, select Windows App SDK C# Templates (at the bottom of the list).
    • For C++ app development using the Windows App SDK, select Desktop development with C++
      • Then in the Installation details pane of the installation dialog box, select Windows App SDK C++ Templates (at the bottom of the list).
  • For Universal Windows Platform (UWP) app development, select Universal Windows Platform development

    • Then in the Installation details pane of the installation dialog box for that workload, make sure C++ (v143) Universal Windows Platform tools is selected.
  • On the Individual components tab of the installation dialog box, in the SDKs, libraries, and frameworks section, make sure Windows 10 SDK (10.0.19041.0) is selected.

From within the Visual Studio Installer app:

  • On the Workloads tab of the installation dialog box, select as appropriate:

    • For C# app development using the Windows App SDK, select .NET Desktop Development.
    • For C++ app development using the Windows App SDK, select Desktop development with C++.
    • For Universal Windows Platform (UWP) app development, select Universal Windows Platform development.
      • Then in the Installation details pane of the installation dialog box 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.
  • On the Individual components tab of the installation dialog box, in the SDKs, libraries, and frameworks section, make sure Windows 10 SDK (10.0.19041.0) is selected.

Visual Studio project and item templates

The Windows App SDK includes Visual Studio project and item templates for creating and developing apps that use the WinUI 3 library to implement the user interface.

  • Visual Studio 2022 version 17.1 and later
  • Visual Studio 2022 version 17.0
  • Visual Studio 2019

If you followed the instructions in Required workloads and components above, then the templates are already installed.

Select C# or C++ as the language, Windows as the platform, and WinUI as the Project type to create a new Windows App SDK project.

Optionally, install Template Studio for WinUI (C#) to accelerate the creation of new .NET WinUI apps using a wizard-based UI. Select from a variety of project types and features to generate a project template customized for you.

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

Note

If you have a Windows App SDK Visual Studio extension (VSIX) already installed, then uninstall it before installing a new version. For directions, see Manage extensions for Visual Studio.

Download the extension directly, and install it:

Important

Visual Studio 2019 only supports Windows App SDK 1.1 and earlier. Visual Studio 2022 is recommended for developing apps with all versions of the Windows App SDK.

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

Note

If you have a Windows App SDK Visual Studio extension (VSIX) already installed, then uninstall it before installing a new version. For directions, see Manage extensions for Visual Studio.

  • You can install the latest stable release VSIX from Visual Studio. Select Extensions > Manage Extensions, search for Windows App SDK, and download the Windows App SDK extension. Close and reopen Visual Studio, and follow the prompts to install the extension.
  • Alternatively, you can download the extension directly from Visual Studio Marketplace, and install it:

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

Hybrid C/C++ runtime library linkage

In releases 1.0.3 and 1.1 Preview 2 and later, the Windows App SDK uses Hybrid C/C++ runtime library linkage (hybrid CRT linkage). This is a CRT linkage technique that simplifies deployment. Whether you're a C++ application developer or a C++ library developer, here are some resources for learning about hybrid CRT linkage:

  • Hybrid CRT linkage coding guidelines on GitHub.
  • The hybrid CRT linkage segment of the WinUI community call from April 20, 2022.

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.

  • Windows App SDK
  • Windows App SDK release channels
  • Install tools for preview and experimental channels of the Windows App SDK
  • System requirements for Windows app development
  • Downloads for the Windows App SDK
  • Create your first WinUI 3 project
  • Use the Windows App SDK in an existing project

Phản hồi

Gửi và xem ý kiến phản hồi dành cho


Tài nguyên bổ sung

Tài nguyên bổ sung

Trong bài viết này