Skip to content
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

Publish as MSIX bundle or APPX bundle for Windows #12327

Open
1 task
BrandonStudio opened this issue Dec 29, 2022 · 9 comments
Open
1 task

Publish as MSIX bundle or APPX bundle for Windows #12327

BrandonStudio opened this issue Dec 29, 2022 · 9 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) blocked Work that is currently blocked external partner/winui WinUI / Project Reunion platform/windows 🪟 proposal/open t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)
Milestone

Comments

@BrandonStudio
Copy link

BrandonStudio commented Dec 29, 2022

Description

Visual Studio can now only publish single target msix, but I'd like to create multi-targeting app (both x64 and ARM64 or more) all in once. It seems there is no way to do this

Public API Changes

It's a problem of build tools, there's nothings to do with API

Intended Use-Case

Same as above

Depends on

@Eilon Eilon added the area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) label Dec 29, 2022
@mattleibow
Copy link
Member

It appears the Windows App SDK does not support building a msixbundle from dotnet.

@evelynwu-msft do we have anymore info?

internal issue: https://dev.azure.com/microsoft/OS/_workitems/edit/31482969

@mattleibow mattleibow added platform/windows 🪟 partner/winui WinUI / Project Reunion legacy-area-desktop Windows / WinUI / Project Reunion & Mac Catalyst / macOS specifics (Menus & other Controls)) labels Jan 6, 2023
@rachelkang rachelkang added blocked Work that is currently blocked external labels Jan 12, 2023
@mattleibow
Copy link
Member

Been hacking away at this and I think I got something that will make this all work wonderfully:

https://gist.github.com/mattleibow/8332ed79b569c9d7bbdae64a6e8142a6

If we get some testing on this we may be able to include somewhere until the WASDK issue is resolved.

@BrandonStudio
Copy link
Author

BrandonStudio commented Jan 15, 2023

@mattleibow is it for build only? Is it for CLI only? Can I publish my project as bundle in Visual Studio?

@mattleibow
Copy link
Member

I do not believe there is a way to publish using this from the IDE, but the CLI will work.

@samhouts samhouts added this to the Backlog milestone Jan 26, 2023
@ghost
Copy link

ghost commented Jan 26, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@Eilon Eilon added t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK) and removed legacy-area-desktop Windows / WinUI / Project Reunion & Mac Catalyst / macOS specifics (Menus & other Controls)) labels May 10, 2024
@mnxamdev
Copy link

I do not believe there is a way to publish using this from the IDE, but the CLI will work.

@mattleibow how can I use your workaround to generate a '.msixupload' file to be able upload to the Microsoft Store? We're getting ready to release and I feel like I'm about to tell management that after all our work to start on this endeavor we won't be able to release. Here is what I'm currently using based off of the original Xamarin.Forms app that we moved to MAUI:

>dotnet.exe publish MyApp.csproj --framework net8.0-windows10.0.22621.0 --configuration Release --self-contained -nologo -nr:false -nologo -nr:false -p:AppxBundle=Always;UapAppxPackageBuildMode=StoreUpload;AppxBundlePlatforms="x86|x64"; /t:GenerateMsixBundle

@alexlogvin
Copy link

alexlogvin commented Jan 5, 2025

I do not believe there is a way to publish using this from the IDE, but the CLI will work.

@mattleibow how can I use your workaround to generate a '.msixupload' file to be able upload to the Microsoft Store? We're getting ready to release and I feel like I'm about to tell management that after all our work to start on this endeavor we won't be able to release. Here is what I'm currently using based off of the original Xamarin.Forms app that we moved to MAUI:

>dotnet.exe publish MyApp.csproj --framework net8.0-windows10.0.22621.0 --configuration Release --self-contained -nologo -nr:false -nologo -nr:false -p:AppxBundle=Always;UapAppxPackageBuildMode=StoreUpload;AppxBundlePlatforms="x86|x64"; /t:GenerateMsixBundle

Read more here #22445 (comment)

@Johno-ACSLive
Copy link

When will this be resolved? - given how long it's been and that MAUI has been available for a while it seems silly to think I can't just run dotnet publish and generate a bundle targeting multiple architectures for upload to the Microsoft Store (like I can for iOS and Android). The documentation and samples provide no reasonable effort to showcase how to workaround the limitations of MSIX and Windows App SDK.

This is an urgent issue that should have been addressed as part of the .NET 9 release!

@Mark-NC001
Copy link

Thanks @mattleibow your work-around produces a msixbundle file for my Maui app that successfully updates an appxbundle of my Xamarin app. (before the work-around I was getting error 0x80073cf3).

@Johno-ACSLive

This is an urgent issue that should have been addressed as part of the .NET 9 release!

Agreed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) blocked Work that is currently blocked external partner/winui WinUI / Project Reunion platform/windows 🪟 proposal/open t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)
Projects
None yet
Development

No branches or pull requests

9 participants