If you want to create only the solution file for your exsisting project in VS code then use command dotnet new sln --name yourProjectName
dotnet new sln --name yourProjectName