user848609
user848609

Reputation: 81

Why MSBuild looks for pdb files when it is building an installshield project?

I have added a basic MSI project to my vS2010 solution, it builds fine on my machine, but when I check in my code and request a build using TFS then it doesn't build and generates the following error:

C:\Program Files\MSBuild\InstallShield\2011\InstallShield.targets (68): OutputGroups item "e:\BldTmp\2\MyProject\My Project Build\Sources\My project\lib.proj.Countdowns\obj\x86\Release\lib.proj.Countdown.pdb" of "lib.proj.Countdown.debug symbols" does not appear to exist.

why MSBuild or SAB 2011 are looking for pdb file? I don't want to add pdb file to my installer. I have checked the path and I can see that the pdb file exist, but the build generates this error!!

Upvotes: 0

Views: 899

Answers (1)

slugster
slugster

Reputation: 49985

It will not be MSBuild generating this error, it will be InstallShield's Stand Alone Builder.

What you have most likely done is when adding the files for the MSI, you selected a folder and created a dynamic file link which includes all files, or more specifically doesn't exclude any files. To fix this you should leave it as is, but adjust the link settings to exclude *.pdb files. Or you could delete the link and recreate the component manually, and manually add whichever files you want.

Upvotes: 1

Related Questions