Skip to content

Open a solution in Visual Studio by specifying the folder containing the solution file

License

Notifications You must be signed in to change notification settings

sboulema/VSLauncher

Repository files navigation

VSLauncher

Simple Visual Studio launcher designed to work with RepoZ or GitHub Desktop

VSLauncher Sponsor

Features

  • Open a solution file from the specified directory in Visual Studio
  • Open a project file from the specified directory in Visual Studio
  • Open the specified directory in Visual Studio

Usage

CLI

VSLauncher.exe <directory> [options]

Name Parameter Required Example Description
Directory yes D:\Repos\VSLauncher Directory in which to open solution/project/directory
Version --vs-version, -v no 2017, 2019, 2022 The version of Visual Studio to launch
Prerelease --prerelease, -p no The release channel of Visual Studio to launch
Interactive --interactive, -i no Interactively choose which version of Visual Studio to launch
Recursive --recursive, -r no Recursively search for a solution or project in the given directory and its children
Help --help, -h, -? no Show help

RepoZ

To use VSLauncher to quickly open a Visual Studio solution using RepoZ edit the RepositoryActions.json file, by adding the following json block to the repository-actions array

{
    "name": "{OpenIn} Visual Studio",
    "executables": [ '<path to VSLauncher>/VSLauncher.exe' ],
    "arguments": '"{Repository.SafePath}"',
    "active": "true"
},

No permissions to run an unsigned executable? You can setup a basic version of VSLauncher using Powershell

{
    "name": "{OpenIn} Visual Studio",
    "command": 'pwsh',
    "arguments": '-workingdirectory "{Repository.SafePath}" -command "Join-Path -Path . -ChildPath *.sln | Invoke-Item"',
    "active": "true"
},

Read more about custom repository actions at the RepoZ Community Repository Actions GitHub.

Links

About

Open a solution in Visual Studio by specifying the folder containing the solution file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages