Removing Old Version Of .NET - DEV Community

Forem Logo DEV Community Logo DEV Community Main Image

DEV Community

Follow

A space to discuss and keep up software development and manage your software career

Future Logo Future Main Image

Future

Follow

News and discussion of science and technology such as AI, VR, cryptocurrency, quantum computing, and more.

Open Forem Logo Open Forem Main Image

Open Forem

Follow

A general discussion space for the Forem community. If it doesn't have a home elsewhere, it belongs here

Gamers Forem Logo Gamers Forem Main Image

Gamers Forem

Follow

An inclusive community for gaming enthusiasts

Music Forem Logo Music Forem Main Image

Music Forem

Follow

From composing and gigging to gear, hot music takes, and everything in between.

Vibe Coding Forem Logo Vibe Coding Forem Main Image

Vibe Coding Forem

Follow

Discussing AI software development, and showing off what we're building.

Popcorn Movies and TV Logo Popcorn Movies and TV Main Image

Popcorn Movies and TV

Follow

Movie and TV enthusiasm, criticism and everything in-between.

DUMB DEV Community Logo DUMB DEV Community Main Image

DUMB DEV Community

Follow

Memes and software development shitposting

Design Community Logo Design Community Main Image

Design Community

Follow

Web design, graphic design and everything in-between

Security Forem Logo Security Forem Main Image

Security Forem

Follow

Your central hub for all things security. From ethical hacking and CTFs to GRC and career development, for beginners and pros alike

Golf Forem Logo Golf Forem Main Image

Golf Forem

Follow

A community of golfers and golfing enthusiasts

Scale Forem Logo Scale Forem Main Image

Scale Forem

Follow

For engineers building software at scale. We discuss architecture, cloud-native, and SRE—the hard-won lessons you can't just Google

Crypto Forem Logo Crypto Forem Main Image

Crypto Forem

Follow

A collaborative community for all things Crypto—from Bitcoin to protocol development and DeFi to NFTs and market analysis.

Forem Core Logo Forem Core Main Image

Forem Core

Follow

Discussing the core forem open source software project — features, bugs, performance, self-hosting.

Parenting Logo Parenting Main Image

Parenting

Follow

A place for parents to the share the joys, challenges, and wisdom that come from raising kids. We're here for them and for each other.

Maker Forem Logo Maker Forem Main Image

Maker Forem

Follow

A community for makers, hobbyists, and professionals to discuss Arduino, Raspberry Pi, 3D printing, and much more.

HMPL.js Forem Logo HMPL.js Forem Main Image

HMPL.js Forem

Follow

For developers using HMPL.js to build fast, lightweight web apps. A space to share projects, ask questions, and discuss server-driven templating

Dropdown menu Dropdown menu Add reaction Like Unicorn Exploding Head Raised Hands Fire Jump to Comments Save Boost More... Copy link Copy link Copied to Clipboard Share to X Share to LinkedIn Share to Facebook Share to Mastodon Share Post via... Report Abuse

.NET Runtime updates are compatible with the latest major version of the .NET SDKs. This means that you can remove safely the older versions.

You can see the current SDKs and runtimes are installed on you machine with the following commands:

dotnet --list-sdks dotnet --list-runtimes Enter fullscreen mode Exit fullscreen mode

To remove the unuseful version of the SDKs and runtimes, you can use the dotnet-core-uninstall tool. It's not installed by default but you can download the installer from this link: https://github.com/dotnet/cli-lab/releases

Once you've installed it, you can use the following command to see the list with the .NET SDKs and runtimes that can be removed.

dotnet-core-uninstall list Enter fullscreen mode Exit fullscreen mode

You can also perform a what-if analysis of an uninstall. This command displays the output of an uninstall task, without performing that.

dotnet-core-uninstall whatif --all

At the end, if you are convinced of the result, you can perform the real uninstall command:

dotnet-core-uninstall remove --all-previews-but-latest Enter fullscreen mode Exit fullscreen mode

For instance, this command removes .NET SDKs and runtimes marked as previews except the one highest preview.

I use this command every month. I have a task on my calendar to remind me this important task. A clean machine is a quick machine.

You can find all the commands and all the options in the official documentation at this link: https://docs.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool?tabs=windows

Happy cleaning!

pic Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Submit Preview Dismiss Collapse Expand gendalv profile image gendalv gendalv gendalv Follow
  • Joined Jul 12, 2022
Jul 12 '22 Dropdown menu
  • Copy link
  • Hide

doesn't work for 5.0.10

Code of Conduct Report abuse

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.

Hide child comments as well

Confirm

For further actions, you may consider blocking this person and/or reporting abuse

Emanuele Bartolesi Follow 🏆 Microsoft MVP (12x) & GitHub Star (4x) ⭐ 👨‍🎓 LinkedIn Technical Instructor 🎓
  • Location Zurich, Switzerland
  • Pronouns he/him
  • Work Cloud Architect
  • Joined Jun 22, 2018
Why I Use JetBrains Rider for .NET Development #dotnet #productivity Tips for Improving API Performance in ASP.NET Core #aspnet #dotnet #performance #webperf How to Enhance the API Response with a Wrapper Class with Additional Information with .NET Minimal API #dotnet #api
DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

Từ khóa » Gỡ Bỏ Sdk