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.
- Download this gist as a zip file.
- Extract the file to
\Documents\WindowsPowerShell\Modules\Open-Solution
. - 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>
- Profit!
- Run
Install-Module -Name WhatsNew
. https://github.com/refactorsaurusrex/whats-new - Type
sln
. - Profit!
I stumbled on this today and just wanted to say thanks for creating this! I usually type
*.sln
or**\*.sln
and tab, but to be honest that's a bit of finger gymnastics and this is much simpler (though a bit slower to run).