How can I launch multiple instances of MonoDevelop

2019-01-29 19:24发布

I would like to open a new MonoDevelop instance to work on a different project on the Mac, and the OS is currently preventing me from opening a new instance.

10条回答
迷人小祖宗
2楼-- · 2019-01-29 20:07

If you're ok with opening two solutions in one instance of Xamarin Studio, you can do this by navigating to "File" -> "Recent Solutions" and then Ctrl+clicking on the other solution. This opens both solutions in the same instance of Xamarin studio.

查看更多
地球回转人心会变
3楼-- · 2019-01-29 20:11

Just Open the Terminal write or below command , you can change instance name number e.g(/Xamarin\ Studio1) it's open another one Xamarin Studio , e.g(/Xamarin\ Studio1)

$ open -na /Applications/Xamarin\ Studio.app --args -DataPath /Users/$(whoami)/Library/Application\ Support/Xamarin\ Studio1

Using above you can create any of .app multiple instance .

查看更多
叛逆
4楼-- · 2019-01-29 20:13

Using the shell to enter the command as others have described to launch an extra instance is fine, but I prefer having an icon on the dock that I can just click.

It's easy to do:

  1. Open AppleScript Editor and enter the following:

    do shell script "open -n /Applications/MonoDevelop.app/"

  2. Save with a name like "MonoDevelop Launcher" and make sure to specify Application for the file format.

  3. Drag the icon to your dock.

  4. Make sure to check out bright's comment below about replacing the generic icon with MonoDevelop's.

Click repeatedly to enjoy the grooviness of multiple MonoDevelop instances.

查看更多
闹够了就滚
5楼-- · 2019-01-29 20:15

You can check out this app by redth (now a Xamarin employee) who made a Xamarin Studio Launcher: http://redth.codes/Xamarin-Studio-Launcher-v3/. There is no code to post since it is an app. But the good thing is it is packaged up in a .dmg for you. It even works with .sln files. Hard link to the v4 (Jan 12, 2015) download: http://redth.codes/assets/Xamarin.Studio.Launcher.v4.zip.

查看更多
▲ chillily
6楼-- · 2019-01-29 20:18

Edit your ~/.bashrc or ~/.zshrc and configure the following shortcut:

alias xam = 'open -n /Applications/Xamarin\ Studio.app'

Use as follows from the CLI:

xam ReactiveUI.sln
查看更多
唯我独甜
7楼-- · 2019-01-29 20:23

Also you can use shorter version:

Open -n -a "Xamarin Studio.app"

Edit: For Visual Studio for Mac and/or more shorter the command is

Open -n -a "Visual Studio"
查看更多
登录 后发表回答