News

Microsoft 'Eats Own Dog Food' with WebView2, .NET 6, WinUI 3 for PowerToys

As Microsoft releases new developer tech, it's "eating its own dog food" by using it to create the company's own commercial products, with PowerToys being the latest example.

Microsoft says PowerToys is a set of utilities for power users to tune and streamline their Windows experience for greater productivity.

In a recent update to v0.58.0, the dev team, in addition to completing most of the work required to run natively on ARM64-based systems, also listed these highlights:

  • Uses of the obsolete WebBrowser control were replaced with WebView 2.
  • All uses of .NET Core 3.1 were removed. PowerToys now runs on .NET 6.
  • Settings no longer runs on XAML Islands and is now running on WinUI 3, fixing many bugs related to XAML islands.

That jives with the Microsoft-coined phrase of "eating your own dog food" -- or using one's own products or services -- that dates back to 1988.

Let's take a look at those three bullet points in that context:

WebView2
According to April 11, 2022, documentation, "The Microsoft Edge WebView2 control allows you to embed web technologies (HTML, CSS, and JavaScript) in your native apps. The WebView2 control uses Microsoft Edge as the rendering engine to display the web content in native apps."

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

The new update comes via GitHub issue #15764, "Consolidate web view engines to WebView2," which says: "We currently have a host of different web engine views we leverage across projects. With 0.55 using monaco engine for file preview of dev files, we should do our best to consolidate to a single engine." The move is discussed fully in a pull request titled "Move everything from WebBrowser to WebView2."

The WebBrowser control was associated with the old Internet Explorer browser, along with ActiveX in the .NET Framework WinForms space.

.NET 6
The latest version of the new open source, cross-platform successor to the old .NET Framework was released last November, while .NET Core 3.1 was introduced way back in December 2019, so this dog food update might seem late in coming. The PowerToys GitHub repo says the project's installer will now install the .NET 6.0.4 Desktop Runtime or a newer 6.0.x runtime.

WinUI 3
Windows UI Library (WinUI) 3 is "the native UI platform component that ships with the Windows App SDK (completely decoupled from Windows 10 and later SDKs). The Windows App SDK provides a unified set of APIs and tools that can be used to create production desktop apps that target Windows 10 and later, and can be published to the Microsoft Store."

WinUI 3
[Click on image for larger view.] WinUI 3 (source: Microsoft).

The Windows App SDK was called "Project Reunion" in its early stages as it sought to unify two disparate Windows app development API approaches. The new scheme obviates XAML Islands used to host WinRT XAML controls in non-UWP desktop applications, enabling Windows developers to use new pieces of UI from UWP on their existing Win32 Applications, including WinForms and WPF technologies.

As far as the aforementioned ARM64 support, individual items providing that came mainly from contributor Jeremy Sinclair, including:

  • Prepare solution and property files for ARM64 port. Thanks @snickler!
  • Port unhandled exception handler to ARM64. Thanks @snickler!
  • Port of the Settings projects to ARM64. Thanks @snickler!
  • Port of most of the PowerToys to ARM64. Thanks @snickler!
  • Port of the debug utilities to ARM64.

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