环境:Hololens 2 Unity 2019.4.20.f1c1 VS2019
之前可以正常编译的工程突然就不能编译了,推测可能是Hololens 2更新了系统,因为WIN SDK兼容性导致原来的程序无法编译了。编译报错:
Error DEP6957: Failed to connect to device '127.0.0.1' using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings. COMException - No connection could be made because the target machine actively refused it. (Exception from HRESULT: 0x8007274D) [0x8007274D]
解决方案:
打开VS2019->调试->XXXX(工程名)调试属性
将目标平台版本改为10.0.22621.0,然后可正常编译。