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:
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