英文:
How to Side-load onto another Windows machine with a Self-signed .NET MAUI app?
问题
我使用 PFX 文件为 .NET MAUI Windows 应用创建了一个 MSIX 安装包,并使用自签名证书。当我尝试在另一台运行 Windows 10 的计算机上安装它时,出现以下消息:"此应用程序包的发布者证书无法验证。请联系您的系统管理员或应用程序开发人员以获取具有已验证证书的新应用程序包。应用程序包中签名的根证书和所有直接证书必须经过验证 (0x800B010A)。" 部署目录中包含了 MyApp.msix 和 MyApp.cer 文件。在我的开发计算机上,使用 MSIX 文件进行安装没有问题。
我该如何使用这些文件在另一台没有创建证书的计算机上进行安装?
英文:
I created an installation package with MSIX out of a .NET MAUI Windows app and a self-signed certificate, using a PFX file.
When I try installing it on another Windows 10 machine, I get the following message: "This app package’s publisher certificate could not be verified. Contact your system administrator or the app developer to obtain a new app package with verified certificates. The root certificate and all immediate certificates of the signature in the app package must be verified (0x800B010A)". The deployment directory has MyApp.msix and MyApp.cer in it. On my development machine it is no problem to install using the MSIX file.
How do I use these files to install onto another machine that did not create the certificate?
答案1
得分: 3
I found the answer in this video by Gerald Versluis: Create a .NET MAUI Windows MSIX to Sideload Or Publish to the Microsoft Store
I needed to follow these steps:
- Open the Certificate, MyApp.cer, by double-clicking.
- Click on Install Certificate
- In the Certificate Import Wizard window,
- Select Local Machine and click Next
- Select Place all certificates in the following store
- Browse and select Trusted Root Certification Authorities
- Click Next and take defaults.
After this you should see a pop-up stating that "The import was successful." You now can proceed to side-load install the .NET MAUI app.
This worked for me. There might be minor variations that work as well.
英文:
I found the answer in this video by Gerald Versluis: Create a .NET MAUI Windows MSIX to Sideload Or Publish to the Microsoft Store
I needed to follow these steps:
- Open the Certificate, MyApp.cer, by double-clicking.
- Click on Install Certificate
- In the Certificate Import Wizard window,
- Select Local Machine and click Next
- Select Place all certificates in the following store
- Browse and select Trusted Root Certification Authorities
- Click Next and take defaults.
After this you should see a pop-up stating that "The import was successful." You now can proceed to side-load install the .NET MAUI app.
This worked for me. There might be minor variations that work as well.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论