user2148124
user2148124

Reputation: 970

Unable to open WPF solution in Visual studio 2019

I am trying to open a WPF solution with Visual Studio 2019 but getting an error message "Project file can not be loaded"

In Detailed Information section, I can see the below message.

C:\Program Files\dotnet\sdk\2.2.402\Sdks\Microsoft.NET.Sdk.WindowsDesktop\Sdk not found. Check that a recent enough .NET Core SDK is installed and/or increase the version specified in global.json.

I have already installed SDK 2.2.402 but WindowsDesktop is missing in it. Can anyone please help me to resolve this issue?

Upvotes: 1

Views: 737

Answers (1)

mm8
mm8

Reputation: 169150

WindowsDesktop including WPF is supported in .NET Core 3.x and onwards so you should download the 3.1.300 SDK from here.

.NET Core 2.2 doesn't support WPF.

Upvotes: 2

Related Questions