Update WPF tutorial with target framework guidance#36227
Update WPF tutorial with target framework guidance#36227guardrex merged 3 commits intodotnet:mainfrom
Conversation
Added guidance for setting the target framework version to Windows 10 in WPF project files.
|
@mattleibow ... Thanks! Reminder ... We need an issue for any PR here that isn't a patch change. The best way to open an issue is from the bottom of the article using the Open a documentation issue link because it adds tracking metadata to the issue. I'll open the issue for this one, so don't sweat it. I just mean for future PRs here. I'll take a look at this first thing tomorrow, Friday, morning. If you need me to add technical reviewers, let me know who to add. UPDATE: Done! The issue is open. We're good! |
Co-authored-by: Beth Massi <bethma@microsoft.com>
There was a problem hiding this comment.
@mattleibow @BethMassi ... Mirroring my remark below: This isn't the way that we handle versioning new API in project templates for tutorials. If this is a migration issue, then it would be for the migration article (possibly for the What's New article if we'd speak to the new control as a new feature/offering). An app generated from the .NET 10 template will have the correct TFM, and this article makes no mention of this control ... and our tutorials never cover migration aspects. AFAICT, this PR isn't needed and should be closed.
| In the project file's existing `<TargetFramework>` property, add a Windows 10 version number: | ||
|
|
||
| ```xml | ||
| <TargetFramework>net10.0-windows10.0.17763.0</TargetFramework> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
@guardrex this isn't a migration issue, this is how you implement Blazor hybrid in WPF apps starting with .NET 10. If you are targeting .NET 10 in your WPF apps, you need to also update to target to Windows 10 or later. Blazor hybrid for WPF apps in .NET 10 do not support Windows 7, which is what the default WPF template sets you up with (because that's allowed if you aren't using Blazor hybrd). |
|
I think I'm catching on here! 💡 You're saying that they do need to make this change ........ - <TargetFramework>net10.0-windows</TargetFramework>
+ <TargetFramework>net10.0-windows10.0.17763.0</TargetFramework>I thought that that change wouldn't matter after GA ... that it would only need to target
Sorry for the trouble!!!!! My 🧠 is totally fried out from a total overhaul of our Configuration article this week. I'll make the text suggestions now, and we can get this wrapped up and merged. |
guardrex
left a comment
There was a problem hiding this comment.
Ok ..... now that I understand what's going on 🧠🔥🙈😆, see if my suggestions make sense.
guardrex
left a comment
There was a problem hiding this comment.
Thanks @mattleibow and @BethMassi! Have a great weekend! 🌞
[EDIT by guardrex to add the issue]
Fixes #36228
This pull request updates the Blazor Hybrid WPF tutorial to include new guidance for targeting Windows 10 when using the latest
WebView2CompositionControl. The change ensures compatibility with recent platform requirements.Platform targeting update:
<TargetFramework>property tonet10.0-windows10.0.17763.0in the project file for projects usingMicrosoft.NET.Sdk.Razor, specifically for ASP.NET Core 10.0 and later.WebView2CompositionControl.Internal previews