Why this fatal error when I try to build my project ?

UnityException: Build path contains project built with “Create Visual Studio Solution” option, which is incompatible with current build settings. Consider building your project into an empty directory.
UnityEditor.WindowsStandalone.WindowsDesktopStandalonePostProcessor.CheckSafeProjectOverwrite (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/WinPlayer/Extensions/Managed/WindowsDesktopStandalonePostProcessor.cs:58)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/DesktopStandalonePostProcessor.cs:43)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Deleting the .sln file from the folder’s project worked for me.
,Deleting the .sln file in your project’s folder worked for me