.NET 6 Preview 6 Improves Pre-Compilation
Written by Kay Ewbank   
Thursday, 22 July 2021

Microsoft has released .NET 6 Preview 6, the second to last preview before the RC period. The new preview has been tested for Visual Studio 2022, Preview 2, and has added improved pre-compilation handling of code.

.NET was created from a combination of .NET Framework and .NET Core. Microsoft's plan when .NET 5 was announced was that developers would be able to create a single native .NET 5 project to target Windows, Linux, macOS, iOS, Android, tvOS, watchOS and WebAssembly.

net2

The changes in this release are minor, as Richard Lander, Program Manager in the .NET team acknowledged: 

"The Preview 6 is the second to last preview before we enter the RC period. There will be two RCs. This release itself is relatively small, while Preview 7 will be bigger."

The first change of note is a move to Crossgen2 for all existing crossgen scenarios. Crossgen (1 and 2) enables pre-compiling IL to native code as a publishing step. Crossgen2 has been rewritten from scratch and the team says it is already proving to be a superior platform for code generation innovation, including being able to generate code for a broader set of IL patterns.

One thing that didn't make it into this release was supporting x64 emulation on macOS Apple Silicon and Windows Arm64. For this to work, .NET 6 needs to have side-by-side capable installers, and suitable "architecture targeting" with the .NET CLI so it will use the native architecture SDK in all scenarios. At the moment developers will need to choose to install all x64 builds or all Arm64 ones.

Other minor improvements include better discovery and management of workloads via three new commands for .NET SDK Optional Workload, and the enabling of support for W^X memory protection, which is a requirement on Apple Silicon machines and a useful security measure on other operating systems, according to Richard Lander.

.NET 6 Preview 6 is available for download now.

net2

More Information

.NET 6 Preview 6 

Related Articles

Developer Preview Of .NET 6 Released

New In Windows Forms .NET

.NET 5 Ready For Action

.NET Is One With .NET 5

Have Your Say On .NET For Spark

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


The Single Issue Of 2025 - AI
01/01/2025

We have spent a lot of time talking about AI and its impact on programming over the past year, but the new year will confirm that it's a game changer or just another passing fad. It is the one big iss [ ... ]



National Medal of Science For Cynthia Dwork
10/01/2025

Harvard professor of Computer Science,Cynthia Dwork, is among the fourteen recipients of the National Medal of Science presented  by President Joe Biden on January 3, 2025.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info