E009

Windows MSIX Packaging Made Simple

· 1:54

Automate .NET MAUI Windows MSIX packaging with GitHub Actions, align package identity and signing certificates, and include runtime dependencies for controlled testing.

Windows MSIX Packaging Made Simple cover

PRESS PLAY. FIND AN IDEA.

Listen to the episode

Show Notes

Your Windows build succeeds, but the application refuses to install. Why?

Windows MSIX packaging involves more than compiling an application. Package identity, signing certificates, trust, and dependencies all play important roles.

In this episode of the TSJDEV Apps Podcast, Thomas Sebastian Jensen explores how GitHub Actions can automate Windows MSIX packaging for .NET MAUI applications.

In this episode

  • Understanding MSIX package identity.
  • Why the certificate subject must match the manifest publisher.
  • Signing packages with GitHub Actions.
  • The difference between signed and trusted applications.
  • Packaging Windows App Runtime dependencies.
  • Why self-signed certificates are suitable for controlled testing, not public production releases.

Coming next

Finding known security vulnerabilities in your NuGet dependencies.

TSJDEV Apps Podcast - Short Episodes. Big Developer Ideas.

Full Transcript

Your GitHub Actions workflow completed successfully. Your Windows application was packaged. But when someone tries to install it, Windows refuses.

What went wrong?

Welcome to the TSJDEV Apps Podcast! Short Episodes. Big Developer Ideas.

I’m Thomas Sebastian Jensen, and today we’re talking about Windows MSIX packaging.

After exploring automated Android and iOS builds, let’s complete our cross-platform journey with Windows.

For .NET MAUI applications, MSIX provides a structured way to package and distribute Windows applications.

But creating an MSIX file is only part of the process.

There are three important things to understand.

First, the package identity.

Your Windows application manifest contains a publisher identity, which must match the certificate used to sign the package.

Second, the signing certificate.

For local testing, we can generate a self-signed certificate and securely store its private key using GitHub Secrets.

Our workflow then uses this certificate to create a signed MSIX package.

But here’s something important.

A signed application isn’t necessarily a trusted application.

The target computer must trust the certificate before installation can succeed.

And third, dependencies.

Your application might require a compatible Windows App Runtime that isn’t installed on the target machine.

That’s why my example workflow collects the MSIX package, the public test certificate, and any required runtime dependencies.

Everything is bundled into a downloadable build artifact.

Remember, this self-signed certificate approach is intended for controlled testing, not public production distribution.

The takeaway?

A successful build doesn’t automatically mean successful installation.

But what if the problem isn’t your packaging at all?

What if one of your NuGet dependencies contains a known security vulnerability?

That’s our topic for the next episode.

Stay curious, keep experimenting, and keep building!

Links & Resources