Installing Tools (Mac)
This guide covers all the necessary tools required to author Rhino plugins on Mac.
By the end of this guide, you should have all the tools installed necessary for authoring, building, and debugging C# .NET plugins using RhinoCommon in Rhino for Mac.
This guide presumes you have an:
Xcode is Apple’s development platform and IDE. Though it is not absolutely required that you install Xcode in order to build, debug, and run C# plugins using RhinoCommon, it is recommended that you do. In short: the Visual Studio for Mac works best with Xcode installed.
- Xcode is free in the Mac App Store. Click the View in Mac App Store button.
- Click the Get > Install App button underneath the Xcode icon.
- You will be prompted for your Apple ID (required to download apps on the App Store).
- Xcode is large download - nearly 2.6 GB in size. You can monitor the progress of the download in Launchpad. When Xcode is finished downloading an installing, it will be your /Applications folder.
- Launch Xcode. On initial launch, Xcode will install some additional components.
- Quit Xcode.
Install Visual Studio for Mac
Visual Studio for Mac (formerly Xamarin Studio, formerly MonoDevelop) is required to build RhinoCommon plugins on macOS. The core components of the Mono platform that are required are the Mono Framework and Visual Studio for Mac. Please check out the What are Mono and Xamarin? guide for more information.
- Download Visual Studio for Mac.
- Visual Studio for Mac uses an Installer app, which downloads and installs the components that you select. Once you have downloaded the VisualStudioInstaller.dmg, double-click it to mount the disk image. Double-click the big Install Visual Studio.app icon to launch the installer.
- You must accept the Visual Studio Software License Agreement.
- Visual Studio for Mac can install the following items:
- Verify that Visual Studio + Profiler is checked and click Continue.
- If you do not have Xcode installed, the installer may prompt you. See Install Xcode above.
- The installer downloads and installs: Mono Framework and Visual Studio for Mac
- When the installer is finished, click the Launch Visual Studio button.
- Visual Studio - along with the Mono Framework and Profiler are now installed.
- Visual Studio is installed in your /Applications folder. You will want to drag its icon to your Dock for future use or - if it’s running - right/option-click the icon in the Dock and select Keep in Dock.
Install the RhinoCommon Extension
The RhinoCommon AddIn/Extension is required to debug your plugin code in an active session of Rhino for Mac. Additionally, it contains project templates to get you started creating plugins quickly.
- Visit the AddIn’s GitHub releases page and find the Latest release in the list of releases.
- Download the .mpack file in the list of Downloads on that release. For example, at the time of this writing, the Latest release download is entitled RhinoXamarinStudioAddIn_220.127.116.11.mpack.
- Launch Visual Studio for Mac if it not already open.
- Navigate to Visual Studio > Extensions……
- Click the Install from file… button in the lower left-hand corner.
- Navigate to the .mpack file you downloaded in step 2 above.
- Click Install. The plugin should install.
- IMPORTANT: You must Quit and Restart Visual Studio for Mac.
- Navigate to Extensions Studio > Add-ins.. > Installed tab. Verify that RhinoCommon Plugin Support exists under the Debugging category. If it’s there, you have successfully installed the Extension and you are DONE.
Congratulations! You have all the tools necessary to build a RhinoCommon plugin for Rhino for Mac. Now what?
Check out the Your First Plugin (Mac) guide for instructions building - your guessed it - your first plugin.
Xamarin.Android is used to build C# .NET applications for Android devices. This is useful to have installed if you wish to use the RhinoMobile toolkit, but not required for RhinoCommon in Rhino for Mac. ↩
Xamarin.iOS is used to build C# .NET applications for Apple iOS devices. This is useful to have installed if you wish to use the RhinoMobile toolkit, but not required for RhinoCommon in Rhino for Mac. ↩
Xamarin.Mac is Xamarin’s proprietary closed-source toolkit build on the open-source MonoMac (aka Mono for macOS). Xamarin.Mac provides a commercial license of Mono, bindings to additional frameworks, and the ability to create self-contained application bundles that do not require mono. Rhino for Mac does not currently use Xamarin.Mac. ↩