Skip to content

Commit 1d6c307

Browse files
authored
Merge pull request #2419 from asb3993/amburns-uninstall-link
adding .net core uninstall script
2 parents cc848b2 + 26b63b6 commit 1d6c307

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

mac/uninstall.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,22 @@ ms.assetid: 4EB95F75-BC2E-4982-9564-2975805712D8
1313
There are a number of Xamarin products that enable cross-platform application development,
1414
including stand-alone apps like Visual Studio for Mac.
1515

16-
This guide can be used to uninstall each product individually by navigating to the relevant section. The entire Xamarin toolset can be uninstalled by following this guide all the way through.
16+
You can use this guide to uninstall each product individually by navigating to the relevant section, or use the scripts provided in the [Uninstall Script](#uninstall-script) section to uninstall everything.
1717

18-
If you have previously had Xamarin Studio installed on your machine, you may also need to follow the instructions in the [uninstall](https://developer.xamarin.com/guides/cross-platform/getting_started/installation/uninstalling_xamarin/) guide on developer.xamarin.com, in addition to the following steps.
18+
If you have previously had Xamarin Studio installed on your machine, you may also need to follow the instructions in [Xamarin's uninstall](https://docs.microsoft.com/xamarin/cross-platform/get-started/installation/uninstalling-xamarin#uninstall-xamarin-studio-on-mac) guide, in addition to the following steps.
1919

2020
## Uninstall Script
2121

22-
You can uninstall Visual Studio and its associated components in one go by using the [uninstall script](https://raw.githubusercontent.com/MicrosoftDocs/visualstudio-docs/master/mac/resources/uninstall-vsmac.sh).
22+
There are two scripts that can be used to uninstall Visual Studio for Mac and all components for your machine:
23+
24+
- [Visual Studio and Xamarin script](#visual-studio-for-mac-and-xamarin-script)
25+
- [.NET Core script](#net-core-script)
26+
27+
The following sections provide information on downloading and using the scripts.
28+
29+
### Visual Studio for Mac and Xamarin script
30+
31+
You can uninstall Visual Studio and Xamarin components in one go by using the [uninstall script](https://raw.githubusercontent.com/MicrosoftDocs/visualstudio-docs/master/mac/resources/uninstall-vsmac.sh).
2332

2433
This uninstall script contains most of the commands that you will find in the article. There are two main omissions from the script and are not included due to possible external dependencies:
2534

@@ -42,6 +51,26 @@ To run the script, do the following steps:
4251
```
4352
4. Finally, delete the uninstall script.
4453

54+
### .NET Core script
55+
56+
The uninstall script for .NET Core is located in the [dotnet cli repo](https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh)
57+
58+
To run the script, do the following steps:
59+
60+
1. Right-click on the script and select **Save As…** to save the file on your Mac.
61+
2. Open Terminal and change the working directory to where the script was downloaded:
62+
63+
```bash
64+
$ cd /location/of/file
65+
```
66+
3. Make the script executable and the run it with **sudo**:
67+
68+
```bash
69+
$ chmod +x ./dotnet-uninstall-pkgs.sh
70+
$ sudo ./dotnet-uninstall-pkgs.sh
71+
```
72+
4. Finally, delete the .NET Core uninstall script.
73+
4574
## Uninstall Visual Studio for Mac
4675

4776
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:

0 commit comments

Comments
 (0)