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 at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube