AppService isn't exposed after packaging to .msix

Miguel Rubio 0 Reputation points
2025-08-05T11:14:39.4033333+00:00

I have an Avalonia app targeting Windows desktop (thus, WinUI3 app).
From that project, I reference a UWP Runtime Component which handles calls to an AppService

Lastly, using a WAP project, I package the app into a .msix package, which declares in its manifest the AppService endpoint.

Everything works well when deploying the WAP project from Visual Studio (both in Debug and Release modes), but when I publish it using Publish -> Create app packages... and I then install it in the PC, the AppService starts to return AppUnavailable status when my test client tries to connect.

I have already checked namings are ok. What could it be?

Here there's a minimum reproducible example. Cloning it and deploying it from Visual Studio, and then installing it from its .msix package should denote that it works in the first scenario and it stops working in the second one.

Thanks a lot in advance for any help you can provide me

Developer technologies | .NET | .NET Runtime
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.