How can I uninstall dotnet core from macOS Sierra

前端 未结 2 1322
广开言路
广开言路 2021-02-12 16:42

I have tried to install dotnet core, but it does not worked. So, I would like to uninstall it and start refresh. How can I uninstall dotnet core from macOS Sierra(10.12.3).

相关标签:
2条回答
  • 2021-02-12 17:23

    You might as well use dotnet-core-uninstall tool which allow you to select a specific SDK or runtime version to remove. github docs

    If you are experiencing issues with building Xamarin.Mac after installing preview version of .Net 5 SDK you might like to remove Mono using such script and Visual Studio like this and try to reinstall from scratch

    good luck

    0 讨论(0)
  • 2021-02-12 17:37

    To uninstall dotnet core from macOS:

    1. download dotnet-uninstall-pkgs.sh from https://github.com/dotnet/cli/blob/master/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh
    2. make dotnet-uninstall-pkgs.sh executable
    3. execute dotnet-uninstall-pkgs.sh as root (requires superuser privileges to run).
    curl -O https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh
    chmod u+x dotnet-uninstall-pkgs.sh
    sudo ./dotnet-uninstall-pkgs.sh
    
    0 讨论(0)
提交回复
热议问题