I'm trying to build and publish very simple hello world Maui application and deploy it with click Once method :
https://learn.microsoft.com/en-us/visualstudio/deployment/clickonce-deployment-dotnet?view=vs-2022
I'm suing this command to build and deploy :
msbuild mauDeployTest.csproj /t:Publish /p:PublishMethod=ClickOnce /p:ApplicationVersion=1.0.0.0 /p:Install=true /p:Configuration=Release
dotnet mage -al mauDeployTest.exe -td "C:\Users\Admin\Desktop\mauiPublishTest\mauiDeployTest\mauDeployTest\bin\Release\net7.0-windows10.0.22621.0\win10-x64"
dotnet mage -new Application -t "C:\Users\Admin\Desktop\mauiPublishTest\mauiDeployTest\mauDeployTest\bin\Release\net7.0-windows10.0.22621.0\win10-x64\mauDeployTest.manifest" -fd "C:\Users\Admin\Desktop\mauiPublishTest\mauiDeployTest\mauDeployTest\bin\Release\net7.0-windows10.0.22621.0\win10-x64" -v 1.0.0.1
dotnet mage -new Deployment -n mauDeployTest -Install true -pub S4H -v 1.0.0.1 -AppManifest "C:\Users\Admin\Desktop\mauiPublishTest\mauiDeployTest\mauDeployTest\bin\Release\net7.0-windows10.0.22621.0\win10-x64\mauDeployTest.manifest" -t "C:\Users\Admin\Desktop\wzz_mauDeployTest.application" -ip true -pu "C:\Users\Admin\Desktop\wzz_mauDeployTest.application"
I manage to successfully create an installer and install the app. But when I'm trying to run app nothing is happening.
The reason why I'm facing such behaviour is can be related with this topic :
https://learn.microsoft.com/en-us/answers/questions/1314646/how-to-run-maui-exe-from-windowsapps-folder
But I this case, I do not understand how I suppose to publishing and deploying apps with clickOnce method.