If like me, you like to play as much as possible with the command lines and you want to launch Visual Studio with the file with the extension sln in the current directory. sln.launcher is the solution.
A dotnet tools allows you to launch Visual Studio with a .sln file in the current directory. In the case of several available files, the user is asked to select one.
In order to use this tool, you must have the .NET Core SDK 2.1+. You can install the tool by running the following line.
dotnet tool install --global sln.launcher --version 1.1.1
You are in command prompt, you want to launch Visual Studio but you don't want to type the name of the complete file
sln is THE solution:
sln
Visual Studio will launch itself and open the solution of the current folder.
In case there is no file with the extension sln, an error will be presented to you.
In case you have more than one file with the extension sln in the folder, the program will ask you to choose which one you want to open.
In order to use this dotnet tools, you must have installed on your computer:
And finally, you must have the.sln extensions which have as default program Visual Studio.