为什么 MSBuild 在构建 installshield 项目时会查找 pdb 文件?
我已将一个基本的 MSI 项目添加到我的 vS2010 解决方案中,它在我的计算机上构建得很好,但是当我签入代码并请求使用 TFS 构建时,它不会构建并生成以下错误:
C:\Program Files\ MSBuild\InstallShield\2011\InstallShield.targets (68): OutputGroups 项“e:\BldTmp\2\MyProject\My Project Build\Sources\My “lib.proj.Countdown.debug 符号”的“project\lib.proj.Countdowns\obj\x86\Release\lib.proj.Countdown.pdb”似乎不存在。
为什么 MSBuild 或 SAB 2011 正在寻找 pdb 文件?我不想将 pdb 文件添加到我的安装程序中。我检查了路径,可以看到 pdb 文件存在,但构建会生成此错误!
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!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
生成此错误的不是 MSBuild,而是 InstallShield 的独立生成器。
您最有可能做的是在为 MSI 添加文件时,选择一个文件夹并创建一个 动态文件链接,其中包含所有文件,或更具体地说不排除任何文件。要解决此问题,您应该保持原样,但调整链接设置排除
*.pdb
文件。或者您可以删除链接并手动重新创建组件,然后手动添加所需的文件。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.