Keep .wixpdb file

Dec 14, 2015 at 1:32 PM

Is there a way to prevent the .wixpdb from being deleted when generating the .msi file using Compiler.BuildMsi()?

Dec 15, 2015 at 12:03 AM
Edited Dec 15, 2015 at 12:05 AM
project.PreserveTempFiles = true; will prevent deleting temp file but only the ones created by Wix# not by WiX tools (e.g. *.wixpdb).

The best way to solve this would be to use BuildMsiCmd:
project.UI = WUI.WixUI_InstallDir;
project.GUID = new Guid("6f330b47-2577-43ad-9095-1861ba25889b");