“RdlCompile” task was not found

给你一囗甜甜゛ 提交于 2021-01-27 18:33:40

问题


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

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.

or:

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.

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?

Thanks


回答1:


Solved by copying the content of the folder:

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

and the task declaration in the file:

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

from another computer.

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



来源:https://stackoverflow.com/questions/20175388/rdlcompile-task-was-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!