Closed MeZdd closed 2 years ago
This is my computer environment
Win10 19043.1288
VS2019 16.11.4
我在升级到最新版的Visual Studio 2019后 (16.11.4)也遇到了这个问题。目前看来可能是因为项目里有两个 UWP project,而更新后的 MSIX Packaging Project 不支持两个 UWP project 同时存在。
解决方案是把MyPhone.TrayApp 的 XamlHost 改成 MyPhone (Universal Windows) 然后把 MyPhone.TrayApp.XamlHost 删掉。 不过我可能要到下个星期之后才有时间解决这个问题。
临时的解决方法是降级Visual Studio。
好的,非常感谢您的回复。由于我刚刚接触Win端开发不久,只大致熟悉了相关语言和IDE,所以暂时对您提供的解决方案无从下手,我对您项目的实现原理很感兴趣,正在艰难研读您的代码。
我在升级到最新版的Visual Studio 2019后 (16.11.4)也遇到了这个问题。目前看来可能是因为项目里有两个 UWP project,而更新后的 MSIX Packaging Project 不支持两个 UWP project 同时存在。
刚才尝试了把 MyPhone.TrayApp
和 MyPhone.TrayApp.XamlHost
从解决方案和 PackagedProject
里删除,发现还是有问题。所以可能不是因为有两个UWP的问题。
Just tested on Visual Studio 2022 (v17.0.0 Preview 4.1), the UWP app launch successfully.
您好,请问现在的办法只能是升级VS或者降级VS吗
您好,请问现在的办法只能是升级VS或者降级VS吗
是的。
请问您编译成功的2019版本是多少呢,我这边好降级到该版本。感谢
请问您编译成功的2019版本是多少呢,我这边好降级到该版本。感谢
我记得我升级之前是 v16.9.x
This issue will be solved after #9
Close because #12 solved this issue.
I compile successfully according to the description in
Readme.md
, but an exception is thrown after clicking open app after runningI am a novice developer of win. After Google search, I found that there may be a version conflict. The version specified in the package reference is inconsistent with the local installation, but I don't know how to locate and solve the problem. I hope to get your guidance. Thank you! I found that you are a Chinese, if it is convenient, I can trouble you to communicate in Chinese. Hope to receive your reply!