Git Product home page Git Product logo

cleannetcoresdks's Introduction

.NET SDK Cleaner

Warning

This program might delete everything you hold dear, run at your own risk!

This program uninstalls .NET SDKs and runtimes. It is most useful on macOS where there is no package manager to uninstall old versions of SDKs when upgrading to new versions.

This program supports uninstalling .NET Core 3.0 and later SDKs and runtimes.

The policy for deciding which SDKs and runtimes to keep is simple: the latest version of each major version is kept and all others are deleted. The dependency of SDK on runtime is also taken into account when deciding which versions of runtimes to keep.

TODO

  • Consider invoking dotnet workload clean after cleaning SDKs
  • Unify the definitions of paths for detecting installed versions and deleting installed version
  • Add more asserts to the VersionMap class that ensure this program's assumptions about the mappings between different versions of components is correct. Specifically that there is a one-to-one relationship between runtime versions and ASP.NET versions.
  • Docs
  • Detect that the current user does not have permission to delete files instead of just crashing. Perhaps automatically attempt to elevate permissions using sudo?
  • Publish prebuilt binaries, maybe using an automated GitHub Actions build?

Old version for .NET Core 1.x and 2.x on Windows

Versions of the .NET Core framework prior to version 3 had their own unique challenges. Specifically they contained a NugetFallbackFolder directory that would only ever grow in size.

Given that the last version of the SDK with this problem are out of support as of 2019, this program does not currently support cleaning up these versions. For the Windows-specific version of this program that cleaned up that mess, see the netcore2 branch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.