Deploy/debug 应用程序从 VS 2019 到 windows 10 手机 phone 通过 USB

Deploy/debug app from VS 2019 to windows 10 mobile phone via USB

我有一些旧的 windows 10 部手机 phone,我想把它作为我孩子的音乐设备重获新生。由于我手头有 Visual Studio 2019 Enterprise,所以我想尝试自己创建一些东西。

不 我尝试创建一个 UWP 应用程序和一个 Xamarin 应用程序并尝试在 phone 上调试它们(通过 USB 连接,启用开发者模式,解锁)。但是我都得到了这个错误:

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 ... HRESULT: 0x8007274D) [0x8007274D]

应用程序在创建项目后仍处于初始状态,未进行任何修改。调试的设置设置为:Debug、ARM、Device

我有一些使用旧 Visual Studio 版本和 windows phone 7 的经验,那时候它很管用,我可以 google 提出的所有文件都建议,虽然有新的方法,但它应该仍然可以通过 USB 工作。

如果您打算开发Windows10 Mobile App,您需要使用Visual Studio2017,并确保应用程序的目标版本低于14393。

Visual Studio2019不再支持在手机上部署UWP应用

此致。

有时我必须重启类似 windowsphone ipoverusb 的服务