Paul Krill
Editor at Large

Microsoft .NET 10 Preview 2 shines on C#, runtime, encryption

news
Mar 20, 20253 mins

Latest update to the flagship development platform rounds out partial members in C# 14 and enhances the JIT compilerโ€™s devirtualization capabilities.

C sharp programming language source code example on monitor and bokeh background.
Credit: Tee11 / Shutterstock

Microsoft has unveiled a second preview of its planned .NET 10 developer platform, featuring enhancements related to encryption, the .NET runtime, and the C# language.

Published March 18, .NET 10 Preview 2 follows the February 25 debut of Preview 1. Preview 2 can be downloaded from dotnet.microsoft.com. A general release of .NET 10 is expected in November.

In .NET 10 Preview 2, new ExportPkcs12 methods on X509Certificate2 now allow callers to choose what encryption and digest algorithms are used to produce the output. The previous method indicated the Windows XP-era de facto standard, which generally resulted in using an older encryption algorithm.

Also in .NET Preview 2, C# 14 rounds out the set of partial members by adding partial instance constructors and partial events. These new partial member types join partial methods and partial properties that were added in C# 13. Partial members let one part of a class declare a member, which can then be implemented in another part of the same class, often in a different file. Partial members often are used by source generators.

As for .NET runtime improvements, Preview 2 continues an effort to enhance the JIT compilerโ€™s devirtualization capabilities for array interface methods. This effort was started in Preview 1 and continues with additional improvements and optimizations.

Elsewhere in .NET 10 Preview 2:

  • The dotnet CLI tool has added a few new aliases for commonly used but often forgotten commands. New commands include dotnet package add, dotnet package list, dotnet package remove, dotnet reference add, dotnet reference list, and dotnet reference remove. The new aliases are provided to make the commands easier to remember and type.
  • The Blazor Web App project template now includes a ReconnectModal component, which includes collocated stylesheet and JavaScript files. This is intended to ย improve developer control over the reconnection UI when the client loses the WebSocket connection to the server.
  • Quality improvements were made to .NET for Android and to .NET for iOS, Mac Catalyst, macOS, and tvOS.
  • Performance of WPF (Windows Presentation Foundation) has been improved by replacing data structures and optimizing method operations.
  • NativeAOT apps now have quicker startup time and smaller memory footprints, and they can run on machines that do not have the .NET runtime installed.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorldโ€™s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorldโ€™s audience of software developers and other information technology professionals. Paul has won a โ€œBest Technology News Coverageโ€ award from IDG.

More from this author