[DAC] DesktopAppConverter和调试 [英] [DAC]DesktopAppConverter and Debugging

查看:86
本文介绍了[DAC] DesktopAppConverter和调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种智能方法可以调试本机应用程序
链接到UWP
以访问商店API?据我所知,使用DesktopAppConverter转换的应用程序具有依赖性,不允许它们在调试器中启动。当我尝试启动我的应用程序时,从appx安装时效果很好,
它会报告一些DLL丢失,并显示消息"重新安装程序可能会解决此问题"。为了调试,我需要上传到商店,获得认证,如果我很幸运,可以在几个小时内下载。然后我可以附加
调试器来查看发生了什么。在我看来,这是一个令人不满意的情况。也许我会错过一些东西,整个调试过程可以更优雅地完成。有没有人有经验可以分享?


Is there a smart way to debug native apps which link to UWP for accessing the store API? As far as I know, apps converted with DesktopAppConverter have dependencies which don't allow them to be launched in the debugger. When I try to launch my app, which works perfectly when installed from the appx, it reports some DLL's missing with the message "Reinstalling the program may fix this problem". In order to debug, I need to upload to the store, get it certified and if I am lucky it's available for download within a few hours. Then I can attach the debugger to see what's going on. It's in my opinion an unsatisfactory situation. Maybe I miss something and the whole process of debugging can be done more elegantly. Does anyone have experiences to share?

推荐答案

是的,还有其他方法可以调试桌面网桥应用,而无需将应用上传到商店。 

Yes, there are others ways to debug desktop bridge app without uploading the app to the store. 

如果您使用VS创建桌面网桥应用,则只需设置即可将打包项目作为启动项目,然后按F5调试您的应用程序。

If you created the desktop bridge app using VS, you just need to set the packaging project as the startup project, and then press F5 to debug your app.

如果您使用其他工具创建桌面桥接应用程序,只需将其安装到本地计算机并运行VS附加调试器。 

If you are creating the desktop bridge app using other tools, just installed it to the local machine and run VS to attach the debugger. 

您可以在此处获取有关如何运行应用程序和调试应用程序的更多信息:运行,调试和测试打包的桌面应用程序(桌面桥)

You could get more information about how to run your app and debug your app here:Run, debug, and test a packaged desktop app (Desktop Bridge)

致以最诚挚的问候,

Roy


这篇关于[DAC] DesktopAppConverter和调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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