News

.NET Core 3.1 Preview 2 Polishes Blazor/Desktop Functionality, Supports C++/CLI ('Managed C++')

As .NET Core 3.1 will be a "small and short release focused on key improvements in Blazor and Windows desktop," the main new functionality introduced in today's Preview 2 is the suport of C++/CLI, also known as "managed C++."

Just like Preview 1 announced about three weeks ago, the new preview shipping today (Nov. 4) focuses on the two main features highlighting the big Sept. 23 milestone release of .NET Core 3.0: Blazor (for C# Web development instead of JavaScript) and desktop development (Windows Forms and Windows Presentation Foundation).

As the dev team is focused on polishing up those features, program manager Richard Lander said the big new thing in Preview 2 is support for C++/CLI, also known as managed C++. "The changes for C++/CLI are primarily in Visual Studio," he said . "You need to install the 'Desktop development with C++' workload and the 'C++/CLI support' component in order to use C++/CLI."

Available as far back as Visual Studio 2005, C++/CLI is described by Wikipedia as: "(C++ modified for Common Language Infrastructure) is a language specification created by Microsoft which supersedes Managed Extensions for C++. It is a complete revision that simplifies the now-deprecated Managed C++ syntax and provides interoperatability with Microsoft .NET languages such as C#."

Microsoft reaffirmed its support of C++/CLI when .NET Core 3.0 was released, stating: "We would like to let everyone know that we are committed to supporting C++/CLI for .NET Core to enable easy interop between C++ codebases and .NET technologies such as WPF and Windows Forms." The company also noted it will have full IDE support for projects targeting .NET Core 3.1 or higher, such as IntelliSense and mixed-mode debugging (IJW) on Windows (no support for macOS or Linux is planned).

With the support for C++/CLI, .NET Core 3.1 Preview 2 introduces two new templates: CLR Class Library (.NET Core) and CLR Empty Project (.NET Core). The new preview was announced at Microsoft's Ignite conference, along with many other dev tool offerings, such as updates of ASP.NET Core and EF Core, Visual Studio 16.4 Preview 3 and Visual Studio for Mac 8.4 Preview 3.

.NET Core 3.1 will be a long term support (LTS) release, supported for at least three years, and is expected to ship next month. Today's Visual Studio 16.4 Preview 3 is a required update to use .NET Core 3.1 Preview 1 on Windows (or Mac 8.4 Preview 3), but it includes .NET Core 3.1, so just updating Visual Studio provides both releases, Lander said.

For more coverage of what's new in Blazor and ASP.NET Core, go here.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

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

Subscribe on YouTube