Microsoft has unveiled the latest iteration of its Windows App Development CLI (winapp), now at version 0.2, introducing a host of features that developers have been eagerly awaiting. Principal software engineer Nikola Metulev shared insights on this release, emphasizing its foundation in community feedback and the incorporation of essential functionalities.
Key Features of Windows App Development CLI v0.2
This update marks a significant step forward, particularly with the introduction of first-class .NET project support. Developers can now seamlessly integrate .NET projects, including WinUI 3, Windows Presentation Foundation (WPF), Windows Forms, and .NET console applications, directly into winapp. By navigating to the project directory and executing winapp init, the tool automatically aligns the project with the appropriate Windows SDK version, adds necessary NuGet references, and generates the requisite XML and Assets folders. For further details, developers can explore the functionality on the winappCLI GitHub page.
Another noteworthy enhancement is the addition of manifest placeholders. Developers can now utilize Visual Studio-style placeholders such as $targetnametoken$ and $targetentrypoint$. These placeholders are resolved automatically during the app packaging process, streamlining development workflows.
The integration of Microsoft Store CLI commands into winapp is also a significant development. Initially revealed in February, the Microsoft Store CLI has been perceived by some as redundant alongside the Windows Package Manager (winget). However, developers can now execute Store CLI commands directly within winapp by typing winapp store followed by the desired commands and arguments.
In response to user feedback, Microsoft has revamped the help and error messaging system within winapp. The winapp –help command now presents information in a more organized manner, moving away from a dense block of text to a more user-friendly format. Additionally, error messages have been refined, with the introduction of a –verbose option for those seeking detailed insights into issues.
Beyond these major updates, Microsoft has implemented various other improvements. New commands for external catalogs and package identity have been added, alongside enhancements to winapp pack and manifest update-assets. Furthermore, a comprehensive Flutter guide and sample project are now available, illustrating how to effectively utilize Windows App SDK APIs, debug with identity, and package a Flutter Windows app using the Windows App Development CLI.