29

That's it. Can this be initiated two times to open two separated solutions at the same time?

Lex Li
  • 60,503
  • 9
  • 116
  • 147
martyndev
  • 465
  • 4
  • 5
  • Spent not 30 sec, maybe a little more time then I asked. Thanks Ken for your comment. – martyndev Nov 20 '16 at 03:43
  • 3
    I think this is a reasonable question, it's not obvious you can do this via the IDE in an obvious way unless you navigate to the solution file. The IDE offers you short cuts (e.g. recent solutions) that steer you away from that. – compound eye Mar 13 '17 at 03:29

5 Answers5

50

By default an .app runs as a single instance/single document mode, its the Cocoa way of life and MonoDevelop/Xamarin Studio/Visual Studio for Mac follow that paradigm.

From the cmd line:

Open a solution in an existing running instance or starts the first instance:

open MySolution.sln

Open a solution in a new instance of the application:

open -n MySolution.sln

-n = Open a new instance of the application(s) even if one is already running.

GUI-based:

From @TomGilder comment:

MS Solution Launcher

Ref: https://github.com/Redth/MSSolutionLauncher

SushiHangover
  • 73,120
  • 10
  • 106
  • 165
25

You can do this in the IDE when an existing solution is open by deselecting Close current workspace when you open the solution through the File -> Open menu:

enter image description here

enter image description here

matthewrdev
  • 11,930
  • 5
  • 52
  • 64
15

Open terminal and run the command:

open -n -a "Visual Studio"
Bugs
  • 4,491
  • 9
  • 32
  • 41
6

As a short cut I create a simple automator application that runs a bash script to open a new instance. You can do this with most Apps.

open -n /Applications/Visual\ Studio.app

Automator Menu choose Application

Automator Shell script inside application

When done save your automator application I usually call it "VSMac Clone" and give it a funky icon.

You can use the one I created at your own risk VSMac Clone

Kodejack
  • 441
  • 4
  • 7
2
  1. First, open your first solution
  2. go to files and then recent solution then find your solution
  3. ctrl+tick on that solution you want to open