C#C
C#2y ago
Thalnos

Need help withDeployment / Publishing of .Net Maui App

I am following this tutorial here to publish my .Net Maui app to Windows https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/publish-visual-studio-folder?view=net-maui-8.0
I have navigated "Project > Publish > Create App Package" in Visual studio. I have created the publish profile that you can see on my screenshot. Notice even tho I have set the
Configuration
to
Release (Any CPU)
, I manually had to change the Ouptut from
bin\debug......
to
bin\release.......
which seems weird. But so far so good.
I have checked "check automatically for updates" and "every time app is started".
I chose
\\SomeNAS\Software\AppName
as Installer Location.
Once the process is finished I can find a folder under
bin\Release\net6.0-windows10.0.19041.0\win10-x64
called
AppPackages
which contains a
AppName_1.0.0.0_Test
folder.
I moved that folder to the installer location that I specified on the NAS device.
Users can succesfully install by executing the
AppName.msix
file from within this
AppName_1.0.0.0_Test
folder on the NAS device.

However, the tags I have set to automatically check for updates on application launch everytime the application launches, doesn't work.
When I publish a new version the same way I did with the previous version, using automatically incremented version number, and again move the
AppName_1.0.1.0_Test
folder to the Installer Location on the NAS device, on next application start there is no installer coming up and prompting to install the new version from the Installer Location.

Now my question is why doesn't this work as expected? Do I have to create the Installer file myself and connect it to my App? I cannot find any, neither within my App directories, nor on the NAS.
image.png
Was this page helpful?