No Debug Info in WiX Managed Custom Action using Visual Studio integration

独自空忆成欢 提交于 2019-12-23 17:36:31

问题


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


回答1:


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:

"C:\Program Files\Windows Installer XML v3\SDK\MakeSfxCA.exe"
      $(TargetDir)$(TargetName).CA.dll 
      "C:\Program Files\Windows Installer XML v3\SDK\x86\SfxCA.dll" 
      $(TargetDir)$(TargetName).dll 
      $(TargetDir)$(TargetName).pdb 
      $(TargetDir)Microsoft.Deployment.WindowsInstaller.dll

(Haven't tried this though, since I got it working as above.)

/L



来源:https://stackoverflow.com/questions/2566977/no-debug-info-in-wix-managed-custom-action-using-visual-studio-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!