本文介绍了TFS:"Microsoft.Reporting.RdlCompile"无法从程序集Microsoft.ReportViewer.WebForms,版本= 11.0.0.0加载任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在TFS服务器2013中有一个mvc5 Web应用程序.当我在本地构建解决方案时,它的工作正常.我在TFS中创建了一个Build定义,并尝试进行构建,它在编译器错误以下返回.

"C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v12.0 \ ReportingServices \ Microsoft.ReportingServices.targets(24):无法从程序集中加载"Microsoft.Reporting.RdlCompile"任务Microsoft.ReportViewer.WebForms,版本= 11.0.0.0,文化=中性,PublicKeyToken = 89845dcd8080cc91.无法加载文件或程序集"Microsoft.ReportViewer.WebForms,版本= 11.0.0.0,文化=中性,PublicKeyToken = 89845dcd8080cc91"或其中之一系统无法找到指定的文件.请确认声明正确,程序集及其所有依赖项都可用,并且任务包含实现Microsoft.Build.Framework.ITask的公共类."

在TFS服务器(Microsoft Windows Server 2008)中,未安装Visual Studio.仅安装.Net Framework 4.5.1.我在C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v12.0 \ ReportingServices \ Microsoft.ReportingServices

中观察到以下配置

 < UsingTask TaskName ="Microsoft.Reporting.RdlCompile" AssemblyName ="Microsoft.ReportViewer.WebForms,版本= 11.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91"/> 

请让我知道如何使构建成功.

解决方案

我已经从下面的链接中下载了ReportViewer.msi和SQLSysClrTypes.msi并安装在TFS服务器计算机中,并且无需安装Visual Studio,我的Build就成功了. http://www.microsoft.com/en-in/download/details.aspx?id=35747

I have a mvc5 web application in TFS server 2013. When I build the solution locally, its working fine. I created a Build definition in TFS and tried to Build, it returned below compiler error.

"C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\ReportingServices\Microsoft.ReportingServices.targets (24): The "Microsoft.Reporting.RdlCompile" task could not be loaded from the assembly Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91. Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask."

In TFS Server(Microsoft Windows Server 2008), no visual studio is installed. Only .Net framework 4.5.1 is installed. I observed below configuration in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\ReportingServices\Microsoft.ReportingServices

 <UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>

Please let me know how to make the build successful.

解决方案

I have dowloaded ReportViewer.msi and SQLSysClrTypes.msi from below link and installed in TFS server machine and my Build is success without installing Visual studio...http://www.microsoft.com/en-in/download/details.aspx?id=35747

这篇关于TFS:"Microsoft.Reporting.RdlCompile"无法从程序集Microsoft.ReportViewer.WebForms,版本= 11.0.0.0加载任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 22:49