NETSDK1137: Don't use the Microsoft.NET.Sdk.WindowsDesktop SDK
NETSDK1137 indicates that your project specifies an outdated project SDK. The full error message is similar to the following example:
It is no longer necessary to use the Microsoft.NET.Sdk.WindowsDesktop SDK. Consider changing the Sdk attribute of the root Project element to 'Microsoft.NET.Sdk'.
To resolve this error, modify your project file to have <Project Sdk="Microsoft.NET.Sdk">
instead of the WindowsDesktop
SDK.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.