如何将报表查看器的可再发行版本包含在我的应用程序中?
我一直在设置一台新机器,使用安装程序和命令来构建某些代码的部署包。 Visual Studio 2008 中的部署项目。
当尝试构建将“Microsoft Visual Studio 2008 Report Viewer”列为先决条件的现有项目时,我收到警告:
警告:在路径“%Program Files%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\”中找不到先决条件“Microsoft Visual Studio 2008 Report Viewer”
进入“先决条件”对话框会显示一个带有工具提示的警告覆盖:
找不到引导的先决条件
查看以前的版本,我们过去能够将这些与我们的应用程序一起重新分发,尽管检查了安装介质,即部署版本 9.0.30729.1,但该版本在 %program files%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\ReportViewer 是 9.0.30729.4402 (我相信这是可再发行的,包括 修复 MS09-062)。
我怀疑我可能需要执行一些额外的步骤(就像您对 .Net Framework v3.5 的 SP1 所做的那样),但我在任何地方都看不到这些记录?我需要做什么才能再次允许报表查看器可再发行包含在我的安装项目中?
I've been setting up a new machine for building the deployment packages for some code, using the Setup & Deployment projects within Visual Studio 2008.
When trying to build an existing project that lists "Microsoft Visual Studio 2008 Report Viewer" as a prerequisite, I'm getting a warning:
WARNING: Could not find prerequisite 'Microsoft Visual Studio 2008 Report Viewer' in path '%Program Files%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\'
Going into the Prerequisites dialog shows it with a warning overlay with tooltip:
Prerequisite could not be found for bootstrapping
Looking at previous builds, we've been able to redistribute these alongside our applications in the past although checking the install media, that was deploying version 9.0.30729.1, but the version in
%program files%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\ReportViewer is 9.0.30729.4402 (which I believe is the redistributable including the fix for MS09-062).
I suspect that there may be some additional steps that I need to do (much like you do for SP1 of v3.5 of the .Net Framework), but I cannot see these documented anywhere? What do I need to do to once again allow the Report Viewer redistibutable to be included with my setup projects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Visual Studio 2008 SP1 自述文件,上面写着(在部分2.3.1.7):
相反,它应该替换为:
http://go.microsoft.com/fwlink/?LinkID=98185&clcid=0x409
这仍然会发出警告:
但是,它仍然会被部署。
编辑
要修复 PublicKey 警告,您需要将 ReportViewer/en/Package.xml 中的链接更改为
http://go.microsoft.com/fwlink/?LinkID=185122
,并更改
元素的 PublicKey 属性以匹配新 EXE 的属性 - 要获取此属性(在 Windows 7 上),请从 Exploere 打开文件属性,进入数字签名选项卡,选择证书,然后选择[详细信息];选择【查看证书】;在“详细信息”选项卡上,滚动到“公钥”字段,下面显示的值就是公钥(您需要删除空格)。It appears there is a typo in the Visual Studio 2008 SP1 Readme, that says (In section 2.3.1.7):
Instead it should be replaced with:
http://go.microsoft.com/fwlink/?LinkID=98185&clcid=0x409
This still gives a warning:
However, it will still be deployed.
EDIT
To fix the PublicKey warning, you need to change the link in the ReportViewer/en/Package.xml to be
http://go.microsoft.com/fwlink/?LinkID=185122
, and change the PublicKey attribute of the<PackageFile>
element to match that of the new EXE - to get this (on Windows 7), open the file properties from Exploere, go to the Digital Signatures tab, select the certificate, and choose [ Details ]; Select [ View Certificate ]; on the Details tab, scroll to the Public Key field, and the value displayed below is the public key (you'll want to remove white space).