断点停止工作-WPF应用已从Visual Studio进行桌面桥接

时间:2019-06-23 17:59:10

标签: wpf uwp windows-10 desktop-bridge

上个月,我在WPF上使用了VS2017 - ver 15.9最新版本的一个简单Windows10 - Update 1809应用程序。 WPF应用程序也是在完全相同的环境下开发的。上个月,处于调试模式的breakpoints正常工作。

但是今天断点不起作用。根据此Desktop-Bridged

If you created your package by using the new packaging project available in the 15.4 release of Visual Studio 2017, Just set the packaging project as the startup project, and then press F5 to debug your app.

请注意

  1. 本月,我将VS2017升级到VS2019 - Ver16.1.3。但这可能不会有任何区别,因为我的其他旧项目在VS2019中工作正常。
  2. 如下所示,我已验证解决方案中的Packaging Project确实是Startup项目(如上面的链接中所述)。
  3. WPF应用程序是示例应用程序,使用来自official link的代码,其用户界面如下图2所示。

VS2019解决方案的快照

here

应用程序的用户界面

enter image description here

VS2019顶部工具栏的快照

enter image description here

1 个答案:

答案 0 :(得分:0)

在更新过程中可能会弄乱您的计算机设置。您可以检查Developer Mode仍处于活动状态吗?您在SLN上完成的配置很好,因此断点应该可以正常工作。