简体   繁体   English

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

[英]TFS:The “Microsoft.Reporting.RdlCompile” task could not be loaded from the assembly Microsoft.ReportViewer.WebForms, Version=11.0.0.0

I have a mvc5 web application in TFS server 2013. When I build the solution locally, its working fine. 我在TFS服务器2013中有一个mvc5 Web应用程序。当我在本地构建解决方案时,它工作正常。 I created a Build definition in TFS and tried to Build, it returned below compiler error. 我在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. 在TFS服务器(Microsoft Windows Server 2008)中,未安装Visual Studio。 Only .Net framework 4.5.1 is installed. 仅安装了.Net framework 4.5.1。 I observed below configuration in C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v12.0\\ReportingServices\\Microsoft.ReportingServices 我在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. 请让我知道如何使构建成功。

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

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. 您可能至少需要安装Visual Studio和Reporting Services API组件。 You may need other bits as well. 您可能还需要其他位。

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. 这可能也是你在构建服务器上需要的东西。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从程序集中加载microsoft.codeanalysis.buildtasks.csc任务 - microsoft.codeanalysis.buildtasks.csc task could not be loaded from the assembly 无法从程序集中加载 Microsoft.CodeAnalysis.BuildTasks.Csc”任务 - Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly 无法加载文件或程序集“ Microsoft.ReportViewer.DataVisualization” - Could not load file or assembly 'Microsoft.ReportViewer.DataVisualization' 无法从程序集中加载任务 - Task could not be loaded from assembly 无法从程序集加载任务工厂“RoslynCodeTaskFactory” - The task factory "RoslynCodeTaskFactory" could not be loaded from the assembly [A] Microsoft.Reporting.WebForms.ReportHierarchy无法强制转换为[B] Microsoft.Reporting.WebForms.ReportHierarchy - [A]Microsoft.Reporting.WebForms.ReportHierarchy cannot be cast to [B]Microsoft.Reporting.WebForms.ReportHierarchy 无法加载文件或程序集Microsoft.ReportViewer.DataVisualization或其依赖项之一 - Could not Load File or Assembly Microsoft.ReportViewer.DataVisualization or one of its dependencies 无法加载文件或程序集&#39;Microsoft.VisualStudio.DebuggerVisualizers,Version = 9.0.0.0, - Could not load file or assembly 'Microsoft.VisualStudio.DebuggerVisualizers, Version=9.0.0.0, 无法从程序集中加载 BuildTasks.Csc 任务? - BuildTasks.Csc task could not be loaded from the assembly? 无法从程序集“Microsoft.AspNetCore.Mvc.Core”加载类型“Microsoft.AspNetCore.Mvc.Internal.IActionSelectorDecisionTreeProvider” - Could not load type 'Microsoft.AspNetCore.Mvc.Internal.IActionSelectorDecisionTreeProvider' from assembly 'Microsoft.AspNetCore.Mvc.Core
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM