Unreal Engine doesn't generate .sln file when creating a new project.

I’ve built 4.27.2 engine with Visual Studio 2019 and Windows SDK 10.0.17362, I have Windows 10 as OS, The build was successful but when I create a C++ project the .sln doesn’t get generated. Tried to create a blueprint project then create a C++ class from the editor, then generating visual studio project files. I don’t get any errors but the .sln doesn’t get generated still, I tried rebuilding the engine with Windows SDK 10.0.16299.0 and the problem wasn’t solved.

any suggestions ?

how about right-click on .uproject, then choose Generate Visual Studio Project files

I found the solution, delete the BuildConfigurtion.xml file and regenerate it because I added something there previously and it needed to be deleted.