错误APPX1204:无法签署UWP项目 [英] Error APPX1204: Failed to sign UWP Project

查看:73
本文介绍了错误APPX1204:无法签署UWP项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台装有VS 16.4.5的PC.我一直能够成功创建和发布UWP项目,但是自上周以来,我不知道每次尝试构建任何UWP项目(甚至是虚拟项目)时,都会收到此错误.

I have a PC with VS 16.4.5. I've been always able to create and publish succesfully UWP projects, but since last week, I have no idea what happened I receive this error every time I try to build any UWP project (even dummy ones).

1>------ Build started: Project: App1, Configuration: Debug x86 ------
1>  App1 -> C:\Users\my_user\source\repos\App1\App1\bin\x86\Debug\App1.exe
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(4573,5): error APPX1204: Failed to sign 'C:\Users\my_user\source\repos\App1\App1\bin\x86\Debug\App1_1.0.4.0_x86_Debug.msix'. 

我一直很拼命,今天早上格式化了我的PC,再次安装了所有东西,能够生成一个程序包,但是我不知道是否是因为我安装了一些Xamarin SDK和Android模拟器,开始失败了再次签署包裹.我还在受信任的权威根"中安装了证书,但是我不知道发生了什么.

I've been so desperate that I formated my PC this morning, installed everything again, Was able to generate a package, but then I don't know if it's because I installed some Xamarin SDKs and Android simulator, started to fail again signing the package. I also installed a certificate in to the Trusted Authority Roots, but I have no clue what is happening.

如果我创建一个新的UWP项目,请为其创建一个测试证书,该证书会失败.

If I create a new UWP project, create a Test certificate for it, fails miserably.

我试图在以下位置使用SignTool.exe生成软件包:

I tried to generate a package with SignTool.exe in:

C:\ Program Files(x86)\ Windows Kits \ 10 \ bin \ x64 \ signtool.exe

但是添加什么参数都没有关系,在命令行上不会产生任何响应或错误

but it doesn't matter what parameters i add, it doesn't yield any response or error on the command line

谢谢

推荐答案

Microsoft正在对问题进行分类.

The problem is under triaged by Microsoft.

在此链接上,您可以看到进度.

At this link you can see the progress.

https://developercommunity.visualstudio.com/content/problem/934749/failed-to-sign-appx.html

这篇关于错误APPX1204:无法签署UWP项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆