Visual Studio On Macos



Macos

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. Microsoft also says it's 'refreshing' Visual Studio for Mac, switching to a native macOS UI to offer better performance and reliability. It will also integrate with macOS accessibility features.

-->

You can use this guide to uninstall each component in Visual Studio for Mac individually by navigating to the relevant section, or you can use the scripts provided in the Uninstall Script section to uninstall everything.

Note

This information will only remove Visual Studio 2019 or 2017 for Mac from your machine. to uninstall Visual Studio Code, see this issue for details.

Uninstall Script

There are two scripts that can be used to uninstall Visual Studio for Mac and all components for your machine:

The following sections provide information on downloading and using the scripts.

Visual Studio for Mac and Xamarin script

You can uninstall Visual Studio and Xamarin components in one go by using the uninstall script.

This uninstall script contains most of the commands that you will find in the article. There are three main omissions from the script and are not included due to possible external dependencies. To remove this, jump to the relevant section below and remove them manually:

To run the script, do the following steps:

  1. Right-click on the script and select Save As to save the file on your Mac.

  2. Open Terminal and change the working directory to where the script was downloaded:

  3. Make the script executable and the run it with sudo:

  4. Finally, delete the uninstall script and remove Visual Studio for Mac from the dock (if it's there).

.NET Core script

The uninstall script for .NET Core is located in the dotnet cli repo

Visual studio osx

To run the script, do the following steps:

  1. Right-click on the script and select Save As to save the file on your Mac.

  2. Open Terminal and change the working directory to where the script was downloaded:

  3. Make the script executable and the run it with sudo:

  4. Finally, delete the .NET Core uninstall script.

Uninstall Visual Studio for Mac

The first step in uninstalling Visual Studio from a Mac is to locate Visual Studio.app in the /Applications directory and drag it to the Trash Can. Alternatively, right-click and select Move to Trash as illustrated in the following image:

Deleting this app bundle removes Visual Studio for Mac, even though there may be other files related to Xamarin still on the file system.

To remove all traces of Visual Studio for Mac, run the following commands in Terminal:

You may also want to remove the following directory containing various Xamarin files and folders. However, before you do you should be aware that this directory contains the Android signing keys. For more information refer to the section Uninstalling Android SDK and Java SDK:

Uninstall Mono SDK (MDK)

Osx

Mono is an open-source implementation of Microsoft's .NET Framework and is used by all Xamarin Products—Xamarin.iOS, Xamarin.Android, and Xamarin.Mac to allow development of these platforms in C#.

Warning

Visual Studio On Macos X

There are other applications outside of Visual Studio for Mac that also use Mono, such as Unity.Be sure that there are no other dependencies on Mono before uninstalling it.

To remove the Mono Framework from a machine, run the following commands in Terminal:

Uninstall Xamarin.Android

Visual Studio On Macos Catalina

There are a number of items required for the installation and use of Xamarin.Android, such as the Android SDK and Java SDK.

Use the following commands to remove Xamarin.Android:

Uninstall Android SDK and Java SDK

The Android SDK is required for development of Android applications. To completely remove all parts of the Android SDK, locate the file at ~/Library/Developer/Xamarin/ and move it to Trash.

Warning

You should be aware that Android signing keys that are generated by Visual Studio for Mac are located in ~/Library/Developer/Xamarin/Keystore. Make sure to back these up appropriately, or avoid removing this directory if you wish to keep your keystore.

The Java SDK (JDK) does not need to be uninstalled, as it is already pre-packaged as part of Mac OS X / macOS.

Uninstall Android AVD

Warning

There are other applications outside of Visual Studio for Mac that also use Android AVD and these additional android components, such as Android Studio.Removing this directory may cause projects to break in Android Studio.

Macos

To remove any Android AVDs and additional Android components use the following command:

To remove only the Android AVDs use the following command:

Uninstall Xamarin.iOS

Xamarin.iOS allows iOS application development using C# or F# with Visual Studio for Mac.

Visual Studio Macos Python

Use the following commands in Terminal to remove all Xamarin.iOS files from a file system:

Uninstall Xamarin.Mac

Xamarin.Mac can be removed from your machine using the following two commands to eradicate the product and license from your Mac respectively:

Uninstall Workbooks and Inspector

Starting with 1.2.2, Xamarin Workbooks & Inspector can be uninstalled from a terminal by running:

For older versions, you need to manually remove the following artifacts:

  • Delete the Workbooks app at '/Applications/Xamarin Workbooks.app'
  • Delete the Inspector app at 'Applications/Xamarin Inspector.app'
  • Delete the add-ins: '~/Library/Application Support/XamarinStudio-6.0/LocalInstall/Addins/Xamarin.Interactive' and '~/Library/Application Support/XamarinStudio-6.0/LocalInstall/Addins/Xamarin.Inspector'
  • Delete Inspector and supporting files here: /Library/Frameworks/Xamarin.Interactive.framework and /Library/Frameworks/Xamarin.Inspector.framework

Uninstall the Xamarin Profiler

Uninstall the Visual Studio Installer

Use the following commands to remove all traces of the Xamarin Universal Installer:

Uninstall Visual Studio 2019 for Mac Preview

Visual Studio 2019 for Mac Preview was launched as a separate preview, allowing you to continue to work with your Visual Studio 2017 for Mac install side-by-side.

Now that Visual Studio 2019 for Mac has been released, you can now safely remove the Visual Studio 2019 for Mac Preview application.

Macos

To uninstall the preview application bundle, select Visual Studio (Preview) from your Applications folder and click Move to Trash, as depicted in the following image:

You can also remove the Preview plist file with the following command:

See also

Visual Studio Code On Macos

Today, Microsoft announced Visual Studio 2022 along with its first public preview coming this summer. The next major release of Microsoft's flagship development toolkit will be 'faster, more approachable, and more lightweight', according to Amanda Silver, who made the announcement on Microsoft's DevBlogs.

One of the big news with Visual Studio 2022 is going to be the transition to a 64-bit app. Indeed, Microsoft has been making a push towards 64-bit across the board, and now Visual Studio is joining the fray. A major advantage of 64-bit apps is that they're not limited to 4GB of memory, so this new release will have unrestricted access to all the memory on your PC. That should result in much better performance across the board and fewer out-of-memory errors.

The new version of Visual Studio will also come with updated icons that should be easier to identify and understand at a glance, support for the new Cascadia Code font that Microsoft introduced with Windows Terminal, new product themes, and integration with Accessibility Insights to help developers spot any accessibility barriers quicker. Microsoft is also making it easier to customize your experience with Visual Studio, with settings for the IDE and the ability to sync (or not) settings across devices.

As for what types of apps you can build with it, Visual Studio 2022 will be compatible with Azure resources, .NET 6, and C++ 20. That includes full support for the unified framework in .NET 6 and things like the Multi-platform App UI (MAUI) that can be used to create apps for Windows, Android, macOS, and iOS.

Other improvements include better performance for the core debugger, support for text chat during Live Share sessions, more capabilities for the IntelliCode engine, improvements to code search, and better asynchronous collaboration, with new logic related to making commits and reviewing pull requests from platforms like GitHub.

Microsoft also says it's 'refreshing' Visual Studio for Mac, switching to a native macOS UI to offer better performance and reliability. It will also integrate with macOS accessibility features, and Microsoft is updating the terminology across the IDE so it's more consistent between Mac and Windows versions.

Visual Studio Code On Macos

As mentioned above, the first preview of Visual Studio 2022 will be available this summer, and Microsoft will likely iterate on it a few times leading up to the stable release.