Background I have been experimenting with unity, hololens and managing them with git, and something curious happened to me. So far every time I create a unity project I got a visual studio solution and a project file. Every time. But once I introduce git to manage them, these files are ignored (they are in the .gitignore file that for example github generates for unity projects).
So what I did was the following:
- I created a unity project
- I added git to it
- After an initial commit, I pushed into github
- The github archive -as expected- ignored any visual studio solution or project file(Only assets and project settings there)
- To experiment, I downloaded the project from github
- I opened that with Unity.
As expected Unity rebuild many of the folders that had been ignored by the .gitignore file but it did not rebuild the solution file
This was the first time I have seen a unity project without a solution file. Nevertheless I built it and it worked well (it was for hololens)
However it bug me still, so as written in this answer I found a way to recover the visual studio solution file (and the project file)
The question
What for is the visual studio solution file (and the project) for a Unity project. It certainly didn't need it And the question that was not answered in the linked question: why does this happen??