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