Reputation: 6557
I have a solution that includes a Setup Project. Unfortuately it also includes all the debug symbols, so they are to be removed. Is the correct way to:
Is there more to it than this? I guess the dependencies list would automatically shrink and not include any pdb-files eventually?
Upvotes: 2
Views: 3160
Reputation: 13673
Make sure you are building a release build and the release configuration of your application is not generating debug symbols.
The setup project will collect all output from your main project. If the output includes debug symbols, they will show up in the setup as well.
The easiest way to disable debug symbols from being generated is to open your solution in Visual Studio. Find the project that builds your application in the solution explorer. Right-click on the project icon to open it's properties. Make sure you have selected the Release configuration at the top of the dialog. On the build tab, select the Advanced button at the bottom. This opens a dialog that allows you to control the debug information generated for this configuration. Set the debug info to none to make sure no debug information is generated.
Upvotes: 2