Project Reunion: Microsoft's attempt to tear down all those barriers it's built for Windows developers over the years

Plus: Bye-bye Xamarin Forms, hello Multi-Platform App UI, for when Universal is not universal enough

Build As its virtual Build conference gets underway, Microsoft has unveiled Project Reunion, described as "our vision for unifying and evolving the Windows developer platform to make it easier to build great apps that work across all the Windows 10 versions."

The history behind corporate veep for Developer Platform Kevin Gallo's statement goes back to the introduction of Windows 8 in 2012 and its new tablet-friendly application platform, sometimes called "Metro" – though Microsoft liked to say "Modern".

Metro was not just about a new user interface, but also security sandboxing, store delivery, and an API called WinRT (Windows Runtime) that was intended to take over from the old Win32 API. Despite the failure of the Windows 8 concept, Microsoft did not abandon WinRT but instead evolved it into the Universal Windows Platform (UWP) for Windows 10 – "Universal" because it ran on multiple Windows platforms including the late and lamented (by some) Windows Phone, Xbox, and HoloLens.

The division of Windows into two platforms has been troublesome for developers, who have had the choice of sticking with Win32 for broad compatibility or adopting UWP to get the benefit of Microsoft's latest for security, deployment, and UI design. Some Windows 10 APIs are UWP-only. The company has been trying for years to make the split more tolerable, adding broad access to the Win32 API for UWP and, on the Win32 side, coming up with things like XAML islands, which let you embed a bit of UWP into a Win32 application.

So what is Project Reunion?

Gallo said it "will unify access to existing Win32 and UWP APIs and make them available decoupled from the OS, via tools like NuGet". The idea seems to be to create packages that enable access to a set of APIs from both Win32 and UWP. "This will provide a common platform for new apps. Plus, it will help you update and modernize your existing apps with the latest functionality," he said.

Gallo added that Microsoft will do the work "to polyfill, as needed, so the APIs work down-level across supported versions of Windows". The key word here is "supported". The latest documentation shows that WinUI 3, which Microsoft now considers the "native UI layer in Windows", requires Windows 10 1803, which is only a couple of years old. Polyfills could perhaps extend that back a bit, but we await further details.

In the meantime, there's a GitHub repo here regarding Project Reunion, and an announcement here.

Windows development compatibility table

Windows development compatibility table

WinUI 3 is significant because it is both the latest UI layer for UWP, and also a UI layer for Win32 applications. At Build, Microsoft is launching WinUI 3 Preview 1. Gallo called this "one of the first components in the Project Reunion journey", suggesting the project is not about introducing yet another kind of Windows application (thank goodness), but more about reducing the friction between UWP and Win32 – friction which Microsoft created back in 2012.

Fluent Design, the officially favoured UI look for Windows 10

Fluent Design, the officially favoured UI look for Windows 10

Part of the WinUI pitch is that it enabled developers to use the Fluent Design System, which represents Microsoft's current thinking about how to design Windows applications and ties in with newer Windows controls.

.NET Multi-Platform App UI

What about when you need to develop for mobile or Mac as well as for Windows? Microsoft has a few suggestions, including coding in JavaScript or TypeScript for React Native, which seems to be in use by the company's Office team among others. There is also Xamarin.Forms, a .NET cross-platform UI toolkit acquired by Microsoft in 2016.

Xamarin was perhaps too easy to pronounce so Microsoft has now announced .NET Multi-Platform APP UI or MAUI. ".NET MAUI is the evolution of Xamarin.Forms," a Microsoft spokesperson told The Reg. "It will allow you to build apps for any device from a single codebase and project system, including desktop and mobile for any operating system. It will be part of the unified .NET in the .NET 6 timeframe." Xamarin.Forms is not the entirety of Xamarin, but specifically the framework that lets you use XAML to define a cross-platform user interface. A MAUI preview is promised by the end of 2020.

.NET MAUI will support Windows and macOS desktop apps, in addition to iOS, Android, and Samsung's Tizen. It will use a single codebase and project system, rather than the multiple projects you get today if targeting multiple platforms. The framework will be supported by VS Code and command-line compilation, in addition to Visual Studio on Windows and Mac.

While this is intended to replace Xamarin.Forms, Microsoft has promised to keep supporting the older framework with new features and bug fixes from now until a year after .NET MAUI is released. "Migration tooling and guidance will be available to provide a smooth transition from Xamarin.Forms to .NET MAUI," Microsoft told us. NET MAUI is open source and can be found here.

Note that .NET MAUI is for .NET 6, but currently even .NET 5.0 is still in preview. At Build, Microsoft said it is releasing .NET 5.0 Preview 4.0, with general availability scheduled for November. This version of .NET is essentially the next big update to the cross-platform .NET Core, but with support (on Windows only) for frameworks such as Windows Forms and Windows Presentation Framework. Thanks to this capability, Microsoft said, it is a unified implementation that supports all workloads across everywhere .NET Core runs. Windows desktop support is the obvious new feature, but the more important aspect of .NET 5.0 is its suitability for microservices and containerized applications running on Azure or elsewhere. ®

Broader topics

Other stories you might like

  • Experts: AI should be recognized as inventors in patent law
    Plus: Police release deepfake of murdered teen in cold case, and more

    In-brief Governments around the world should pass intellectual property laws that grant rights to AI systems, two academics at the University of New South Wales in Australia argued.

    Alexandra George, and Toby Walsh, professors of law and AI, respectively, believe failing to recognize machines as inventors could have long-lasting impacts on economies and societies. 

    "If courts and governments decide that AI-made inventions cannot be patented, the implications could be huge," they wrote in a comment article published in Nature. "Funders and businesses would be less incentivized to pursue useful research using AI inventors when a return on their investment could be limited. Society could miss out on the development of worthwhile and life-saving inventions."

    Continue reading
  • Declassified and released: More secret files on US govt's emergency doomsday powers
    Nuke incoming? Quick break out the plans for rationing, censorship, property seizures, and more

    More papers describing the orders and messages the US President can issue in the event of apocalyptic crises, such as a devastating nuclear attack, have been declassified and released for all to see.

    These government files are part of a larger collection of records that discuss the nature, reach, and use of secret Presidential Emergency Action Documents: these are executive orders, announcements, and statements to Congress that are all ready to sign and send out as soon as a doomsday scenario occurs. PEADs are supposed to give America's commander-in-chief immediate extraordinary powers to overcome extraordinary events.

    PEADs have never been declassified or revealed before. They remain hush-hush, and their exact details are not publicly known.

    Continue reading
  • Stolen university credentials up for sale by Russian crooks, FBI warns
    Forget dark-web souks, thousands of these are already being traded on public bazaars

    Russian crooks are selling network credentials and virtual private network access for a "multitude" of US universities and colleges on criminal marketplaces, according to the FBI.

    According to a warning issued on Thursday, these stolen credentials sell for thousands of dollars on both dark web and public internet forums, and could lead to subsequent cyberattacks against individual employees or the schools themselves.

    "The exposure of usernames and passwords can lead to brute force credential stuffing computer network attacks, whereby attackers attempt logins across various internet sites or exploit them for subsequent cyber attacks as criminal actors take advantage of users recycling the same credentials across multiple accounts, internet sites, and services," the Feds' alert [PDF] said.

    Continue reading

Biting the hand that feeds IT © 1998–2022