How to generate .sln files manually in Unity

I'm using git with a Unity project of mine. I'm working on my home machine and also on one at school.
I started it at home and it works perfectly on my machine.
Once I cloned it at school it opened fine and everything still worked. Only problem was VS did not generate a project. At home I have 2019 and school has 2017.

If I generate a new Unity Project at school it has the .sln and I can open it using Assets -> Open C# Project. There is no such project generated when opening the cloned project.
I need get around this as it's near impossible for me to code efficiently at school.
Because it is an EDU machine I have very limited access to certain things. Can I create a project by hand or run a command to generate one?

I was able to get around this.
First I looked up VS in the start menu and clicked "Open File Location" which lead me to a shortcut to the school server. Then I made a link to that link on my desktop.
In Unity went to preferences and set the default editor to that like. Then I opened a .cs file and it generated the solution.

On my machine it opened ALL of Unity's code as seperate projects in one big solution which doesn't bug me.
On another computer it only opened the scripts written by us.
Unsure which it will normally do but it solved the situation.

Well you can create a solution from a console with the dotnet SDK:

dotnet new sln

dotnet sln <SLN_FILE> add <PROJECT_PATH>
(Of course you need to replace the <SLN_FILE> and <PROJECT_PATH>).