Last active
May 22, 2019 13:00
-
-
Save glucaci/7c99fec4a63e0e05eef2bd71741a2de3 to your computer and use it in GitHub Desktop.
Revisions
-
glucaci revised this gist
May 22, 2019 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ # This function can be places in C:\Users\<YourUser>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 function s { $solutionFiles = Get-ChildItem -Path .\ -Filter *.sln -Recurse -
glucaci revised this gist
May 22, 2019 . 1 changed file with 15 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,15 +3,26 @@ function s { $solutionFiles = Get-ChildItem -Path .\ -Filter *.sln -Recurse if ($solutionFiles.Count -lt 1) { Write-Host "Coudn't find any solution file in the current directory." return } if ($solutionFiles.Count -lt 2) { $solutionNumber = 1 } else { For ($i=1; $i -le $solutionFiles.Count; $i++) { Write-Host $i $solutionFiles[$i-1].Name } $solutionNumber = Read-Host -Prompt 'Select solution to open' } $solutionToOpen = $solutionFiles[$solutionNumber - 1] $fullPath = Join-Path -Path $solutionToOpen.Directory.FullName $solutionToOpen.Name Write-Output "Opening $fullPath" Start-Process $fullPath } -
glucaci created this gist
May 17, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ # This function can be places in C:\Users\<YourUser>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 # and used in any directory with Visual Studio Solutions function s { $solutionFiles = Get-ChildItem -Path .\ -Filter *.sln -Recurse For ($i=1; $i -le $solutionFiles.Count; $i++) { Write-Host $i $solutionFiles[$i-1].Name } $solutionNumber = Read-Host -Prompt 'Select solution to open' $solutionToOpen = $solutionFiles[$solutionNumber - 1] $fullPath = Join-Path -Path $solutionToOpen.Directory.FullName $solutionToOpen.Name Write-Output "Opening $fullPath" ii $fullPath }