Skip to content

Commit 0a4f7de

Browse files
committed
Merged main into live
2 parents d20c907 + 367c9a5 commit 0a4f7de

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

hub/apps/desktop/modernize/desktop-to-uwp-enhance.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,17 @@ This option is supported only in projects that use .NET 6 (or later) and target
4545
* **net6.0-windows10.0.17763.0**: If your app targets Windows 10, version 1809.
4646
* **net6.0-windows10.0.18362.0**: If your app targets Windows 10, version 1903.
4747
* **net6.0-windows10.0.19041.0**: If your app targets Windows 10, version 2004.
48-
* **net6.0-windows10.0.22000.0**: If your app targets Windows 11.
48+
* **net6.0-windows10.0.22000.0**: If your app targets initial release of Windows 11.
49+
* **net6.0-windows10.0.22621.0**: If your app targets Windows 11, version 22H2.
50+
* **net6.0-windows10.0.26100.0**: If your app targets Windows 11, version 24H2.
4951

5052
For example, the following element is for a project that targets Windows 10, version 2004.
5153

5254
```xml
5355
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
5456
```
5557

56-
In later versions of .NET, you can replace the value with the relevant version, for example **net6.0-windows10.0.19041.0**.
58+
In later versions of .NET, you can replace the value with the relevant version, for example **net8.0-windows10.0.19041.0**.
5759

5860
3. Save your changes and close the project file.
5961

@@ -131,6 +133,9 @@ If your project multi-targets .NET 6 (or later) and earlier versions (including
131133
* **net6.0-windows10.0.17763.0**: If your app targets Windows 10, version 1809.
132134
* **net6.0-windows10.0.18362.0**: If your app targets Windows 10, version 1903.
133135
* **net6.0-windows10.0.19041.0**: If your app targets Windows 10, version 2004.
136+
* **net6.0-windows10.0.22000.0**: If your app targets initial release of Windows 11.
137+
* **net6.0-windows10.0.22621.0**: If your app targets Windows 11, version 22H2.
138+
* **net6.0-windows10.0.26100.0**: If your app targets Windows 11, version 24H2.
134139
* For .NET Core 3.x, use **netcoreapp3.0** or **netcoreapp3.1**.
135140
* For .NET Framework, use **net46**.
136141

hub/apps/windows-app-sdk/use-windows-app-sdk-in-existing-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you have a desktop project in which you want to use the Windows App SDK, then
2626
1. Open an existing project in Visual Studio.
2727

2828
> [!NOTE]
29-
> If you have a C# desktop project, then make sure that the **TargetFramework** element in the project file is set to a Windows 10-specific moniker (such as **net6.0-windows10.0.19041.0**) so that you can call Windows Runtime APIs. For more info, see [Call Windows Runtime APIs in desktop apps](../../apps/desktop/modernize/desktop-to-uwp-enhance.md#net-6-and-later-use-the-target-framework-moniker-option). Additionally, you must be targeting **18362** or later, since there's a known issue blocking apps that target **17763** (see [Build errors when using TFM of 17763](https://github.com/microsoft/WindowsAppSDK/issues/921) on GitHub).
29+
> If you have a C# desktop project, then make sure that the **TargetFramework** element in the project file is set to a Windows 10-specific moniker (such as **net6.0-windows10.0.19041.0**) so that you can call Windows Runtime APIs. For more info, see [Call Windows Runtime APIs in desktop apps](../../apps/desktop/modernize/desktop-to-uwp-enhance.md#net-6-and-later-use-the-target-framework-moniker-option).
3030
3131
2. Make sure that [package references](/nuget/consume-packages/package-references-in-project-files) are enabled:
3232

0 commit comments

Comments
 (0)