使用 Visual Studio 集成的 WiX 托管自定义操作中没有调试信息
我已成功使用 MakeSfxCA
在 C# 中创建了一个自定义操作,该操作大部分工作正常。
然而,有一些问题需要调试来解决。 (“printf-debugging”还不够。)
但是所有调试信息都会丢失。
当从 Visual Studio 项目调用 MakeSfxCA 时,.pdb 文件不会作为参数传递,因此创建的 CA-dll 中不包含调试信息。
如果我手动运行 MakeSfxCA,
MakeSfxCA MyDLL.CA.dll SfxCa.dll MyDLL.dll MyDLL.pdb CustomAction.config
则调试信息将包含在创建的自定义操作 dll 中。
如何让 WiX-CA-project 自动添加 pdb-info?
/莱夫
I have managed to create a custom action in C# using MakeSfxCA
which is mostly working.
However, there is some kinks which needs debugging to sort out. (The "printf-debugging" just is not enough.)
However all debug info is lost.
When MakeSfxCA is called from the Visual Studio project the .pdb-file is not passed as an argument, so no debug-info is included in the created CA-dll.
If I manually run MakeSfxCA
MakeSfxCA MyDLL.CA.dll SfxCa.dll MyDLL.dll MyDLL.pdb CustomAction.config
then the debug-info is included in the created custom-action-dll.
How do I get the WiX-CA-project to add the pdb-info automatically?
/Leif
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现如果我创建了一个C# Custom Action Project类型的项目,那么它会神奇地工作。
另外,我可能会尝试向我的项目添加构建后事件。大致如下:(
虽然还没有尝试过,因为我按照上面的方式工作了。)
/L
I found that if I created a project of the type C# Custom Action Project then it magically works.
Also I could probably have tried to add a Post-build event to my project. Something along the lines of:
(Haven't tried this though, since I got it working as above.)
/L