Home > System Tutorial > LINUX > Install .NET 9 Preview 6 In Linux

Install .NET 9 Preview 6 In Linux

William Shakespeare
Release: 2025-03-15 10:31:08
Original
930 people have browsed it

Install .NET 9 Preview 6 In Linux

Microsoft's .NET 9 Preview 6 release significantly enhances the .NET ecosystem, building upon the .NET 8 foundation with improvements for cloud-native applications, performance, and developer experience. This guide details .NET 9's key features and its Linux installation.

.NET 9 Highlights

This release boasts numerous advancements:

Runtime Enhancements:

  • A refined attribute model for feature switches, now with trimming support.
  • Substantial performance boosts through loop optimizations, improved inlining, enhanced PGO (Profile-Guided Optimization), Arm64 vectorization and code generation, faster exception handling, and AVX-512 support.

Library Improvements:

  • System.Text.Json: Expanded customization options and web defaults.
  • LINQ: Addition of CountBy and AggregateBy methods.
  • Collections: An upgraded PriorityQueue<t></t> implementation.
  • Cryptography: A new one-shot hash method and KMAC algorithm support.
  • Reflection: Introduction of PersistedAssemblyBuilder for saving emitted assemblies.
  • TimeSpan: More precise From* methods for TimeSpan object creation.

SDK Enhancements:

  • Streamlined unit testing integration with MSBuild.
  • New options for dotnet tool install.
  • A default-enabled terminal logger with improved usability.
  • New MSBuild script analyzers.

ML.NET and .NET Aspire:

  • ML.NET 4.0: Support for advanced tokenizers and AI models.
  • .NET Aspire: A preview release for creating cloud-ready, distributed applications.

Web Development (ASP.NET Core):

  • Improvements across Blazor, SignalR, Minimal APIs, OpenAPI, and authentication/authorization.

Mobile Development (.NET MAUI):

  • Focus on enhancing product quality.

Data Access (Entity Framework Core):

  • Major updates to the Azure Cosmos DB provider.
  • Progress towards AOT compilation and pre-compiled queries.

Language Features (C# 13):

  • params collections.
  • New lock type and semantics.
  • \e escape sequence.
  • Method group natural type improvements.
  • Implicit indexer access in object initializers.

Desktop Development (WPF):

  • Windows 11 theming support.
  • Hyphen-based ligature support.

Installing the .NET 9.0 SDK on Linux

Step 1: Download .NET 9 Preview 6

Download the .NET 9.0 SDK (v9.0.100-preview.6) from the official download page. Choose the appropriate Linux binary installer.

Step 2: Verify the Download

Verify the downloaded installer's integrity using checksum verification. Obtain the checksum from the download page and compare it to the checksum of your downloaded file using sha512sum:

sha512sum dotnet-sdk-9.0.100-preview.6.24328.19-linux-x64.tar.gz
Copy after login

Step 3: Extract and Install

Extract the SDK and set environment variables (for the current session):

mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-9.0.100-preview.6.24328.19-linux-x64.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
Copy after login

Step 4: Permanent PATH Configuration

For permanent access, add these lines to your shell's profile file (e.g., ~/.bashrc, ~/.zshrc):

export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
Copy after login

Step 5: Verification

Verify the installation:

Check the version:

dotnet --version
Copy after login

List installed SDKs and runtimes:

dotnet --list-sdks
dotnet --list-runtimes
Copy after login

Step 6: .NET CLI Help

Access help:

dotnet --help
dotnet [command] --help
Copy after login

Conclusion

.NET 9 Preview 6 offers exciting advancements for developers. Remember that this is a preview; use it for testing and development, not production. Refer to the official .NET documentation for the latest information. The official announcement link (.NET 9 Preview 6 is now available!) should be included here for completeness.

The above is the detailed content of Install .NET 9 Preview 6 In Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template