News

.NET 7 Finally Arrives as Unifying Microsoft Development Platform

.NET 7 has finally done what .NET 5 was supposed to do in 2020: crown Microsoft's years-long effort to unify disparate development products with "just one .NET going forward."

On Tuesday, Nov. 8, the opening day of the three-day .NET Conf online event, .NET 7 reached General Availability status as Microsoft's open source, cross-platform development platform.

".NET 7 brings your apps increased performance and new features for C# 11/F# 7, .NET MAUI, ASP.NET Core/Blazor, Web APIs, WinForms, WPF and more," Microsoft said in an announcement post. "With .NET 7, you can also easily containerize your .NET 7 projects, set up CI/CD workflows in GitHub actions, and achieve cloud-native observability."

.NET 7
[Click on image for larger view.] .NET 7 (source: Microsoft).

That announcement capped a unification push heralded back in 2014 when Microsoft announced the open sourcing of old, proprietary, Windows-only .NET Framework tech, called .NET Core. The project gained traction with 2019's .NET Core 3.x series of iterations, which started to make serious inroads into supplanting the .NET Framework. That series was an especially important early step in Microsoft's campaign to enable developers to build all types of apps -- cloud, desktop, mobile, web, AI, IoT and more -- on the same Base Class Library (BCL), runtime and compilers.

The goals of .NET 5 were to:

  • Produce a single .NET runtime and framework that can be used everywhere and that has uniform runtime behaviors and developer experiences.
  • Expand the capabilities of .NET by taking the best of .NET Core, .NET Framework, Xamarin and Mono.
  • Build that product out of a single code-base that developers (Microsoft and the community) can work on and expand together and that improves all scenarios.

However, in August 2020 Microsoft said that unification effort would be postponed until .NET 6 in November 2021. Then, amid the pandemic and development problems, components like .NET MAUI (.NET Multi-platform App UI -- or "the best of Xamarin and Mono") "slipped the schedule" and missed the debut of .NET 6, so the grand consolidation was again postponed for a year, this time to .NET 7.

Themes of .NET for v7 Milestone
[Click on image for larger view.] Themes of .NET for v7 Milestone (source: Microsoft).

Now, at long last, all the code -- which has been production ready for a while now -- has been tested, polished and wrapped up in a Standard Support package, officially supported for 18 months as opposed to the 36 months of support that comes with Long-Term Support (LTS) offerings like .NET 6.

.NET Support Lifecycles
[Click on image for larger view.] .NET Support Lifecycles (source: Microsoft).

In announcing the General Availability of .NET 7 at the beginning of this week's .NET Conf 2022 online event, Microsoft listed three key highlights:

  • Performance improvements in .NET 7 allow developers to work efficiently with fastest version of .NET ever.
  • .NET 7 builds upon the platform's unification journey, with improvements to .NET MAUI, enhanced support of .NET apps on ARM64, and a partnership with Canonical that includes .NET with Ubuntu.
  • .NET 7 empowers developers to easily build modern, cloud native apps with features like built-in container support for the .NET SDK, Microsoft Orleans 7.0, and observability integrations.
  • Additions in C# 11 and F# 7 simplify the developer experience, allowing developers to accomplish more with less code.

The announcement further detailed the major themes of .NET 7:

  • Unified
    • One BCL
    • New TFMs
    • Native support for ARM64
    • Enhanced .NET support on Linux
  • Modern
    • Continued performance improvements
    • Developer productivity enhancements, like container-first workflows
    • Build cross-platform mobile and desktop apps from same codebase
  • .NET is for cloud-native apps
    • Easy to build and deploy distributed cloud native apps
  • Simple
    • Simplify and write less code with C# 11
    • HTTP/3 and minimal APIs improvements for cloud native apps
  • Performance
    • Numerous perf improvements

As most of that stuff has already been announced and explained, there won't be many new features or much new functionality to trumpet at .NET Conf, where Microsoft will mostly review and demo the new platform. With that in mind, here's a handy timeline review to summarize how the framework has evolved in the context of Microsoft announcements:

  • Announcing .NET 7 Preview 1: .NET 7 builds on the foundation established by .NET 6, which includes a unified set of base libraries, runtime, and SDK, a simplified development experience, and higher developer productivity. Major areas of focus for .NET 7 include improved support for cloud native scenarios, tools to make it easier to upgrade legacy projects, and simplifying the developer experience by making it easier to work with containers.
  • Announcing .NET 7 Preview 2: The second preview of .NET 7 includes enhancements to RegEx source generators, progress moving NativeAOT from experimental status into the runtime, and a major set of improvements to the "dotnet new" CLI experience.
  • Announcing .NET 7 Preview 3: The third preview of .NET 7 includes enhancements to observability, startup times, codegen, GC regions, native AOT compilation, and more.
  • Announcing .NET 7 Preview 4: The fourth preview of .NET 7 includes enhancements to observability in the .NET implementation of OpenTelemetry, the addition of properties to track microseconds and nanoseconds in date and time structures, new metrics for caching extensions, performance-boosting "on stack replacement, APIs" to work with .tar archives, and additional features as part of an ongoing effort to improve the performance of and add features to regular expressions in .NET 7.
  • Announcing .NET 7 Preview 5: This preview of .NET 7 includes improvements to Generic Math which make the lives of API authors easier, a new Text Classification API for ML.NET that adds state-of-the-art deep learning techniques for natural language processing, various improvements to source code generators and a new Roslyn analyzer and fixer for RegexGenerator and multiple performance improvements in the areas of CodeGen, Observability, JSON serialization / deserialization and working with streams.
  • Announcing .NET 7 Preview 6: This preview of .NET 7 includes improvements to type converters, JSON contract customization, System.Formats.Tar API updates, constraints to .NET template authoring, and performance enhancements in the CodeGen area.
  • Announcing .NET 7 Preview 7: This preview of .NET 7 includes improvements to System.LINQ, Unix file permissions, low-level structs, p/Invoke source generation, code generation, and websockets.
  • Announcing .NET 7 Release Candidate 1: This is the first of two release candidates (RC) for .NET 7 that are supported in production.
  • Announcing .NET 7 Release Candidate 2: Today we announce .NET 7 Release Candidate 2. This is the final release candidate (RC) for .NET 7 and is supported in production.

In that final post, Microsoft highlighted what's new with specific areas of .NET 7, including C#, libraries and the SDK:

Twitter Poll
[Click on image for larger view.] Twitter Poll (source: .NET Foundation/Twitter).

This week's .NET Conf, under the direction of the .NET Foundation, will present sessions on .NET 7, .NET MAUI, Blazor, Entity Framework and more. As the above graphic depicting an informal Twitter poll indicates, .NET 7 is garnering the most interest.

The at-a-glance schedule for the Tuesday-through-Thursday event is:

  • Day one is all about the big news, .NET 7! Join the .NET team on all the new things you can do with the latest release.
  • Day two is where we dive deeper into all the things you can do with .NET and our 24 hour broadcast begins.
  • Day three continues our all day and night broadcast with speakers around the world in their own time zones.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube