Skip to content

Commit c6d5fe5

Browse files
authored
Update WPF tutorial with target framework guidance (#36227)
1 parent d25d66b commit c6d5fe5

File tree

1 file changed

+13
-0
lines changed
  • aspnetcore/blazor/hybrid/tutorials

1 file changed

+13
-0
lines changed

aspnetcore/blazor/hybrid/tutorials/wpf.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ At the top of the project file, change the SDK to `Microsoft.NET.Sdk.Razor`:
6464
<Project Sdk="Microsoft.NET.Sdk.Razor">
6565
```
6666

67+
:::moniker range=">= aspnetcore-10.0"
68+
69+
In the project file's existing `<TargetFramework>` property, add a Windows 10 or later version number:
70+
71+
```xml
72+
<TargetFramework>net10.0-windows10.0.17763.0</TargetFramework>
73+
```
74+
75+
> [!NOTE]
76+
> The preceding guidance on setting the project's target framework version to target Windows 10 or later is a result of switching to the `WebView2CompositionControl` with the release of .NET 10.
77+
78+
:::moniker-end
79+
6780
<!--
6881
The following is a workaround for https://github.com/dotnet/wpf/issues/5697 (fixes https://github.com/dotnet/maui/issues/3526).
6982
Additional open issue on it: https://github.com/dotnet/maui/issues/5861

0 commit comments

Comments
 (0)