Skip to content

Commit 6262bdd

Browse files
Merge pull request #5951 from MicrosoftDocs/main
Auto Publish – main to live - 2025-11-05 05:00 UTC
2 parents 0c9f8dd + e39af96 commit 6262bdd

8 files changed

Lines changed: 201 additions & 200 deletions

File tree

hub/apps/desktop/index.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
### YamlMime:Landing
22

33
title: Build desktop apps for Windows
4-
summary: This documentation provides the latest guidance about building desktop apps for Windows 11 and Windows 10.
4+
summary: This documentation provides the latest guidance about building desktop apps for Windows 11.
55

66
metadata:
77
title: Build desktop apps for Windows | Microsoft Docs
8-
description: This documentation provides the latest guidance about building desktop apps for Windows 11 and Windows 10.
8+
description: This documentation provides the latest guidance about building desktop apps for Windows 11.
99
ms.topic: landing-page
1010
ms.collection: collection
11-
ms.date: 12/13/2024
11+
ms.date: 11/4/2025
1212
keywords: windows win32, desktop development
1313

1414
# linkListType: architecture | concept | deploy | download | get-started | how-to-guide | learn | overview | quickstart | reference | tutorial | video | whats-new
@@ -18,6 +18,8 @@ landingContent:
1818
linkLists:
1919
- linkListType: get-started
2020
links:
21+
- text: What's new in Windows development
22+
url: /windows/whats-new/
2123
- text: Start here!
2224
url: ../get-started/start-here.md
2325
- text: An overview of Windows development options

hub/apps/get-started/best-practices.md

Lines changed: 85 additions & 85 deletions
Large diffs are not rendered by default.

hub/apps/get-started/index.md

Lines changed: 39 additions & 39 deletions
Large diffs are not rendered by default.

hub/apps/get-started/samples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Samples and tools for Windows development
33
description: Use these GitHub repositories to learn about Windows development. Sample apps demonstrate Windows features, API usage patterns, and end-to-end scenarios.
44
ms.topic: how-to
5-
ms.date: 03/10/2025
5+
ms.date: 11/4/2025
66
keywords: windows, win32, desktop development
77
ms.localizationpriority: medium
88
ms.collection: windows11
@@ -17,7 +17,7 @@ This page contains links to resources that can make you more efficient as you de
1717

1818
:::image type="content" source="./images/WASDK.png" alt-text="Header image for Windows App SDK" border="false":::
1919

20-
The [**WindowsAppSDK-Samples repository**](https://github.com/microsoft/WindowsAppSDK-Samples) provides a collection of code samples that demonstrate how to use the Windows App SDK to build modern Windows applications. These samples cover key features such as WinUI 3, App Lifecycle, Windowing, and Push Notifications, offering practical, hands-on guidance for developers. Whether you're new to the Windows App SDK or looking for specific implementation details, this repository serves as a valuable resource to accelerate development and explore best practices. Other samples can be found in our [Samples Browser](/samples/browse/).
20+
The [**WindowsAppSDK-Samples repository**](https://github.com/microsoft/WindowsAppSDK-Samples) provides a collection of code samples that demonstrate how to use the Windows App SDK to build modern Windows applications. These samples cover key features such as WinUI 3, app lifecycle, windowing, and push notifications, offering practical, hands-on guidance for developers. Whether you're new to the Windows App SDK or looking for specific implementation details, this repository serves as a valuable resource to accelerate development and explore best practices. You can find other samples in our [Samples Browser](/samples/browse/).
2121

2222

2323
> [!div class="nextstepaction"]
@@ -50,7 +50,7 @@ You can get the [**Windows Community Toolkit Gallery app from the Microsoft Sto
5050

5151
This training module steps through how to set up your developer environment and use WinUI, the Windows App SDK, and the Windows Community ToolKit to build a Windows app called SnowPal.
5252

53-
SnowPal is a word game in which the app selects a word for the user to guess and presents that word as a series of blank spaces, with each blank space representing a letter from the word in spelling order. The player takes turns guessing a single letter that they believe is in the word. If the letter is not in the word, a missing piece of the SnowPal character is added; otherwise, the letter replaces the corresponding blank(s) in the word. The player wins by guessing the word or loses when all pieces of the SnowPal character have been added.
53+
SnowPal is a word game in which the app selects a word for the user to guess and presents that word as a series of blank spaces, with each blank space representing a letter from the word in spelling order. The player takes turns guessing a single letter that they believe is in the word. If the letter isn't in the word, a missing piece of the SnowPal character is added; otherwise, the letter replaces the corresponding blanks in the word. The player wins by guessing the word or loses when all pieces of the SnowPal character are added.
5454

5555
By building this app step by step, you gain hands-on experience with core development concepts while creating something fun and functional.
5656

hub/apps/get-started/start-here.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@
22
title: Get started with Windows development using WinUI
33
description: List of steps to get started developing Windows apps with WinUI and the Windows App SDK.
44
ms.topic: how-to
5-
ms.date: 04/18/2025
5+
ms.date: 11/4/2025
66
keywords: windows, desktop development
77
ms.localizationpriority: medium
88
ms.collection: windows11
99
---
1010

1111
# Start developing Windows apps
1212

13-
Welcome to Windows app development. This guide will take you through the steps needed to begin creating apps using the latest Windows development frameworks: the Windows App SDK and WinUI. It will also point you to resources that will help you learn more about Windows development. If you want a step-by-step guide to setting up your developer environment and building your first WinUI app with the latest tools, please see [WinUI 101](/training/modules/winui-101/). If you are already comfortable developing apps for Windows, but want to know more about the latest tools, please see [Develop Windows desktop apps](/windows/apps/develop/).
13+
Welcome to Windows app development. This guide takes you through the steps needed to begin creating apps by using the latest Windows development frameworks: the Windows App SDK and WinUI. It also points you to resources that help you learn more about Windows development. For a step-by-step guide to setting up your developer environment and building your first WinUI app with the latest tools, see [WinUI 101](/training/modules/winui-101/). If you're already comfortable developing apps for Windows but want to know more about the latest tools, see [Develop Windows desktop apps](/windows/apps/develop/).
1414

1515
> [!TIP]
1616
> [Microsoft Copilot](https://copilot.microsoft.com) is a great resource if you have questions about getting started writing Windows apps.
1717
1818

1919
## 1. Enable Developer Mode
2020

21-
Windows has a special mode for developers that adjusts security settings in order to let you run the apps you're working on. You'll need to enable Developer Mode before you can build, deploy, and test your app using Visual Studio.
21+
Windows has a special mode for developers that adjusts security settings so you can run the apps you're working on. You need to enable Developer Mode before you can build, deploy, and test your app by using Visual Studio.
2222

2323
> [!TIP]
24-
> If you don't enable it now, you'll be prompted to enable it when you try to build your app in Visual Studio.
24+
> If you don't enable Developer Mode now, Visual Studio prompts you to enable it when you try to build your app.
2525
2626
To enable Developer Mode:
2727

28-
* Open Windows Settings and navigate to the **[System > For developers](ms-settings:developers)** page.
28+
* Open Windows Settings and go to the **[System > For developers](ms-settings:developers)** page.
2929
* Toggle the Developer Mode switch to **On** and confirm your choice in the confirmation dialog.
3030

3131
For more information about Developer Mode, see [Enable your device for development](/windows/apps/get-started/enable-your-device-for-development).
3232

3333

3434
## 2. Install Visual Studio
3535

36-
You'll use [Visual Studio](/visualstudio/ide/), Microsoft's comprehensive integrated development environment (IDE), to create your WinUI app. It's the preferred development tool of many Windows developers and it will help you write, debug, and deploy your apps. The project templates in Visual Studio will quickly get you started with projects for Windows and many other platforms.
36+
Use [Visual Studio](/visualstudio/ide/), Microsoft's comprehensive integrated development environment (IDE), to create your WinUI app. It's the preferred development tool of many Windows developers and it helps you write, debug, and deploy your apps. The project templates in Visual Studio quickly get you started with projects for Windows and many other platforms.
3737

3838
> [!TIP]
3939
> Before installing these tools, make sure your development computer meets the [system requirements for Windows app development](../windows-app-sdk/system-requirements.md).
4040
41-
Use the link below to download and install the latest Visual Studio. The installer will walk you through the steps, but if you find you need detailed instructions, see [Install Visual Studio](/visualstudio/install/install-visual-studio).
41+
Use the following link to download and install the latest Visual Studio. The installer walks you through the steps, but if you need detailed instructions, see [Install Visual Studio](/visualstudio/install/install-visual-studio).
4242

4343
> [!div class="button"]
4444
> [Download Visual Studio](https://visualstudio.microsoft.com/downloads/)
@@ -47,7 +47,7 @@ The free Visual Studio Community Edition includes everything you need to create
4747

4848
### 2.2 Required workloads and components
4949

50-
While installing Visual Studio, you need to install the workloads and components required for developing with WinUI and the Windows App SDK. After installation, you can open the Visual Studio Installer app and select **Modify** to add workloads and components.
50+
While installing Visual Studio, install the workloads and components required for developing with WinUI and the Windows App SDK. After installation, you can open the Visual Studio Installer app and select **Modify** to add workloads and components.
5151

5252
On the **Workloads** tab of the Visual Studio Installer app, select the following workloads and components:
5353

@@ -58,7 +58,7 @@ On the **Workloads** tab of the Visual Studio Installer app, select the followin
5858
:::image type="content" source="images/hello-world/vs-workload-winui.png" alt-text="A screenshot of the Visual Studio installer UI with the WinUI application development workload selected.":::
5959

6060
* For **C++** app development using the Windows App SDK, select **WinUI application development**.
61-
* Then in the **Installation details** pane, under the **WinUI application development** node, select **C++ WinUI app development tools**. (This will also select any additional required components.)
61+
* Then in the **Installation details** pane, under the **WinUI application development** node, select **C++ WinUI app development tools**. (This selection also includes any additional required components.)
6262

6363
:::image type="content" source="images/hello-world/vs-workload-winui-cpp.png" alt-text="A screenshot of the Visual Studio installer UI with the C++ WinUI app development tools selected.":::
6464

@@ -71,38 +71,38 @@ On the **Workloads** tab of the Visual Studio Installer app, select the followin
7171
* Then in the **Installation details** pane of the installation dialog box, select **Windows App SDK C# Templates** (near the bottom of the list).
7272
* For **C++** app development using the Windows App SDK, select **Desktop development with C++**
7373
* Then in the **Installation details** pane of the installation dialog box, select **Windows App SDK C++ Templates** (at the bottom of the list).
74-
* On the **Individual components** tab of the installation dialog box, in the **SDKs, libraries, and frameworks** section, make sure the latest Windows SDK is selected. It will look like **Windows 11 SDK (10.0.22621.0)**. Type "Windows SDK" into the search box to make it easier to find.
74+
* On the **Individual components** tab of the installation dialog box, in the **SDKs, libraries, and frameworks** section, make sure the latest Windows SDK is selected. It looks like **Windows 11 SDK (10.0.22621.0)**. Type "Windows SDK" into the search box to make it easier to find.
7575

7676
---
7777

7878
## 3. Create and launch your first WinUI app
7979

80-
Visual Studio project templates include all the files you need to quickly create your app. In fact, after you create your project from a WinUI app template, you'll already have an app that you can run, and then add your code to.
80+
Visual Studio project templates include all the files you need to quickly create your app. In fact, after you create your project from a WinUI app template, you already have an app that you can run, and then add your code to.
8181

82-
To create a new project using the WinUI C# Blank App project template:
82+
To create a new project by using the WinUI C# Blank App project template:
8383

8484
1. Open Visual Studio and select **Create a new project** from the launch page. (If Visual Studio is already open to the editor, select **File** > **New** > **Project**):
8585
:::image type="content" source="images/hello-world/start-project.png" alt-text="Create a new project":::
8686

87-
1. Search for `WinUI` and select the `WinUI Blank App (Packaged)` C# project template, then click **Next**:
87+
1. Search for `WinUI` and select the `WinUI Blank App (Packaged)` C# project template, then select **Next**:
8888
:::image type="content" source="images/hello-world/create-project.png" alt-text="Blank, packaged WinUI 3 C# desktop app":::
8989

90-
1. Specify a project name, then click **Create**. You can optionally specify a solution name and directory, or leave the defaults. In this image, the `Hello World` project belongs to a `Hello World` solution, which will live in `C:\Projects\`:
90+
1. Specify a project name, then select **Create**. You can optionally specify a solution name and directory, or leave the defaults. In this image, the `Hello World` project belongs to a `Hello World` solution, which lives in `C:\Projects\`:
9191
:::image type="content" source="images/hello-world/configure-project.png" alt-text="Specify project details":::
9292

9393
> [!NOTE]
9494
> If you want to use this project to build the complete app in the Next steps section, name the project `WinUINotes`.
9595

96-
1. Click the Debug "Start" button to build and run your project:<br/>
96+
1. Select the **Debug** "Start" button to build and run your project:<br/>
9797
:::image type="content" source="images/hello-world/start-click.png" alt-text="Build and run your project":::<br/>
98-
Your project will build, be deployed to your local machine, and run in debug mode:<br/>
98+
Your project builds, deploys to your local machine, and runs in debug mode:<br/>
9999
:::image type="content" source="images/hello-world/click-me.png" alt-text="Hello World project built and running":::
100100

101-
1. To stop debugging, close the app window, or click the debug "Stop" button in Visual Studio.
101+
1. To stop debugging, close the app window, or select the debug "Stop" button in Visual Studio.
102102

103103
## 4. Delete sample code
104104

105-
The `MainWindow` class included with the project template includes some sample code that needs to be removed to make room for your content.
105+
The `MainWindow` class included with the project template contains sample code that you need to remove to make room for your content.
106106

107107
1. Double-click `MainWindow.xaml` in **Solution Explorer** to open it. You should see XAML markup for a `StackPanel` control.
108108
1. Delete the XAML for the `StackPanel`. (You'll add your own content in its place as you create your app.)
@@ -114,7 +114,7 @@ The `MainWindow` class included with the project template includes some sample c
114114
</StackPanel>
115115
```
116116

117-
If you try to run your app now, Visual Studio will throw an error along the lines of `The name 'myButton' does not exist in the current context`. This is because you deleted the `Button` control named `myButton`, but it's still referenced in the `MainPage.xaml.cs` code-behind file. Delete the reference in the code file, too.
117+
If you try to run your app now, Visual Studio throws an error along the lines of `The name 'myButton' does not exist in the current context`. This error occurs because you deleted the `Button` control named `myButton`, but the `MainPage.xaml.cs` code-behind file still references it. Delete the reference in the code file, too.
118118

119119
1. Double-click `MainWindow.xaml.cs` in **Solution Explorer** to open it.
120120
1. Delete the `myButton_Click` event handler.
@@ -136,28 +136,28 @@ The `MainWindow` class included with the project template includes some sample c
136136
}
137137
```
138138

139-
1. Save the file by pressing <kbd>CTRL + SHIFT + S</kbd>, clicking the Save All icon in the tool bar, or by selecting the menu **File** > **Save All**.
139+
1. Save the file by pressing <kbd>CTRL + SHIFT + S</kbd>, clicking the **Save All** icon in the tool bar, or by selecting the menu **File** > **Save All**.
140140

141141
## 5. Update to the latest WinUI/Windows App SDK
142142

143-
The Windows App SDK (and WinUI, which is part of it) is distributed as a [NuGet](/nuget/what-is-nuget) package. This means updates can be released out-of-sync with Windows and Visual Studio. As a result, the Visual Studio template you used to create your project might not reference the latest Windows App SDK NuGet package. To ensure you have the latest features and fixes, you should update your NuGet packages every time you create a new project in Visual Studio.
143+
The Windows App SDK (and WinUI, which is part of it) is distributed as a [NuGet](/nuget/what-is-nuget) package. This distribution method means updates can be released out-of-sync with Windows and Visual Studio. As a result, the Visual Studio template you used to create your project might not reference the latest Windows App SDK NuGet package. To ensure you have the latest features and fixes, update your NuGet packages every time you create a new project in Visual Studio.
144144

145145
To update the Windows App SDK NuGet package for your project:
146146

147147
* In Visual Studio, with your project loaded, select **Tools** > **NuGet Package Manager** > **Manage NuGet Packages for Solution...**.
148-
* If an update is available, it will appear on the Updates page. Check the box next to the listed update. (To include prerelease updates, check the "Include prerelease" option. To learn more about what's included in an update, see the [release notes](../windows-app-sdk/stable-channel.md).)
149-
* Click the **Update** button, then click **Apply** in the Preview changes dialog, then accept the license terms to finish installing the update.
148+
* If an update is available, it appears on the **Updates** page. Check the box next to the listed update. (To include prerelease updates, check the **Include prerelease** option. To learn more about what's included in an update, see the [release notes](../windows-app-sdk/stable-channel.md).)
149+
* Select **Update**, then select **Apply** in the **Preview changes** dialog. Accept the license terms to finish installing the update.
150150

151151
:::image type="content" source="images/hello-world/nuget-update.png" alt-text="A screenshot of the NuGet package manager in Visual Studio showing a Windows App SDK package update.":::
152152

153-
Now your project is using the latest WinUI features that are available, and it's ready for you to make it your own.
153+
Now your project uses the latest WinUI features, and it's ready for you to make it your own.
154154

155155
## Next steps
156156

157157
> [!div class="nextstepaction"]
158158
> [Complete a tutorial to create a note app with WinUI](../tutorials/winui-notes/intro.md)
159159

160-
* To get an idea of what WinUI has to offer, check out the WinUI Gallery app.
160+
* To get an idea of what WinUI offers, check out the WinUI Gallery app.
161161
[!INCLUDE [winui-3-gallery](../../includes/winui-3-gallery.md)]
162162
* Learn more about [WinUI fundamentals](../develop/index.md).
163163
* Explore [Fluent Design](../design/index.md) principles.

0 commit comments

Comments
 (0)