Error that Radzen doesn't recognizes Microsoft .NET 6.0 SDK

I have already reinstalled Radzen and Microsoft .NET 6.0 SDK, and Radzen, when I try to create a new project, it always asks to install Microsoft .NET 6.0 SDK.

Why?

How can I fix it?

What will happen if you type dotnet —version in your console?

It said that it was't installed and I installed a newer version and this message continues:
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:

  • You intended to execute a .NET program:
    The application '-version' does not exist.
  • You intended to execute a .NET SDK command:
    It was not possible to find any installed .NET SDKs.
    Install a .NET SDK from:
    .NET Downloads (Linux, macOS, and Windows)

If .NET CLI does not work the framework is not installed properly.