“Rdl编译"找不到任务 [英] "RdlCompile" task was not found

查看:73
本文介绍了“Rdl编译"找不到任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 rldc 文件进行编译和项目,但出现以下两个错误之一:

I'm trying to compile and project with rldc file, and i'm getting one of two errors, either:

无法从程序集 Microsoft.ReportViewer.Common、Version=10.0.0.0、Culture=neutral、PublicKeyToken=b03f5f7f11d50a3a 加载Microsoft.Reporting.RdlCompile"任务.确认声明正确,程序集及其所有依赖项都可用,并且任务包含实现 Microsoft.Build.Framework.ITask 的公共类.

The "Microsoft.Reporting.RdlCompile" task could not be loaded from the assembly Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. 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.

或:

未找到RdlCompile"任务.检查以下内容: 1.) 项目文件中的任务名称与任务类的名称相同.2.) 任务类是公共的"并实现了 Microsoft.Build.Framework.ITask 接口.3.) 在项目文件或位于C:\Windows\Microsoft.NET\Framework\v4.0.30319"目录中的 *.tasks 文件中正确声明了任务.

The "RdlCompile" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.

我使用的是 VS2010,我重新安装了 Reporting Viewer,确保目标文件和任务定义正确,甚至尝试从另一台计算机复制 dll,但没有任何效果.

I'm using VS2010, and I've re-installed Reporting Viewer, made sure the target files and the task definition are correct, and even tried to copy the dll from another computer, and nothing worked.

有人遇到过这种情况吗?

Did anyone encounter this?

谢谢

推荐答案

通过复制文件夹内容解决:

Solved by copying the content of the folder:

[程序文件]\Microsoft Visual Studio 10.0\ReportViewer\

[Program Files]\Microsoft Visual Studio 10.0\ReportViewer\

和文件中的任务声明:

[程序文件]\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices\Microsoft.ReportingServices.targets

[Program Files] \MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices\Microsoft.ReportingServices.targets

来自另一台计算机.

由于某种原因重新安装不起作用,但从工作机器复制可以.

For some reason re-installing doesn't work, but copying from a working machine does.

这篇关于“Rdl编译"找不到任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆