You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/apps/get-started/start-here.md
+48-5Lines changed: 48 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Get started with Windows development using WinUI
3
3
description: List of steps to get started developing Windows apps with WinUI and the Windows App SDK.
4
4
ms.topic: how-to
5
-
ms.date: 08/19/2024
5
+
ms.date: 03/24/2025
6
6
keywords: windows, desktop development
7
7
ms.localizationpriority: medium
8
8
ms.collection: windows11
@@ -72,7 +72,6 @@ On the **Workloads** tab of the Visual Studio Installer app, select the followin
72
72
73
73
---
74
74
75
-
76
75
## 3. Create and launch your first WinUI app
77
76
78
77
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.
@@ -87,14 +86,56 @@ To create a new project using the WinUI C# Blank App project template:
87
86
88
87
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\`:
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.
115
+
116
+
1. Double-click `MainWindow.xaml.cs` in **Solution Explorer** to open it.
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**.
137
+
138
+
## 5. Update to the latest WinUI/Windows App SDK
98
139
99
140
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.
100
141
@@ -110,7 +151,9 @@ Now your project is using the latest WinUI features that are available, and it's
110
151
111
152
## Next steps
112
153
113
-
* Complete a tutorial to [add more code to your Hello World app](../how-tos/hello-world-winui3.md).
154
+
> [!div class="nextstepaction"]
155
+
> [Complete a tutorial to create a note app with WinUI](../tutorials/winui-notes/index.yml)
156
+
114
157
* To get an idea of what WinUI has to offer, check out the WinUI Gallery app.
0 commit comments