Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2019 update 18.2 missing "WPF App .NET Core" project template

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.

enter image description here

or

enter image description here

My Visual Studio Installer Workloads:

enter image description here

like image 283
nam Avatar asked Dec 02 '20 15:12

nam


People also ask

Is WPF still relevant 2022?

“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.

Does .NET core supports WPF?

Compatibility package helps in most . NET Core 3.0 WPF and WinForms porting scenarios. After adding the NuGet reference to Microsoft.


1 Answers

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

like image 182
mm8 Avatar answered Oct 17 '22 23:10

mm8