Getting started
Installing Visual Studio is a piece of cake once the virtual machine is set up. I simply downloaded the latest release from MSDN and let the installer run. If you use an Apple Magic Mouse (as I do), Visual Studio tends to be overly eager to zoom the text size in and out as you swipe your finger over the mouse. Visual Studio Code for Mac is a lightweight, yet powerful source code editor that runs from your Mac desktop. It comes with built-in support for JavaScript, TypeScript and Node.js and has a varied array of extensions available for other languages, including C, C#, Python, and PHP.
If you're just getting started withRust and would like a more detailed walk-through, see ourgetting started page.
Windows considerations
Install Visual Studio Code Mac
On Windows, Rust additionally requires the C++ build tools for Visual Studio 2013 or later. The easiest way to acquire the build tools is by installing Microsoft Visual C++ Build Tools 2019 which provides just the Visual C++ build tools. Alternately, you can install Visual Studio 2019, Visual Studio 2017, Visual Studio 2015, or Visual Studio 2013 and during install select the “C++ tools.”
For further information about configuring Rust on Windows see the Windows-specific rustup
documentation.
Toolchain management with rustup
Rust is installed and managed by the rustup
tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. rustup
manages these builds in a consistent way on every platform that Rust supports, enabling installation of Rust from the beta and nightly release channels as well as support for additional cross-compilation targets.
If you've installed rustup
in the past, you can update your installation by running rustup update
.
For more information see the rustup
documentation.
Configuring the PATH
environmentvariable
In the Rust development environment, all tools are installed to the ~/.cargo/bin
%USERPROFILE%.cargobin
directory, and this is where you will find the Rust toolchain, including rustc
, cargo
, and rustup
.
Accordingly, it is customary for Rust developers to include this directory in their PATH
environment variable. During installation rustup
will attempt to configure the PATH
. Because of differences between platforms, command shells, and bugs in rustup
, the modifications to PATH
may not take effect until the console is restarted, or the user is logged out, or it may not succeed at all.
If, after installation, running rustc --version
in the console fails, this is the most likely reason.
Uninstall Rust
If at any point you would like to uninstall Rust, you can run rustup self uninstall
. We'll miss you though!
To start developing native, cross-platform .NET apps on macOS, install Visual Studio 2019 for Mac following the steps below.
Requirements
- A Mac with macOS High Sierra 10.13 or above.
To build Xamarin apps for iOS or macOS, you'll also need:
- A Mac that is compatible with the latest version of Xcode. See Apple's minimum requirements documentation
- The latest version of Xcode. It may be possible to use an older version of Xcode if your Mac is not compatible with the latest version.
- An Apple ID. If you don't have an Apple ID already you can create a new one at https://appleid.apple.com. It's necessary to have an Apple ID for installing and signing into Xcode.
Installation instructions
Download the installer from the Visual Studio for Mac download page.
Once the download is complete, click the VisualStudioforMacInstaller.dmg to mount the installer, then run it by double-clicking the arrow logo:
You may be presented with a warning about the application being downloaded from the Internet. Click Open.
Wait while the installer checks your system:
An alert will appear asking you to acknowledge the privacy and license terms. Follow the links to read them, then press Continue if you agree:
The list of available workloads is displayed. Select the components you wish to use:
If you do not wish to install all platforms, use the guide below to help you decide which platforms to install:
Type of App Target Selection Notes Apps Using Xamarin Xamarin.Forms Select Android and iOS platforms You will need to install Xcode iOS only Select iOS platform You will need to install Xcode Android only Select Android platform Note that you should also select the relevant dependencies Mac only Select macOS (Cocoa) platform You will need to install Xcode .NET Core applications Select .NET Core platform. ASP.NET Core Web Applications Select .NET Core platform. Azure Functions Select .NET Core platform. Cross-platform Unity Game Development No additional platforms need to be installed beyond Visual Studio for Mac. Refer to the Unity setup guide for more information on installing the Unity extension. After you have made your selections, press the Install button.
The installer will display progress as it downloads and installs Visual Studio for Mac and the selected workloads. You will be prompted to enter your password to grant the privileges necessary for installation.:
Once installed, Visual Studio for Mac will prompt you to personalize your installation by signing in and selecting the key bindings that you'd like to use:
If you have network trouble while installing in a corporate environment, review the installing behind a firewall or proxy instructions.
Learn more about the changes in the release notes.
Note
If you chose not to install a platform or tool during the original installation (by unselecting it in step #6), you must run the installer again if you wish to add the components later.
Install Visual Studio for Mac behind a firewall or proxy server
To install Visual Studio for Mac behind a firewall, certain endpoints must be made accessible in order to allow downloads of the required tools and updates for your software.
Configure your network to allow access to the following locations:
Next steps
Installing Visual Studio for Mac allows you to start writing code for your apps. The following guides are provided to guide you through the next steps of writing and deploying your projects.
iOS
- Device Provisioning(To run your application on device).
Android
Xamarin.Forms
Build native cross-platform applications with Xamarin.Forms:
Visual Studio For Mac Download
.NET Core apps, ASP.NET Core web apps, Unity game development
For other Workloads, refer to the Workloads page.