如何使用 windows 10 OS 将 UWP 部署到 Galaxy TabPro S?

How to deploy a UWP to a Galaxy TabPro S with windows 10 OS?

我正在尝试将 UWP 应用程序从我的 Alienware 18、笔记本电脑 Windows 10、版本 1803 部署到平板电脑 Galaxy TabPro S 以及 Windows 10 版本 1803。

我已经在设备目标和 USB 设备发现选项上激活了开发者模式。 首先,我尝试将 USB 数据线从我的笔记本电脑连接到具有 USB-C 端口的平板电脑。

但我的笔记本电脑甚至找不到它。

我想要的是找到一种将 UWP 从笔记本电脑部署到平板电脑的方法,我做了一些研究,发现只有 HoloLens 和 Windows Phone 10,是可使用 USB 连接找到。

那么我应该遵循什么步骤才能成功地将我的应用程序远程调试到 windows 10 平板电脑。

我将不胜感激,因为我尝试进行远程部署,但未能成功找到平板电脑。

https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2017

使用远程调试

确保按照说明进行操作,有时远程调试会被防火墙禁止,因此请检查一下。

或者右键单击您的主项目,转到商店,然后单击创建用于旁加载的程序包,然后将程序包发送到您的三星设备上。

So what step should I follow to successfully remote debug my app to a windows 10 Tablet.

要 运行 远程计算机上的 UWP 应用程序,您必须使用 Visual Studio 的远程工具附加到它。

在某些情况下,远程工具会在您部署到远程设备时自动安装。例如,

For Windows 10 PCs running Creators Update and later versions, remote tools will be installed automatically.

然后,您的远程设备和 Visual Studio 计算机必须通过网络连接或通过 USB 或以太网电缆直接连接。不支持通过 Internet 进行调试。

之后,您需要配置Visual Studio项目以进行远程调试。在项目的属性中,select Debug 并从 Target Device[=] 中选择 Remote Machine 29=] 列表。一般来说,我会输入远程机器的 IP 地址,你可以选择 Find 从 Select Remote Debugger Connection 中选择设备对话框。

下一步,请移至您的平板电脑,您需要设置远程调试器。您必须对远程计算机具有管理权限。然后,打开开始菜单并搜索 Remote Debugger。如果你能找到它,只需正常启动它。如果找不到,则需要手动安装 Remote Tools。有关详细信息,请参阅此 link 至 Download and Install the remote tools. Once the Remote Debugger started, you could do some configurations. After that, you could choose Start Debugging on the Debug menu (Keyboard: F5). The project is recompiled, then deployed to and started on the remote device. Please read Run UWP apps on a remote machine in Visual Studio

平板电脑上的 Windows10 就像在开发机器上一样,支持通过网络而不是 USB 进行远程调试。确保两台机器都处于开发者模式,另一台机器也按照 here. Both should connect to your WiFi as a private network. After that it should be as simple as configuring your project to deploy to the other machine, rather than locally, as described here and here 所述打开设备发现。不要忘记将它们与 PIN 配对。

如果您在开发计算机上托管 Web API,请按照 here 所述配置防火墙。