Windows Server 2016 上的远程调试 UWP 应用 [英] Remote debug UWP app on Windows Server 2016

查看:25
本文介绍了Windows Server 2016 上的远程调试 UWP 应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Windows Server 2016 (x64) 远程调试 UWP 应用程序.原因?我的工作 PC 仍然运行 Windows 7 实例,无法在 Windows 7 机器上部署 UWP 应用.

I would like to use a Windows Server 2016 (x64) for remote debugging of UWP applications. The reason? My working PC still runs a Windows 7 instance and it is not possible to deploy an UWP app on a Windows 7 machine.

我已经在 Windows Server 2016 机器上安装了 Visual Studio 2015 的远程工具并在端口 4020 上启动它.身份验证模式设置为无".我也在服务器上启用了开发人员模式.此外,我在 Visual Studio 中设置了我的项目以使用远程机器进行调试.

I have already installed the Remote Tools For Visual Studio 2015 on the Windows Server 2016 machine and started it on port 4020. Authentication mode was set to "None". I have enabled Developer mode on the server as well. Also I have set up my project in Visual Studio to use the remote machine for debugging.

问题是,每当我尝试将我的解决方案部署(仅部署,甚至不调试)到服务器时,都会发生以下情况:

The problem is, whenever I try to deploy (just deploy, not even debug) my solution to the server, the following happens:

Visual Studio 显示以下输出:

Visual Studio shows the following output:

Deploy started: Project: MyProject.UI.Uwp, Configuration: Debug x86
Starting remote deployment...
Reading package recipe file "C:SourceCodeMyProjectMyProject.UI.Uwpinx86DebugMyProject.UI.Uwp.build.appxrecipe"...

然后然后永远挂起.

与此同时,服务器上的远程工具显示以下输出:

In the meantime, remote tools on the server show the following output:

UserAbc connected.

这表明我的 Windows 7 PC 和目标 Windows Server 2016 机器之间必须至少有一些通信.

This indicates there must be at least some communication between my Windows 7 PC and the target Windows Server 2016 machine.

没有显示任何错误消息(无论是在 Visual Studio 中,还是在远程调试器中).

No error message is displayed whatsoever (neither in Visual Studio, nor in the Remote Debugger).

知道为什么部署永远挂起而没有错误消息吗?还是我想完成一项不可能完成的任务?Windows Server 2016 是否能够运行 UWP 应用程序?

Any idea why the deployment hangs forever without an error message? Or am I trying to achieve an impossible task? Is the Windows Server 2016 capable of running UWP apps at all?

我直接在 Windows Server 2016 上安装了 VS 2015 Update 3.我能够直接在服务器上创建和调试一个简单的 UWP 应用程序,因此服务器显然能够运行 UWP 应用程序.但是我仍然无法使远程调试工作.也许问题完全出在我本地的 Windows 7 PC 上,与 Windows Server 无关.奇怪的是,进程在读取包配方文件"时挂起.会不会是杀毒软件拦截了?

I installed VS 2015 Update 3 directly on the Windows Server 2016. I was able to create and debug a simple UWP app directly on the server so the server is clearly able to run an UWP app. However I am still unable to make the remote debugging working. Maybe the problem is completely on my local Windows 7 PC and has nothing to do with the Windows Server. It is strange that the process hangs while "Reading package recipe file". Could it be that an antivirus is intercepting?

推荐答案

感谢您的反馈.当我尝试将 UWP 项目部署到 Windows 7 上的远程计算机时,也存在类似的问题.我们已使用内部渠道就此进行了沟通.遗憾的是,不推荐使用 Visual Studio 2015 或 Visual Studio 2017 在 Windows 7 上进行 UWP 开发.

Thanks for your feedback. There is a similar issue when I try to deploy the UWP project to a remote machine on Windows 7. We have communicated about this using our internal channel. Unfortunately, Visual Studio 2015 or Visual Studio 2017 doing UWP development on Windows 7 is not a recommend scenario.

对于 Visual Studio 2017,使用 UWP 应用开发工具不适用于 Windows 7.请参阅 Visual Studio 2017 对 Windows 开发的支持.

For Visual Studio 2017, using Tools for UWP App Development is not applicable on Windows 7. See Visual Studio 2017 Support for Windows Development.

对于 Visual Studio 2015,Windows Universal 的官方支持是仅构建".我们可以使用 Visual Studio 2015 在 Windows 7 上构建 UWP 应用程序,但其他一些用于 Windows 通用开发的 Visual Studio 功能可能会降级.请参阅 Visual Studio 2015 支持 Windows 通用、Windows 应用商店和 Windows Phone 应用程序开发.

For Visual Studio 2015, the official support for Windows Universal is "Build only". We can use Visual Studio 2015 to build UWP apps on Windows 7, but some other Visual Studio features for Windows Universal development may be degraded. See Visual Studio 2015 Support for Windows Universal, Windows Store, and Windows Phone App Development.

要开发 Windows 通用应用程序,强烈建议使用 Windows 10.使用 Windows 10,您可以获得最佳的 UWP 开发体验.

To develop Windows Universal Apps, Windows 10 is strongly recommended. With Windows 10, you can get the best experience of UWP development.

这篇关于Windows Server 2016 上的远程调试 UWP 应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆