Categories: Cyber Security News

Microsoft Launches Open-Source WinApp CLI to Streamline Windows App Development

Microsoft has unveiled the public preview of WinApp CLI (winapp), a new open-source command-line tool designed to simplify Windows app development for developers using diverse frameworks outside Visual Studio or MSBuild.

Hosted on GitHub, the tool targets web devs with Electron, C++ experts on CMake, and .NET, Rust, or Dart builders, making modern Windows APIs—like AI, security, and shell features more accessible.

Traditional Windows development burdens developers with SDK management, manifest editing, certificate generation, and complex packaging.

WinApp CLI unifies these into a single interface, letting coders prioritize app logic over setup hassles. Still in early stages, Microsoft released this preview to gather real-world feedback and prioritize features.

Environment Setup (Source: Microsoft)

One-Command Environment Setup

Kickstart projects effortlessly with winapp init. This command downloads SDKs, generates C++/WinRT projections, creates manifests, assets, certificates, and handles dependencies, replacing error-prone manual steps.

For team consistency or CI/CD, run winapp restore to replicate environments. Integrate via GitHub/Azure DevOps actions for automated setups.

Modern APIs demand package identity for security and AI features, but testing often requires full packaging. WinApp CLI bypasses this: winapp create-debug-identity my-app.exe adds identity to executables, speeding up inner-loop debugging. Samples and guides show toolchain integrations.

Demo (Source: Microsoft)

Stumbling blocks like appxmanifest.xml and certs are automated. winapp init handles basics, while targeted commands shine:

  • winapp manifest update-assets C:imagesmy-logo.png: Updates manifest images in correct ratios.
  • winapp cert generate: Creates and installs self-signed dev certs for sideloading.

Packaging for distribution? winapp pack ./my-app-files –cert ./devcert.pfx produces store- or sideload-ready MSIX files.

Electron users get an npm packagefor scaffolding C++/C# addons with Windows App SDK access. Debug viawinapp node add-electron-debug-identityto inject identity intonpm start`, enabling AI APIs like Phi Silica without plumbing. Explore NodeJS AI projections.

Install via winget install microsoft.winappcli or npm install –save-dev @microsoft/winappcli. Quick-start guides cover Electron, .NET, C++/CMake, and Rust.

Microsoft invites feedback on GitHub to shape future updates. This tool promises to democratize Windows development, especially for security-conscious apps leveraging package identity.

Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.

The post Microsoft Launches Open-Source WinApp CLI to Streamline Windows App Development appeared first on Cyber Security News.

rssfeeds-admin

Recent Posts

Ideals Like Full-Time Employment and Job Security Are ‘Too Romantic’ in Game Dev, Says Monument Valley Studio CEO

The CEO of Monument Valley developer Ustwo Games, Maria Sayans, has outlined the studio needs…

56 minutes ago

New Xbox Boss Says ‘We Know We Have Work to Do’ as Console Revenue Continues to Plummet

New Xbox boss Asha Sharma has acknowledged the ongoing financial struggles of Microsoft’s gaming business,…

56 minutes ago

New Vect 2.0 Ransomware Operation Expands Multi-Platform Attacks

The cybersecurity landscape is facing severe new challenges as the sophisticated Vect 2.0 Ransomware-as-a-Service (RaaS)…

2 hours ago

Linux Kernel 0-Day “Copy Fail” Affects Distros Since 2017

A critical zero-day vulnerability in the Linux kernel has been publicly disclosed, allowing any unprivileged…

2 hours ago

Long Shifts, High Turnover Strain Michigan Prison Workers

LANSING, MI (WOWO) Staffing shortages continue to challenge Michigan’s prison system, with some facilities reporting…

2 hours ago

Linux Kernel 0-Day “Copy Fail” Roots Every Major Distribution Since 2017

A critical zero-day vulnerability in the Linux kernel has been publicly disclosed, enabling any unprivileged…

2 hours ago

This website uses cookies.