Home >System Tutorial >LINUX >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.
This release boasts numerous advancements:
Runtime Enhancements:
Library Improvements:
CountBy
and AggregateBy
methods.PriorityQueue<t></t>
implementation.PersistedAssemblyBuilder
for saving emitted assemblies.From*
methods for TimeSpan
object creation.SDK Enhancements:
dotnet tool install
.ML.NET and .NET Aspire:
Web Development (ASP.NET Core):
Mobile Development (.NET MAUI):
Data Access (Entity Framework Core):
Language Features (C# 13):
params
collections.\e
escape sequence.Desktop Development (WPF):
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
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
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
Step 5: Verification
Verify the installation:
Check the version:
dotnet --version
List installed SDKs and runtimes:
dotnet --list-sdks dotnet --list-runtimes
Step 6: .NET CLI Help
Access help:
dotnet --help dotnet [command] --help
.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!