C
C#15mo ago
Kroks

❔ .NET MAUI Blazor Windows Application does not start

Hi I wanted to deploy my application, I followed this tutorial: https://learn.microsoft.com/de-de/dotnet/maui/windows/deployment/overview However even after installing the certificate, I get this text when trying to install the msix: The publisher certificate of this app package could not be verified.Contact your system administrator or the app developer to get a new app package with verified certificates. The root certificate and all the instant signature certificates in the app package need to be verified (0x800B010A)
Publish a .NET MAUI app for Windows - .NET MAUI
Learn how to package and publish a Windows .NET MAUI app.
22 Replies
Kroks
Kroks15mo ago
@Dropps.cs
Dropps
Dropps15mo ago
your link seems broken
Kroks
Kroks15mo ago
Kroks
Kroks15mo ago
works for me
Dropps
Dropps15mo ago
(nvm my internet is slow as fuck)
Kroks
Kroks15mo ago
kk
Dropps
Dropps15mo ago
that link speaks nothing of a certificate
Kroks
Kroks15mo ago
sorry wrong link wtf sec
Kroks
Kroks15mo ago
Veröffentlichen einer .NET MAUI-App in einem Ordner für Windows - ....
Erfahren Sie, wie Sie eine Windows .NET MAUI-App in einer Dateifreigabe in Visual Studio packen und veröffentlichen.
Kroks
Kroks15mo ago
was a sub-link in that link
Dropps
Dropps15mo ago
is your certificate a valid one? @Kroks
Kroks
Kroks15mo ago
Well I generated it in VS. It suggested me to generate it
Dropps
Dropps15mo ago
i dont use VS iam trying to replicate that rn but for me it works i think you could try regenerating that certificate and just try again maybe there was an error
Kroks
Kroks15mo ago
hm kk. Why tf cant it just compile to a .exe? MSIX is cancer for deployment imo
Dropps
Dropps15mo ago
versioning and certificates i do that over build server with a always freshly fetched OS image which makes everything extremly clean when compiling and packing
Kroks
Kroks15mo ago
msbuild /restore /t:build /p:TargetFramework=net6.0-windows10.0.19041 /p:configuration=release /p:WindowsAppSDKSelfContained=true /p:Platform=x64 /p:WindowsPackageType=None /p:RuntimeIdentifier=win10-x64 tho I somehow now was able to compile it with this command and the .exe runs
Dropps
Dropps15mo ago
why not use the dotnet build function? dotnet cli is a lot more reliable from my experience dotnet build
Kroks
Kroks15mo ago
yeah could have used that, I just found that as solution in stackoverflow. At the beginning I thought publishing it as .exe does not work? Even MS claims that so I did not even try
Dropps
Dropps15mo ago
you first build an exe and then pack it into an installer
Kroks
Kroks15mo ago
or you ship it directly
Dropps
Dropps15mo ago
thats not the usual way but if it works it works
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.