我们公司更改了其AD域后,我收到了此错误消息。使用VS 2019和Windows 10进行UWP应用开发(1903)
C:\ Program Files(x86)\ Microsoft Visual Studio \ 2019 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v16.0 \ AppxPackage \ Microsoft.AppXPackage.Targets(4469,5):错误APPX1204:无法签名'D:\ AzureDevOps-Workspace \ UWP \ Main \ BoardPACWinApp \ bin \ x64 \ Release \ BoardPACWinApp_3.51.11.0_x64.appx'。SignTool错误:找不到符合所有给定条件的证书。5> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2019 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v16.0 \ AppxPackage \ Microsoft.AppXPackage.Targets(4469,5):错误APPX1204:===== =====构建:4成功,1失败,1最新,跳过0 ==========
一旦我们迁移到新域,没有人可以创建一个应用程序包以发布到Microsoft商店或旁载。项目正在调试和发布模式下运行。唯一的问题是它不允许发布。
I have tried opening the project on VS 2015 and creating a test certificate but no luck. (Not sure the test certificate has to do anything about this error though) In UWP, Signing tab is by default disabled.
Everything was ok until the domain change. Administer privileges also given to us on the new domain.
I tried repairing the VS 2019 and no change.
signtool.exe also available in the PC.
I looked at the verbose enabled output windows to see if anything is missing. but besides "No certificates were found that met all the given criteria." there were no other issue logged.
I can see all the valid certificates and they haven't got expired
Highly appreciated all your solutions and guidance. Thank you.
Good news! I found a solution which worked for me and I hope this will works for you all as well.
When your domain changed all the test certificates you used on your UWP app will gets invalid. SO you have to create a new certificate on new domain in order to get the app publishing to work. I'm not a big fan of command line so what I did was, using the VS 2015 I generates a test certificate as per the image below. When it's done creating it in VS 2019 you will see the new certificate you create under new domain and it works like a charm.
I heard MakeCert tool can be used to create the certificate without needing the VS 2015.
You also can create a certificate that can be used by your co-workers. Refer to the image below.
使用IE来获取您的代码签名证书,并按照上面的截图进行导出。只需在导出时添加其域帐户,然后要求他们将其导入PC上的“当前用户”下即可。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句