Produced | OSC Open Source Community (ID: oschina2013)
Microsoft has announced the general availability of .NET 7, which makes it easy to containerize .NET 7 projects, set up CI/CD workflows in GitHub Actions, and achieve cloud-native observability.
.NET 7 is the Standard Term Support (STS) release and will be supported for 18 months. Over 8900 contributors made 28k code contributions throughout the .NET 7 release.
Optimizations in .NET 7 focus on:
A Base Class Library (BCL)
With .NET 7, you can build multiple types of applications (cloud, web, desktop, mobile, gaming, IoT, and AI) iteratively with one SDK, one runtime, one set of foundational libraries, and one SDK.
Native support for ARM64
Optimized performance on Arm machines, including estimating L3 cache size, introducing LSE atomic instructions, optimizing libraries using intrinsics.
See Arm64 performance improvements in .NET 7 for details: https://ift.tt/a3kJQDz
Enhanced .NET support on Linux
.NET 6 is included in Ubuntu 22.04 (Jammy) and can be installed using the apt install dotnet6
command. Additionally, there is an optimized, pre-built, out-of-the-box ultra-small container image.
dotnetapp % docker run --rm dotnetapp-chiseled 42 42 ,d ,d 42 42 42 ,adPPYb,42 ,adPPYba, MM42MMM 8b,dPPYba, ,adPPYba, MM42MMM a8" `Y42 a8" "8a 42 42P' `"8a a8P_____42 42 8b 42 8b d8 42 42 42 8PP""""""" 42 "8a, ,d42 "8a, ,a8" 42, 42 42 "8b, ,aa 42, `"8bbdP"Y8 `"YbbdP"' "Y428 42 42 `"Ybbd8"' "Y428 .NET 7.0.0-preview.7.22375.6 Linux 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 OSArchitecture: Arm64 ProcessorCount: 4 TotalAvailableMemoryBytes: 3.83 GiB
For more information on Microsoft’s partnership with Canonical and ARM, read .NET 6 now in Ubuntu 22.04: https://ift.tt/Gh9l2Dk
64-bit IBM Power support
In addition to x64 architectures (64-bit Intel/AMD), ARM64 (64-bit ARM), and s390x (64-bit IBM Z), .NET is also available for RHEL’s ppc64le (64-bit IBM Power) architecture 8.7 and RHEL 9.1.
NET MAUI
NET MAUI is already part of .NET 7 with numerous improvements and new features. Check out the .NET MAUI status (https://ift.tt/ZRPfqij) and project roadmap (https://ift.tt/6JuzX21) for more information.
modernization
The .NET SDK supports output container images, for more information on built-in container support, see Built-in container support for the .NET SDK: https://ift.tt/A3xctf9
Upgrade Assistant
The .NET Upgrade Assistant includes more analyzers, code fixes, and upgrade support for more application types, making it easier for developers to upgrade their .NET 7 application portfolio and less effort to upgrade applications.
.NET Cloud Native
.NET 7 makes it easier to build and deploy distributed cloud-native applications.
performance
.NET 7 has several performance optimizations such as:
-
On Stack Replacement (OSR), improved startup time.
-
Profile-Guided Optimization (PGO)
-
Native AOT, the main advantages are boot time, memory usage, access to restricted platforms (no JIT allowed) and less disk space.
Download and upgrade
Free .NET 7 versions for Windows, macOS and Linux are available for immediate download: https://ift.tt/1tpRxUe
-
Installers and Binaries
-
container image
-
Linux package
-
Release Notes
-
major changes
-
known issues
-
GitHub issue tracker
The text and pictures in this article are from the OSC open source community
This article is reprinted from https://www.techug.com/post/net-7-officially-releasedae28e4c358c9f54523ef/
This site is for inclusion only, and the copyright belongs to the original author.