简体   繁体   English

UWP应用程序无法启动

[英]UWP App Won't Start

I have a UWP app. 我有一个UWP应用程序。 I'm using Visual Studio 2017 15.4.1. 我正在使用Visual Studio 2017 15.4.1。 The UWP app is a store app and has been deployed to the Microsoft Store. UWP应用程序是一个商店应用程序,已部署到Microsoft Store。 My app was working fine in the store, and it was also working fine when I hit play in Visual Studio. 我的应用程序在商店中工作正常,当我在Visual Studio中玩游戏时它也正常工作。 Then recently, an isolated storage issue started occurring so I went in to the app in "Apps & Features" and hit Advanced Options -> Reset. 最近,一个孤立的存储问题开始出现,所以我在“应用程序和功能”中进入了应用程序并点击了高级选项 - >重置。 Somehow this has fried my app installation on my machine. 不知怎的,这已经在我的机器上炸了我的app安装。 Our app no longer shows up as an installed app, and when I try to install the app from the store, I get an error with a code of 0x80073CF9. 我们的应用程序不再显示为已安装的应用程序,当我尝试从商店安装应用程序时,我收到代码为0x80073CF9的错误。 So, I can't uninstall, or reinstall on my machine. 所以,我无法在我的机器上卸载或重新安装。 I've tried running sfc /scannow etc. to find out what's wrong, but nothing seems to help. 我已经尝试过运行sfc / scannow等来找出问题所在,但似乎没有任何帮助。

This wouldn't even worry me too much, but I can't even develop right now because when I try to run the app from Visual Studio, I get this error: 这甚至不会让我太担心,但我现在甚至无法开发,因为当我尝试从Visual Studio运行应用程序时,我收到此错误:

In order to debug this project, you must consume it from a Windows Store app project that creates a package and is marked as the Startup Project 要调试此项目,必须从创建包的Windows应用商店应用项目中使用它,并将其标记为启动项目

I'm getting this error in the output window from the build 我在构建的输出窗口中收到此错误

4>DEP0700: Registration of the app failed. 4> DEP0700:应用程序注册失败。 [0x80073CF9] Another user has already installed an unpackaged version of this app. [0x80073CF9]另一位用户已经安装了此应用程序的解压缩版本。 The current user cannot replace this with a packaged version. 当前用户无法用打包版本替换它。 The conflicting package is [APP NAME] and it was published by CN=[Publisher]. 冲突的包是[APP NAME],由CN = [Publisher]发布。

What did I do wrong? 我做错了什么?

You can use Get-appxpackage -allusers *<appname>* | Remove-AppxPackage 您可以使用Get-appxpackage -allusers *<appname>* | Remove-AppxPackage Get-appxpackage -allusers *<appname>* | Remove-AppxPackage

The allusers option is important here. allusers选项在这里很重要。

You can also try to manually remove the content of the application cache folder in C:\\Users\\\\AppData\\Local\\Packages\\ . 您还可以尝试在C:\\ Users \\\\ AppData \\ Local \\ Packages \\中手动删除应用程序缓存文件夹的内容。 If you have one locked file here, the whole deployment will fail. 如果此处有一个锁定文件,则整个部署将失败。

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

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