![]() |
|
[DevBlog MS] Introducing dotnetup: A toolchain manager for .NET - Printable Version +- Sick Gaming (https://sickgaming.net) +-- Forum: Programming (https://sickgaming.net/forum-76.html) +--- Forum: C#, Visual Basic & .NET (https://sickgaming.net/forum-79.html) +--- Thread: [DevBlog MS] Introducing dotnetup: A toolchain manager for .NET (/thread-113955.html) |
[DevBlog MS] Introducing dotnetup: A toolchain manager for .NET - xSicKxBot - 10-15-2026 Getting started with .NET on macOS and Linux has historically meant navigating a plethora of options: system package managers like Code: aptCode: brewCode: dotnet-install.shThat’s why we’re introducing the public preview of Code: dotnetupWhy dotnetup? If you’ve spent time in ecosystems like Rust ( Code: rustupCode: nvmCode: dotnetup
Let’s walk through how to get started and how to use Code: dotnetupInstalling dotnetup and getting started To get Code: dotnetupmacOS (Zsh): Code: [code]curl -fsSL https://aka.ms/dotnetup/get-dotnetup.sh | zsh[/code]Linux (Bash): Code: [code]curl -fsSL https://aka.ms/dotnetup/get-dotnetup.sh | bash[/code]PowerShell ( Code: pwshCode: [code]irm https://aka.ms/dotnetup/get-dotnetup.ps1 | iex[/code]Once the script pulls down the binary, initialize your environment: Code: [code]dotnetup init[/code]The Code: initCode: dotnethttps://devblogs.microsoft.com/dotnet/wp-content/uploads/sites/10/2026/10/dotnetup-get-started.mp4 Let’s check what’s installed in our local environment: Code: [code]dotnetup list[/code]You’ll see a clean inventory of the SDKs and runtimes currently managed by Code: dotnetupKeeping runtimes fresh month-over-month Every month the .NET team ships servicing updates with security fixes and quality improvements. Keeping your local dev machine up to date helps you build and test against those fixes. For self-contained applications, you also need to republish and redeploy with the updated runtime. Updating your machine does not patch applications you have already shipped. When using system installs, you may not be in control of your ability to update. With Code: dotnetupCode: [code]dotnetup update[/code]This command resolves your tracked SDK and runtime channels again and installs the latest matching versions. For example, Code: 10.0Code: latestCode: 10.0.3If you only want to install or refresh a specific runtime flavor, like the ASP.NET Core runtime on .NET 10, you can target it cleanly: Code: [code]dotnetup runtime install aspnetcore@10.0[/code]https://devblogs.microsoft.com/dotnet/wp-content/uploads/sites/10/2026/10/dotnetup-update-runtimes.mp4 After a successful update, Code: dotnetupWhen you no longer need a tracked channel or exact version, remove that requirement with the corresponding Code: sdk uninstallCode: runtime uninstallCode: dotnetupTesting nightly and preview builds Beyond routine monthly servicing, many developers want to test bug fixes or check out new runtime capabilities before they hit stable release channels. Previously, testing a nightly runtime build meant hunting down raw installer tarballs from GitHub, manually unpacking them into custom directories, and tweaking environment variables by hand. Code: dotnetupCode: [code]dotnetup sdk install preview[/code]https://devblogs.microsoft.com/dotnet/wp-content/uploads/sites/10/2026/10/dotnetup-nightly-install.mp4 Or pull down the latest daily runtime build to verify an issue fix: Code: [code]dotnetup runtime install daily[/code]Or grab an entire SDK to check out the entire toolchain: Code: [code]dotnetup sdk install daily[/code]You get the flexibility to test daily builds across your user account and clean them up easily! Updating Code: dotnetupWe’ll be pushing features and fixes to Code: dotnetupCode: [code]dotnetup self update[/code]Common questions Here are quick answers to a few questions you might have: I could do all of this with Code: dotnet-install.[sh|ps1]That’s not a question. But yeah, you could do most of this with the install scripts. What you miss out on is
Does dotnetup need sudo or root rights? Nope. Code: dotnetupIn a future release we’ll be adding support for managing the system-level installs on Windows because of how prevalent those are on that operating system. Can I use dotnetup in CI pipelines? Absolutely. Because Code: dotnetupWhat’s on the roadmap for Code: dotnetupAs mentioned, we’ll be looking into support for Windows admin installers, but we also want to integrate Code: dotnetuplike GitHub Actions and Azure DevOps – ideally through replacing parts of the implementations of those tools today that rely on the dotnet-install scripts. We also want to iterate on the user experience to better fit how you all use the tool, and flesh out agent skills so that automated assistants use the tooling more naturally and reach for it by default. Where should I go for more details? For the full CLI reference, advanced configuration options, and deep dives, head over to the dotnetup documentation on Microsoft Learn. If you have feedback, run into bugs, or want to share your thoughts on the experience, please drop by the dotnet/sdk discussions on GitHub. We’d love to hear how it works for you, or how we can make it better! The post Introducing dotnetup: A toolchain manager for .NET appeared first on .NET Blog. |