For extensions like .sln
or .csproj
, the default application is Microsoft Visual Studio Version Selector. I\'ve got two versions installed
The .sln file must be a UTF-8-BOM file and it must start like this:
[blank line]
Microsoft Visual Studio Solution File, Format Version XX.XX[XXX...]
[description]
The [description]
is for example # Visual Studio Express 2012 for Windows Desktop
for VS 2012 or # Visual Studio 15
for VS 2017.
The second line is case sensitive but the third line (description
) is not. If it is missing, the Selector seems to start the latest VS.
The VisualStudioVersion
entry is ignored.
However, for the right file icon to be displayed, the [description]
has to be exact and case sensitive.