Rather than navigating around Windows explorer, looking for that pesky .sln
file you want to open, why not just open in from your command line? This module allows you to type sln
from your PowerShell terminal window to open the first .sln
file found within the current directory or any of its children. This also works with atsln
(Atmel Studio) solution files.
- Download this gist as a zip file.
- Extract the file to
\Documents\WindowsPowerShell\Modules\Open-Solution
for PowerShell or\Documents\PowerShell\Modules\Open-Solution
for PowerShell Core. - Restart PowerShell.
- Navigate to a directory that contains a Visual Studio solution file and type
sln
. - Alternatively, type
sln <PATH_TO_DIRECTORY_CONTAINING_VS_SOLUTION_FILE_AT_ANY_DEPTH>