Why can't I see Microsoft.ReportViewer.WebForms version 10.0.0.0 in “Add Reference…” dialog?

后端 未结 2 1538
一个人的身影
一个人的身影 2021-01-18 16:17

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

I need to update the Report Viewer co

相关标签:
2条回答
  • 2021-01-18 16:53

    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.

    0 讨论(0)
  • 2021-01-18 17:08

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

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

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

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

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

    /Alex

    0 讨论(0)
提交回复
热议问题