Open saigkill opened 6 months ago
Hi
Same problem here. In my case, I have a WinUI 3 application and my pipeline can't generate msix package through MsixPackaging@1 task. The logs shows 0 warnings and 0 errors and the pipeline finishes OK, but no msix package is generated.
Does your solution include a Windows Application Packaging Project?
This project defines how the package is to be generated, and is what the packaging task uses to drive its work. Behind the scenes, the task is simply calling MSBuild with the appropriate parameters that you could be setting on your own. But if the WAP project is not present, there won't be anything to handle these parameters. That is why there is no generated package or any error. See also #586
So, for a WinUI 3 application, creating a separate WAP project is still mandatory to make MSIX packages in Azure Pipelines?. Here you can read for this kind of project you can set just one project to make MSIX packages. There is no way to set in the pipeline the reference to the WinUI 3 project as a WAP?. Im setting the manifest file of my WinUI 3 app in the pipeline task:
Also I tried with GitHub Actions, following this guide, which starts with a single-project MSIX WinUI 3 project, like mine, but no luck. Exactly the same behavior: 0 errors, 0 warnings and 0 packages generated.
Ok, after lots of hours of research, here are my conclusions:
If you want to create a WinUI 3 application with net8, forget (for now) the idea to set CI/CD with Azure Pipelines or GitHub Actions. With a single csproj including msix packaging simply it won't work.
To set CI/CD with WinUI 3, you must use net6 and a separate project for the package (in Visual Studio, 'Blank App, Packaged with Windows Application Packaging Project'). But be aware that with this kind of project if you want to migrate to net8 its a true pain (i gived up after hours and hours of trying to solve warnings and errors).
So for now, we'll start manually creating appinstallers without automatic CI/CD :-(
Does your solution include a Windows Application Packaging Project?
In genral it is a MAUI Project. Inside platforms/Windows/ the projecttemplate has already:
Maybe the Task don't looks inside that location? Do i need the WAP Project additional?
Project MSIX SDK with MAUI app. Project location: https://dev.azure.com/saigkill/JobApplicationManager
Describe the bug I'm using the MSIX build and package task. After the task, it will be marked as succeeded, but no MSIX package can be found.
To Reproduce
Expected behavior In general i'm expecting the produce of a MSIX package, or a failed status.
Screenshots![image](https://github.com/microsoft/msix-packaging/assets/75621/9a4fe239-9ae7-4f0c-9258-bce350222488)
Platform Windows
Additional context
So i'm confused. On the one side the project is build correctly, and on the other side not. And i don't know, how i can fix it.