News

Microsoft Doubles Down on Guidance for Porting Desktop Apps to .NET Core

Support for creating desktop apps with .NET Core 3.0 -- coming in the second half of this year -- is a big deal because it addresses one of the last major hurdles for the wholesale move off the now-maintenance-only .NET Framework.

As such, having made no bones about the fact that .NET Core is the future for .NET developers, Microsoft has provided guidance for checking desktop app readiness for .NET Core and how to port desktop apps to .NET Core.

Now, the company is accelerating that porting guidance, targeting two groups of .NET developers: those who want just the basics and those who want meatier details for more complex use cases.

Today (May 28), the company published a post for the simple case.

Olia Gavrysh, program manager, .NET, explained the reasoning for the two-pronged approach:

Since I've been working with the community on porting desktop applications from .NET Framework to .NET Core, I've noticed that there are two camps of folks: some want a very simple and short list of instructions to get their apps ported to .NET Core while others prefer a more principled approach with more background information. Instead of writing up a "Swiss Army knife"-document, we are going to publish two blog posts, one for each camp:
  • This post is the simple case. It's focused on simple instructions and smaller applications and is the easiest way to move your app to .NET Core.
  • We will publish another post for more complicated cases. This post will focus more on non-trivial applications, such WPF application with dependencies on WCF and third-party UI packages.

Benefits of moving WinForms and WPF apps to .NET Core, the company has said, include:

  • Performance improvements and other runtime updates that will delight your users
  • Super easy to use or test a new version of .NET Core for just one app on a machine
  • Enables both machine-global and application-local deployment
  • Support for the .NET Core CLI tools and SDK-style projects in Visual Studio
Visualizing .NET Core 3
[Click on image for larger view.] Visualizing .NET Core 3 (source: Microsoft).

Today's blog post by Gavrysh follows up on earlier guidance, such as a February video with exec Scott Hunter that detailed "what it takes to port a desktop application to .NET Core and make use of the Windows Compatibility Pack," along with providing "a peek into working with Razor Components and ML .NET."

Hunter also detailed WinForms, WPF support last month in a roundup of "What's Coming with .NET Core 3.0."

Desktop Improvements in .NET Core 3
[Click on image for larger view.] Desktop Improvements in .NET Core 3 (source: Microsoft).

In today's post, Gavrysh details prerequisites and step-by-step guidance including:

  • Run portability analyzer
  • Migrate to SDK-style .csproj
  • Retarget to .NET Core
  • Fixing errors
  • Working with designers
  • Why port to .NET Core

For visual learners, she points to the "Porting to .NET Core 3.0" video, a two-pronged approach appreciated by at least one developer who commented: "Thank you SOOOOO much for providing the content in both Text and video! It is so frustrating that many sites think everyone has time to watch a 20 minute video for something that could be read in under 5 (along with it being indexed and searchable)."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events