简体   繁体   English

在VS2019中使用pfx文件获取证书以构建uwp应用

[英]Use a pfx file for Certificate with VS2019 building a uwp app

I'm using the ide Visual studio 2019. I create a uwp app and i want to install the app to a computer without publishing it to the playstore. 我正在使用ide Visual Studio2019。我创建了一个uwp应用程序,我想将该应用程序安装到计算机上而不将其发布到playstore。

I created a pfx file (certificate). 我创建了一个pfx文件(证书)。 Now i want to integrate the pfx file in the app manifest for deploying purposes. 现在,我想将pfx文件集成到应用清单中以进行部署。 With Visual Studio 2019 i can only show the certificate and view the data. 使用Visual Studio 2019,我只能显示证书并查看数据。

But i didn't find a way to browse the own pfx file. 但是我没有找到浏览自己的pfx文件的方法。

Now i want to integrate the pfx file in the app manifest for deploying purposes 现在我想将pfx文件集成到应用清单中以进行部署

You could create your app package sideload file using Visual Studio. 您可以使用Visual Studio创建应用包的侧载文件。

Steps for creating the sideload file: Solution Explorer-> Right-click the project ->choose Store->Create App Packages -> select I want to create packages for sideloading ->select Always for Generate app bundle >Create 创建侧载文件的步骤:解决方案资源管理器->右键单击项目->选择商店->创建应用程序包->选择我要创建用于侧载的程序包->选择始终生成应用程序包>创建

Steps for sideloading the app package: enable your device for development -> install the signing certificate to the Trusted People or Trusted Publishers Certification Authorities store ->double clicking the app package file(Windows 10 Anniversary Update or later. ) You could see more details in document: Create an app package upload file and Sideload your app package on Windows 10 Anniversary Update or later 侧面加载应用程序包的步骤:启用设备以进行开发->将签名证书安装到“受信任的人”或“受信任的发行者”证书颁发机构商店中->双击应用程序包文件(Windows 10周年更新或更高版本。)您可能会看到更多详细信息文档中的内容: 创建一个应用程序包上传文件,在Windows 10周年更新或更高版本上将应用程序包侧面 加载

I found the simplest way was to use VS2017 to create and assign the certificate. 我发现最简单的方法是使用VS2017创建和分配证书。 VS2019 has removed the UI, though it appears they are considering bringing some or all of it back. VS2019删除了UI,尽管看起来他们正在考虑将其中的一部分或全部恢复。

Further reading can be found on this Visual Studio Developer Community discussion . 可以在此Visual Studio开发人员社区讨论中找到更多阅读内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM