Hololens 2 模拟器因其他原因而失败

Hololens 2 emulator failed with Alternating reasons

所以我一直在 Unity 中构建 Windows 混合现实工具包 (MRTK) 示例项目,然后尝试从 Visual Studio 2019 编辑器将其部署到 Hololens 2 模拟器,但每次由于不同的原因,它未能 运行。
有时 VS2019 无法完全部署并出现错误:

    Updating the layout...
TimeoutException: This operation returned because the timeout period expired. (Exception from HRESULT: 0x800705B4)
TimeoutException: This operation returned because the timeout period expired. (Exception from HRESULT: 0x800705B4)
DEP0600: Deployment failed. Failed to deploy through new deployment pipeline.
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

还有一次,应用部署成功,但要求我提供一个奇怪的麦克风权限
在我批准后,它立即崩溃并出现运行时间错误:

DEP6100: The following unexpected error occurred during bootstrapping stage 'Connecting to the device': NullReferenceException - Object reference not set to an instance of an object.

VS2019 没有给我关于这些错误的任何有用信息,这些错误一直在随机且不一致地发生。
我曾尝试用谷歌搜索这些错误,但两天都没有找到有用的信息。

这些是我的工具
机器:戴尔XPS13 Unity版本:2021.2.14f1
MRTK 版本:2.7.3
Visual Studio社区2019版本:16.11.9
Hololens 2 模拟器版本:10.0.20348.1450
(现在我将回答我自己的问题)

于是摸索了2天,玩了MRTK版本,Unity版本,VS版本,Hololens 2模拟器版本,发现问题出在Hololens 2模拟器加载时间超长(~ 15 分钟)导致 VS2019 部署过程中出现一些“超时”
所以起初我尝试在 Visual Studio 中部署应用程序之前打开模拟器,但这没有帮助,因为 VS2019 打开了它自己的 Hololens 2 模拟器实例。
最终解决问题的方法是像往常一样部署(绿色三角形),让 VS2019 的 Hololens 2 模拟器实例启动,而不是等待大约 15 分钟,直到 VS19 给出 "Deployment failed" 错误。
比 VS 会弹出一个对话框说“错误。你想继续吗?”和 select NO.
不要关闭 Hololens 2 模拟器。
之后 运行 再次(绿色三角形)- 这次部署会成功,但随后会出现 运行 时间错误。
按红色方块停止运行,最重要的是不要关闭模拟器。
现在尝试第三次部署 - 大约需要 2 分钟,并且会如预期的那样 运行。