-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSIX packaging for arbitrary .NET project types #4932
Comments
Note, UWP (on .NET 9) also uses that package, so it's already the case that it supports several different frameworks. The MSIX tooling itself doesn't really care about the UI framework in the first place. Have you tried using it with an Avalonia/WPF/WinForms app already, as a test? Did you get any errors in particular? Knowing that could be useful as a starting point 🙂 cc. @Scottj1s |
Single project MSIX packaging works „out of the box“ for WinForms 🤯 I created a Blank App, Packaged (WinUI 3 in Desktop) and copied over the When I tested this before opening this issue I used only the online documentation for MAUI MSIX packaging and did not use samples from project templates which did not work. Current state of tested project types and configurations (all without reference to
If everything works, I will close this issue and open issues at the respective docs repositories to inform developers about this amazing feature. |
This aligns with what I was expecting, and it was one of the reasons why we decoupled the MSIX tooling in its own package 🙂 |
Just to clarify, is this an official statement that this package is supported in arbitrary projects? If it is, where can we find the documentation, or if it doesn't exist yet, when can we expect the documentations? |
It's not an official statement, no. Right now, the package is only officially supported for UWP, and it will be officially supported for WinUI 3 when WinAppSDK switches to it as well in a future release. I will see if we can add documentation to make this overall support official though. I'm just saying in the meantime, people can try it out on other frameworks (eg. WinForms, WPF), and it should work fine, in theory 🙂 |
That's right. I can build and deploy arbitrary projects as MSIX using Visual Studio's launch configuration. However, I faced a few problems:
|
Motivation
The .NET SDK supports streamlined MSIX publishing for WinUI 3 and MAUI projects. For other project types one can use an application packaging project. Packaging projects are cumbersome to use, more complicated to use than
dotnet
in CI pipeline and cannot pass MSBuild properties to child projects easily.Desired solution
I would like to have MSIX packaging tools for arbitrary .NET project types including Avalonia, WPF, WinForms, Console. It should be compatible with other features like single file executable, trimming and Native AOT.
Additional context
I originally posted this issue at dotnet/sdk#45045. However, as @Sergio0694 pointed out, MSIX packaging functionality is already implemented in
Microsoft.Windows.SDK.BuildTools.MSIX
and could be extended to support other frameworks than WinUI 3 or MAUI. Unfortunately, I could not find the source code for that NuGet package and hope that I am not totally wrong by opening this issue here.The text was updated successfully, but these errors were encountered: