TFS:无法从程序集加载“Microsoft.Reporting.RdlCompile”任务Microsoft.ReportViewer.WebForms,Version = 11.0.0.0

时间:2022-05-14 12:45:33

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.

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

"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."

“C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v12.0 \ ReportingServices \ Microsoft.ReportingServices.targets(24):无法从程序集Microsoft.ReportViewer加载”Microsoft.Reporting.RdlCompile“任务.WebForms,Version = 11.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91。无法加载文件或程序集'Microsoft.ReportViewer.WebForms,Version = 11.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91'或其依赖项之一。系统找不到指定的文件。确认声明是否正确,程序集及其所有依赖项是否可用,以及该任务是否包含实现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

在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, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>

Please let me know how to make the build successful.

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

2 个解决方案

#1


4  

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

我从下面的链接下载了ReportViewer.msi和SQLSysClrTypes.msi并安装在TFS服务器机器上,我的Build是成功的,没有安装Visual Studio ... http://www.microsoft.com/en-in/download/details.aspx ?ID = 35747

#2


0  

On your build server (which should not be your TFS) you need to install all of the prerequisites for you to build locally.

在构建服务器(不应该是您的TFS)上,您需要安装本地构建的所有先决条件。

You will likely need at least Visual Studio and the Reporting Services API components installed. You may need other bits as well.

您可能至少需要安装Visual Studio和Reporting Services API组件。您可能还需要其他位。

It's real simple to figure out: What do you need on your developer workstation to build? That's likely what you are going to need on the build server as well.

弄清楚这一点很简单:您需要在开发人员工作站上构建什么?这可能也是你在构建服务器上需要的东西。

#1


4  

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

我从下面的链接下载了ReportViewer.msi和SQLSysClrTypes.msi并安装在TFS服务器机器上,我的Build是成功的,没有安装Visual Studio ... http://www.microsoft.com/en-in/download/details.aspx ?ID = 35747

#2


0  

On your build server (which should not be your TFS) you need to install all of the prerequisites for you to build locally.

在构建服务器(不应该是您的TFS)上,您需要安装本地构建的所有先决条件。

You will likely need at least Visual Studio and the Reporting Services API components installed. You may need other bits as well.

您可能至少需要安装Visual Studio和Reporting Services API组件。您可能还需要其他位。

It's real simple to figure out: What do you need on your developer workstation to build? That's likely what you are going to need on the build server as well.

弄清楚这一点很简单:您需要在开发人员工作站上构建什么?这可能也是你在构建服务器上需要的东西。