.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.


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.


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.


The Linux Upskill Challenge

A compact and previously paid course is now free and open source. It teaches everything someone needs in order to transition to Linux.

Windows 11 The Lockdown

It is a surprise that Windows 11 is a thing at all, given that Microsoft promised that Windows 10 would be the last version of Windows. The idea of a continuous update has been abandoned, but why does [ ... ]

More News





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