Location>code7788 >text

NET 9 RC1 officially released

Popularity:520 ℃/2024-09-11 22:05:20

NET 9 RC1 is the first Release Candidate for .NET 9, marking the near-final release. Based on what's relevant on Github, we can summarize the following:

  1. New features and improvements

    • NET 9 RC1 introduces many new features and improvements. For example, Core has several updates in this release, including SignalR distributed tracing, WebSocket keep-alive timeout, and key-value dependency injection in middleware.
    • For .NET MAUI, new features have been added.
  2. Installation and Download

    • There are several ways to obtain and install this release. NET 9 SDK can be installed directly through the Visual Studio installer, and packages and binaries can be found on GitHub.
  3. Safety and Stability

    • Although .NET 9 RC1 is nearing completion, it still contains some new features and fixed security issues. For example, Core HTTPS development certificates can now be trusted on Ubuntu and Fedora Linux-based distributions.
  4. Development goals and vision

    • NET 9 continues to enhance support for cloud-native applications and performance, and focuses on smart application development, according to a Microsoft blog post.
  5. Community feedback and testing

    • Users are encouraged to try .NET 9 RC1 and provide feedback for final testing and tweaking.

 

What specifically are the new features and improvements in Core in .NET 9 RC1?

New features and improvements to Core in .NET 9 RC1 specifically include the following:

  1. AI Model Deployment SimplifiedNET 9 introduces new Core integrations through the new project templatedotnet new webapi --ai -model Simplifies the deployment of AI models. Automated OpenAPI/Swagger documentation for model end nodes is also provided with built-in model support.

  2. Platform independenceNET Core: Core is highly platform-independent at runtime and can run on .NET Core, which gives developers more flexibility in choosing operating systems and hardware architectures.

  3. Enhanced features and components: Introduced new features and components such as Tag Helper and View Components, tools that make it easier to encapsulate features and page parts, thus improving code readability and reusability.

NET MAUI How does the new functionality in .NET 9 RC1 work?

In the .NET 9 RC1 release of .NET MAUI, the new function. This feature allows developers to align text horizontally so that the text automatically adjusts its position according to the width of the container in order to achieve the effect of centered alignment.

Specifically. is a type of text alignment that distributes text content horizontally so that each word or character fills as much of the available space as possible. It is often used in situations where text needs to be distributed evenly across the screen or page, such as in long paragraphs or headings.

For example, in a label control with a fixed width, if you set theThen when the length of the text in the label exceeds the width of the control, the system automatically adjusts the position of each word so that it is evenly distributed horizontally, thus achieving the effect of center alignment.

How do I trust Core HTTPS development certificates on Ubuntu and Fedora Linux-based distributions?

Trusting Core HTTPS development certificates on Ubuntu and Fedora Linux-based distributions can be accomplished by following these steps:

  1. Installing the .NET Core SDKNET Core SDK is installed on your system, which is the basis for running the commands.

  2. Generate self-signed certificates: Usedotnet dev-certs https command to generate a self-signed certificate. Example:

   dotnet dev-certs https --clean
   dotnet dev-certs https --trust

 

Running these commands will clean up and regenerate the certificate and add it to the system's trust store.

  1. Manually adding certificates to the trust store: If the above does not work (as on RHEL), you can manually add the certificate to the system's trust store. For Fedora, certificates are usually located in the/etc/pki/ca-trust/extracted/pem/ file. It is possible to use thecertutil tool to manage these certificates:
   certutil -A -d /etc/ssl/certs -n "Your Certificate Name" -i /path/to/your/ 

(of a computer) run

  1. Verify certificate trust status: Ensure that the system has properly loaded and trusted the newly generated certificate. This can be done using thekeytool maybeopenssl and other tools to check the status and chain of trust of certificates.

  2. Configuring the Core Application: Configure HTTPS settings in the Core application to ensure that the application uses the correct certificate path and port.

What exactly is the .NET 9 support for cloud-native applications and performance mentioned in the Microsoft blog post?

NET 9 support for cloud-native applications and performance as mentioned in the Microsoft blog post specifically includes the following:

  1. Cloud Native Application Support

    • Containerization and Microservices ArchitectureNET 9 enhances support for containerization and microservices architecture, making it easier for developers to build and deploy cloud-native applications.
    • Runtime performance and application monitoringNET team has been building strong cloud-native foundations such as runtime performance and application monitoring for the past several years. NET 9 will continue to optimize in these areas to ensure application scalability and resiliency.
    • Production infrastructure and servicesNET 9 shifts the focus to paving the way for popular production infrastructure and service offerings, such as running in Kubernetes and using hosted data.
  2. performance optimization

    • A collision of speed and passionNET 9.0.0-preview.2, performance optimization is a top priority. NET 9 has invested heavily in performance optimization, cross-platform compatibility, AI integration, security enhancements, development tool upgrades, and community support across the platform.
    • Performance ToolsNET 9 provides sophisticated performance tools to meet the demanding performance requirements of cloud-native and AI technology stacks.

NET 9 support for cloud-native applications and performance focuses on enhancements to containerization, microservices architecture, runtime performance and application monitoring optimizations, and support for production infrastructure and services.