NET 5 or later and specifies the SDK, you'll get build warning NETSDK1137. For these projects, setting TargetFramework to net5.0-windows and UseWPF or UseWindowsForms to true will automatically import the Windows desktop SDK. NET 5, Windows Forms and Windows Presentation Foundation (WPF) projects should specify the. You can also author your own SDK that can be distributed via NuGet.
The Web SDK, for example, depends on both the. NET SDK, and projects that are associated with the other SDKs have all the. NET Desktop SDK, which includes Windows Forms (WinForms) and Windows Presentation Foundation (WPF).* A project that references a project SDK is sometimes referred to as an SDK-style project. Each project SDK is a set of MSBuild targets and associated tasks that are responsible for compiling, packing, and publishing code. NET 5 and later projects are associated with a software development kit (SDK).