Right way to package Avalonia project for Windows using MSIX #16093
Replies: 2 comments 3 replies
-
I am not sure how do build an MSIX package from inside of Visual Studio like you are doing but I have done it from the command line before. First you are going to need an app manifest like the one found here. Then you are going to have to make sure it gets published in your build by adding this in your csproj file <ItemGroup>
<None Update="AppxManifest.xml" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup> Next you have to publish your application with a command like this Then move to the directory that the application was published to and run This will give you an unsigned msix file so you will have to sign it with EDIT: When I have done this in the past, I was not using WinRT, so I don't know if there is any special requirements to make it work. |
Beta Was this translation helpful? Give feedback.
-
You also can use Windows Application Packaging Project
Might be a problem, if it can't decide which target framework to run. Should be easily solvable by creating a dedicated project for windows (which is recommended either way). |
Beta Was this translation helpful? Give feedback.
-
I have avalonia application with target frameworks monikers,because I need to use WinRT(only on Windows).
Here is a part of project file. I have error when trying package this app into Windows packaging project. It looks like msix don't know where app executable for Windows is placed. How correct configure WAP and csproj?
Here is an issue on msix repo:
microsoft/msix-packaging#635
Beta Was this translation helpful? Give feedback.
All reactions