6
votes

I installed .NET Core 3 Runtime and SDK Preview 9 today to make a WPF application. However, when I try to create it, I get the following error: "To create this project type, go to Tools | Options | Environment | Preview Features and check "Use previews of the .NET Core SDK" (similar to Cannot create a WPF .NET core application)

Te only problem is that I have this feature enabled, and I restarted the computer as it suggests, but I still get the same error message.

I have Visual Studio 2019 installed with SDK 3.0.100-preview9 and Runtime 3.0.0-preview9, running on Windows 10.

1
I can reproduce your issue. In the meantime, you can create a new WPF project that targets .NET Core from a Visual Studio Command Prompt using the dotnet new wpf command.mm8
Thanks, it works from the command line.Annosz
Or you can refer this: How to: Port a WPF desktop app to .NET CoreYohann

1 Answers

3
votes

Had the exact issue. What worked for me was to update Visual Studio 2019 (was a couple of updates behind). Confirmed it works on v.16.3.0