为什么我看不到微软。reportviewer。在“添加参考…”对话框中的WebForms版本10.0.0 ?

时间:2022-10-15 08:22:40

I have a VS2008 Reporting Services project (database: SQL Server 2008 RC2). This project has been updated from VS2005/SQL2005.

我有一个VS2008报告服务项目(数据库:SQL Server 2008 RC2)。本项目已从VS2005/SQL2005更新。

I need to update the Report Viewer control to version 10.0.0.0. But when I install the Redistributable (http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=a941c6b2-64dd-4d03-9ca7-4017a0d164fd), it isn't added to the .NET-tab in the 'Add reference...' dialog!

我需要将报表查看器控件更新到10.0.0.0版本。但是,当我安装Redistributable (http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=a941c6b2-64dd-4d03-9ca7-4017a0d164fd)时,它并没有添加到'Add reference…“对话框!

I can see the Microsoft.ReportViewer 8.0.0.0 and Microsoft.ReportViewer 9.0.0.0 in the dialog, but no 10.0.0.0

我可以看到微软。ReportViewer 8.0.0.0和微软。对话框中的ReportViewer 9.0.0,但没有10.0.0

I tried running uninstalls for everything ReportViewer related, and reinstalling the ReportViewer 10.0.0.0 control. But I still see both version 8 and 9 in the dialog, but no version 10!

我尝试运行与ReportViewer相关的所有文件卸载,并重新安装ReportViewer 10.0.0.0控件。但是我仍然在对话框中看到版本8和9,但是没有版本10!

Checking the GAC through Start->Run->Assembly I can see all three versions. I cannot remove 8 and 9 because they apparently are used by other programs...

通过启动->运行->程序检查GAC,我可以看到所有三个版本。我不能删除8和9,因为它们显然被其他程序使用。

This is driving me somewhat nuts...

这让我有点抓狂……

What do I have to do to make this assembly available in the "Add Reference..." dialog in Visual Studio 2008??

要使这个程序集在Visual Studio 2008的“添加引用…”对话框中可用,我需要做什么?

Regards Alex

认为亚历克斯

2 个解决方案

#1


7  

OK, found a solution: Apparently VS2008 combined with ReportViewer2010 requires a little handy-work:

好的,找到了一个解决方案:显然VS2008和ReportViewer2010的结合需要一点手工:

http://blogs.msdn.com/b/changliw/archive/2010/06/29/use-the-reportviewer-2010-control-in-visual-studio-2008-project.aspx

http://blogs.msdn.com/b/changliw/archive/2010/06/29/use - - reportviewer - 2010控制在- 2008 project.aspx -视觉工作室

After I extracted the assembly DLLs from the GAC, I could add them to the 'Add reference...' dialog as described here:

在我从GAC中提取汇编dll后,我可以将它们添加到“添加引用……”对话框如下所示:

http://www.csharp411.com/adding-assemblies-to-the-visual-studio-add-reference-dialog/

http://www.csharp411.com/adding-assemblies-to-the-visual-studio-add-reference-dialog/

I hope this'll help another distressed soul! ;)

我希望这能帮助另一个悲伤的灵魂!,)

/Alex

/亚历克斯

#2


0  

Another possible cause of assemblies not showing in Add reference is the implicit target framework filtering. E.g.: Visual Studio 2010, .NET Fwk 4.0 target will filter assemblies targeting this particular fwk. To add Microsoft.ReportViewer.WebForms 10.0.0.0, I changed project's target fwk to 3.5, added the references and then switched back to 4.0.

添加引用中不显示程序集的另一个可能原因是隐式目标框架过滤。例如:Visual Studio 2010, . net Fwk 4.0目标将会过滤针对这个特定Fwk的程序集。添加Microsoft.ReportViewer。WebForms 10.0.0.0,我将项目的目标fwk更改为3.5,添加了引用,然后切换回4.0。

#1


7  

OK, found a solution: Apparently VS2008 combined with ReportViewer2010 requires a little handy-work:

好的,找到了一个解决方案:显然VS2008和ReportViewer2010的结合需要一点手工:

http://blogs.msdn.com/b/changliw/archive/2010/06/29/use-the-reportviewer-2010-control-in-visual-studio-2008-project.aspx

http://blogs.msdn.com/b/changliw/archive/2010/06/29/use - - reportviewer - 2010控制在- 2008 project.aspx -视觉工作室

After I extracted the assembly DLLs from the GAC, I could add them to the 'Add reference...' dialog as described here:

在我从GAC中提取汇编dll后,我可以将它们添加到“添加引用……”对话框如下所示:

http://www.csharp411.com/adding-assemblies-to-the-visual-studio-add-reference-dialog/

http://www.csharp411.com/adding-assemblies-to-the-visual-studio-add-reference-dialog/

I hope this'll help another distressed soul! ;)

我希望这能帮助另一个悲伤的灵魂!,)

/Alex

/亚历克斯

#2


0  

Another possible cause of assemblies not showing in Add reference is the implicit target framework filtering. E.g.: Visual Studio 2010, .NET Fwk 4.0 target will filter assemblies targeting this particular fwk. To add Microsoft.ReportViewer.WebForms 10.0.0.0, I changed project's target fwk to 3.5, added the references and then switched back to 4.0.

添加引用中不显示程序集的另一个可能原因是隐式目标框架过滤。例如:Visual Studio 2010, . net Fwk 4.0目标将会过滤针对这个特定Fwk的程序集。添加Microsoft.ReportViewer。WebForms 10.0.0.0,我将项目的目标fwk更改为3.5,添加了引用,然后切换回4.0。