从安装项目中删除文件
我有一个包含安装项目的解决方案。不幸的是,它还包含所有调试符号,因此它们将被删除。正确的方法是:
- 右键单击解决方案文件夹中的每个 msi 名称(或任何名称),然后选择“查看”->“查看”。文件系统
- 在“目标计算机上的文件系统”中,选择应用程序文件夹。
- 然后从所有文件夹中选择每个“调试符号来自...”文件并将其删除。
还有比这更多的事情吗?我猜依赖项列表会自动缩小并且最终不包含任何 pdb 文件?
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:
- Right Click in the solution folder on each msi-name (or whatever it is) and select View -> File System
- In the "File System on Target Machine", select Application Folder.
- Then select each "Debug Symbols from..."-file from all the folders and delete them.
Is there more to it than this? I guess the dependencies list would automatically shrink and not include any pdb-files eventually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您正在构建发布版本,并且应用程序的发布配置不会生成调试符号。
安装项目将收集主项目的所有输出。如果输出包含调试符号,它们也会显示在设置中。
禁用生成调试符号的最简单方法是在 Visual Studio 中打开解决方案。在解决方案资源管理器中找到构建您的应用程序的项目。右键单击项目图标以打开其属性。确保您已选择对话框顶部的发布配置。在“构建”选项卡上,选择底部的“高级”按钮。这将打开一个对话框,允许您控制为此配置生成的调试信息。将调试信息设置为none以确保不生成调试信息。
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.