nam
nam

Reputation: 23868

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

Upvotes: 11

Views: 5919

Answers (2)

Marek Pio
Marek Pio

Reputation: 127

If someone wants to create WPF project that uses .NET (core) 6.0 since 2023 then you need to install .NET Framework 3.5 in Visual Studio Installer enter image description here Example of usage:

  • to generate .appinstaller that is broken in MAUI project.

Upvotes: 0

mm8
mm8

Reputation: 169390

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

Upvotes: 20

Related Questions