添加Reporting.WinForms参考VS2015

CBr*_*eze 1 c# report visual-studio

我正在寻找添加参考;

Microsoft.Reporting.WinForms

到我的VisualStudio(2015)项目,但当我去解决方案资源管理器中添加参考时,我找不到它.

最后我添加了它,NuGet但现在我收到了错误消息;

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)

这让我相信我没有正确添加包.我通过程序功能安装了Microsoft SQL Server数据工具,但仍然没有运气.

我错过了什么?

小智 9

您可以尝试将其执行到Package Manager控制台中

Install-Package Microsoft.Reporting.WinForms.v11
Run Code Online (Sandbox Code Playgroud)