Cannot create C++ blank project UE5

Running E:/Unreal/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“E:/program/week1/MyProject3/MyProject3.uproject” -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“E:/program/week1/MyProject3/MyProject3.uproject” -game -rocket -progress
Log file: C:\Users\SREE\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

Generating VisualStudio project files:
Discovering modules, targets and source code for project…
Visual Studio 2019 does not support .NET 6.0 C# projects, these projects will not be added to the generated solution.
Please generate the Visual Studio 2022 solution if .NET 6.0 C# project support is required.
Microsoft platform targets must be compiled with Visual Studio 2022 17.4 (MSVC 14.34.x) or later for the installed engine. Please update Visual Studio 2022 and ensure no configuration is forcing WindowsTargetRules.Compiler to VisualStudio2019. The current compiler version was detected as: 14.29.30153 when creating an blank project with c++ i get this error. But i can create other projects and blank projects with blueprint

Read error message, it has your answer.

I downloaded visual studio 2022 error message says download visual studio 2019 to create project

delete old .sln file (it was made in 2019). And create new one with 2022 VS.

Make sure it is made in new 2022 one, msvc sometimes is stubborn and keeps doing it with old version.

Then all should work.