warning MSB3162: 所选的“Microsoft Report Viewer 2012 Runtime”项需要“Microsoft.SqlServer.SQLSysClrTypes.11.0”。在“系统必备”对话框中选择缺少的系统必备组件,或者为缺少的系统必备组件创建引导程序包。

warning MSB3162: 所选的“Microsoft Report Viewer 2012 Runtime”项需要“Microsoft.SqlServer.SQLSysClrTypes.11.0”。在“系统必备”对话框中选择缺少的系统必备组件,或者为缺少的系统必备组件创建引导程序包。

发布ReportViewer程序遇到这个问题。

到处查了下,发现解决方法是这样的。

1)打开这个路径下的xml文件:

C:Program Files (x86)Microsoft SDKsWindowsv8.0ABootstrapperPackagesReportViewerproduct.xml

2)修改文件中的以下内容:

<RelatedProducts>
<EitherProducts>
<DependsOnProduct Code="Microsoft.Net.Framework.3.5.SP1" />
<DependsOnProduct Code=".NETFramework,Version=v4.0,Profile=Client" />
<DependsOnProduct Code=".NETFramework,Version=v4.0" />
<DependsOnProduct Code=".NETFramework,Version=v4.5" />
</EitherProducts>
<DependsOnProduct Code="Microsoft.SqlServer.SQLSysClrTypes.11.0.x86" />
<DependsOnProduct Code="Microsoft.SqlServer.SQLSysClrTypes.11.0.x64" />
</RelatedProducts>

转自以下地址:http://social.msdn.microsoft.com/Forums/en-US/bd6ecd3b-e778-48f3-8038-fa243bd85987/visual-studio-2012-problem-with-report-viewer