将pdb嵌入到程序集中 [英] Embed pdb into assembly

查看:115
本文介绍了将pdb嵌入到程序集中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用程序可以作为单独的.exe文件分发,但是我希望能够使用源代码行号来获取漂亮的错误报告(应用程序只需发送 exception.ToString()以及一些未处理异常的附加信息)

I want my application to be distributable as a single .exe file but I want to be able to get nice error reports with source code line numbers (the application simply sends email with exception.ToString() and some additional information when unhandled exception occurs).

有没有办法将.pdb嵌入到程序集中?

Is there any way to embed .pdb into assembly?

推荐答案

使用MiniDumps而不是exception.ToString()。它会给你更多的信息,不需要.pdb与.exe一起分发。

Use MiniDumps instead of "exception.ToString()". It will give you a lot more information and does not need the .pdb to be distributed with the .exe.

有用的链接: Post-使用Minidumps和Visual Studio .NET进行Mortem调试应用程序

这篇关于将pdb嵌入到程序集中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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