try-convert
try-convert copied to clipboard
Conversion to net6.0: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF
Now after conversion to net6.0 a project contains <TargetFramework>net6.0</TargetFramework> but it should be <TargetFramework>net6.0-windows</TargetFramework>