Before updating VS2019
to version 18.2
, I was creating WPF Core
projects by selecting built-in template WPF (.NET Core)
. But now this template is missing. What I see are something like the ones shown below. I have not made any changes to the VS2019
except automated updates (like 18.2 this week). My Visual Studio installer (shown below) shows the workloads I have installed. Question: Why the WPF .NET Core
template is missing? in the project creation start page, and can it be brought back?
Remark: I see similar issue posted here with no resolution.
or
My Visual Studio Installer Workloads:
“WPF would be dead in 2022 because Microsoft doesn't need to be promoting non-mobile and non-cloud technology. But WPF might be alive in that sense if it's the best solution for fulfilling specific customer needs today. Therefore, having a hefty desktop application needs to run on Windows 7 PCs with IE 8.
Compatibility package helps in most . NET Core 3.0 WPF and WinForms porting scenarios. After adding the NuGet reference to Microsoft.
Because ".NET" (5) is the main implementation going forward. It is the successor of .NET Core 3.1 and apparently "Core" has been removed from the name of the templates. Now it's just .NET or (the legacy) .NET Framework.
You can set the <TargetFramework>
property in the .csproj
file to either net5.0-windows
or netcoreapp3.1
depending on whether you want to target .NET 5 or .NET Core 3.1.
.NET Core 3.1 is a Long Term Support (LTS) release and .NET 5 is a Current release: https://dotnet.microsoft.com/platform/support/policy/dotnet-core
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With