I know this is a duplicate question. But I have tried every mentioned solution and didn't get resolved.
I have a dotnet c# application. when I run the application I got the below-mentioned error
The current .NET SDK does not support targeting .NET 6.0. Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0.
All the following solutions I have tried
- Download and install the dotnet-SDK-6.0.300 version.
- Updated the VS-2019 and checked the " Use preview of the .NET SDK (required restart)
Windows Edition: Windows 11
Still, it's not working. Got the same error. Help me out of this.