英文:
How to debug a WPF application deployed with ClickOnce?
问题
我刚刚在Visual Studio上开发了一个WPF应用程序。我想要使用ClickOnce部署它,以便其他用户可以使用这个应用程序。
我尝试了部署,所以我在我的电脑上安装了该应用程序,但我无法运行它。该应用程序甚至不会打开,似乎在执行时立即崩溃。
在Visual Studio中,该应用程序运行正常,但部署后不起作用。
在部署后是否有一种方法来调试该应用程序?或者是否有其他更好的部署应用程序的方式?
谢谢!
英文:
i just finished developping a WPF application on visual studio. I want to deploy it with ClickOnce to allow other users to use this application.
I tried to deploy it, so I installed the app on my computer but i can't run it. The app doesnt even open, it seems to instant crash when executing.
The app works fine in Visual Studio, but doesnt work when deployed.
Is there a way to debug the app after it is deployed? Or is there any other better way to deploy the app?
Thanks
答案1
得分: 4
你可以使用 dnSpy 调试已编译的应用程序。
希望这能捕获异常并为你提供前进方向的线索。
https://github.com/0xd4d/dnSpy
或者直接到发布页面。
https://github.com/0xd4d/dnSpy/releases
英文:
You can use dnSpy to debug a compiled application.
Hopefully this will catch an exception and give you a clue of where to go.
https://github.com/0xd4d/dnSpy
or straight to the releases.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论