如何调试使用ClickOnce部署的WPF应用程序?

huangapple go评论91阅读模式
英文:

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.

https://github.com/0xd4d/dnSpy/releases

huangapple
  • 本文由 发表于 2020年1月6日 21:11:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/59612755.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定