UWP 应用程序无法启动
UWP App Won't Start
我有一个 UWP 应用程序。我正在使用 Visual Studio 2017 15.4.1。 UWP 应用是商店应用,已部署到 Microsoft Store。我的应用程序在商店中运行良好,当我在 Visual Studio 中点击播放时它也运行良好。然后最近,一个孤立的存储问题开始出现,所以我进入 "Apps & Features" 中的应用程序并点击高级选项 -> 重置。不知何故,这破坏了我在机器上安装的应用程序。我们的应用程序不再显示为已安装的应用程序,当我尝试从商店安装该应用程序时,我收到错误代码 0x80073CF9。所以,我无法在我的机器上卸载或重新安装。我试过 运行ning sfc /scannow 等来找出问题所在,但似乎无济于事。
这甚至不会让我太担心,但我现在甚至无法开发,因为当我尝试 运行 来自 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
我在构建
的输出 window 中收到此错误
4>DEP0700: Registration of the app failed. [0x80073CF9] Another user
has already installed an unpackaged version of this app. The current
user cannot replace this with a packaged version. The conflicting
package is [APP NAME] and it was published
by CN=[Publisher].
我做错了什么?
您可以使用Get-appxpackage -allusers *<appname>* | Remove-AppxPackage
allusers 选项在这里很重要。
您也可以尝试手动删除C:\Users\\AppData\Local\Packages\中应用程序缓存文件夹的内容。如果你在这里有一个锁定文件,整个部署将失败。
我有一个 UWP 应用程序。我正在使用 Visual Studio 2017 15.4.1。 UWP 应用是商店应用,已部署到 Microsoft Store。我的应用程序在商店中运行良好,当我在 Visual Studio 中点击播放时它也运行良好。然后最近,一个孤立的存储问题开始出现,所以我进入 "Apps & Features" 中的应用程序并点击高级选项 -> 重置。不知何故,这破坏了我在机器上安装的应用程序。我们的应用程序不再显示为已安装的应用程序,当我尝试从商店安装该应用程序时,我收到错误代码 0x80073CF9。所以,我无法在我的机器上卸载或重新安装。我试过 运行ning sfc /scannow 等来找出问题所在,但似乎无济于事。
这甚至不会让我太担心,但我现在甚至无法开发,因为当我尝试 运行 来自 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
我在构建
的输出 window 中收到此错误4>DEP0700: Registration of the app failed. [0x80073CF9] Another user has already installed an unpackaged version of this app. The current user cannot replace this with a packaged version. The conflicting package is [APP NAME] and it was published by CN=[Publisher].
我做错了什么?
您可以使用Get-appxpackage -allusers *<appname>* | Remove-AppxPackage
allusers 选项在这里很重要。
您也可以尝试手动删除C:\Users\\AppData\Local\Packages\中应用程序缓存文件夹的内容。如果你在这里有一个锁定文件,整个部署将失败。