Skip to content

Commit cd5db30

Browse files
committed
adding .net core uninstall script
1 parent 1439923 commit cd5db30

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

mac/uninstall.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ If you have previously had Xamarin Studio installed on your machine, you may als
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]()
25+
- [.NET Core]()
26+
27+
The following sections provide information on downloading and using the scripts.
28+
29+
### Visual Studio for Mac and Xamarin
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
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)