gpt4 book ai didi

deployment - Windows Server 2016 上的远程调试 UWP 应用

转载 作者:行者123 更新时间:2023-12-04 00:50:47 25 4
gpt4 key购买 nike

目标
我想使用 Windows Server 2016 (x64) 远程调试 UWP 应用程序。原因?我的工作 PC 仍然运行 Windows 7 实例,无法在 Windows 7 机器上部署 UWP 应用程序。
问题
我已经在 Windows Server 2016 机器上安装了 Visual Studio 2015 的远程工具并在端口 4020 上启动它。身份验证模式设置为“无”。我也在服务器上启用了开发人员模式。此外,我在 Visual Studio 中设置了我的项目以使用远程机器进行调试。
问题是,每当我尝试将我的解决方案部署(仅部署,甚至不调试)到服务器时,都会发生以下情况:
Visual Studio 显示以下输出:

Deploy started: Project: MyProject.UI.Uwp, Configuration: Debug x86
Starting remote deployment...
Reading package recipe file "C:\SourceCode\MyProject\MyProject.UI.Uwp\bin\x86\Debug\MyProject.UI.Uwp.build.appxrecipe"...
然后永远挂起 .
同时,服务器上的远程工具显示以下输出:
UserAbc connected.
这表明我的 Windows 7 PC 和目标 Windows Server 2016 机器之间必须至少有一些通信。
没有显示任何错误消息(无论是在 Visual Studio 中,还是在远程调试器中)。
问题
知道为什么部署永远挂起而没有错误消息吗?还是我想完成一项不可能完成的任务? Windows Server 2016 是否能够运行 UWP 应用程序?
更新
我直接在 Windows Server 2016 上安装了 VS 2015 Update 3。我能够直接在服务器上创建和调试一个简单的 UWP 应用程序,因此服务器显然能够运行 UWP 应用程序。但是我仍然无法使远程调试工作。也许问题完全出在我本地的 Windows 7 PC 上,与 Windows Server 无关。奇怪的是,进程在“读取包配方文件”时挂起。可能是防病毒软件正在拦截吗?

最佳答案

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

对于 Visual Studio 2017,使用 UWP 应用开发工具不适用于 Windows 7。请参阅 Visual Studio 2017 Support for Windows Development .

对于 Visual Studio 2015,Windows Universal 的官方支持是“ Build only ”。我们可以使用 Visual Studio 2015 在 Windows 7 上构建 UWP 应用程序,但其他一些用于 Windows 通用开发的 Visual Studio 功能可能会降级。见 Visual Studio 2015 Support for Windows Universal, Windows Store, and Windows Phone App Development .

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

关于deployment - Windows Server 2016 上的远程调试 UWP 应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42630666/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com