完成执行任务 "RdlCompile" -- Visual Studio 2015 中的失败错误

Done executing task "RdlCompile" -- FAILED Error in Visual Studio 2015

当我 运行 我的代码来自 Visual Studio 2015 时,它给出错误并且构建失败。

当我构建或重建或清理解决方案时没有错误, 但是当我 运行 它通过单击“开始”按钮时它失败了。它是一个桌面应用程序。

我在错误列表中看不到任何错误。

当我将错误日志文件的详细程度从最小更改为详细时,我可以在输出中看到以下失败错误 window。

2>Output file "obj\Debug\RdlCompile.compiled" does not exist.
2>Using "RdlCompile" task from assembly "Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91".
2>Task "RdlCompile" (TaskId:27)
2>  Task Parameter:
2>      Sources=
2>          Reports\ReportPreviewDetailsSubreport.rdlc
2>          Reports\Report Preview Details.rdlc
2>          Reports\Report Preview.rdlc
2>          Reports\Report1.rdlc
2>          Reports\Report_Graph.rdlc
2>          Reports\Report_NoData.rdlc (TaskId:27)
2>  Task Parameter:StateFile=obj\Debug\RdlCompile.cache (TaskId:27)
2>  Task Parameter:TimeStampFile=obj\Debug\RdlCompile.compiled (TaskId:27)
2>  Output Item(s): FileWrites=obj\Debug\RdlCompile.cache (TaskId:27)
2>  Output Item(s): FileWrites=obj\Debug\RdlCompile.compiled (TaskId:27)
2>Done executing task "RdlCompile" -- FAILED. (TaskId:27)

在 VS 2017 中遇到了同样的问题。卸载并重新安装 VS 2017 为我解决了这个问题。

我也遇到了这个问题。

我可以通过卸载 Microsoft RDLC Report Designer 扩展来更正它。禁用它是不够的。

希望我还不算太晚。我遇到了这个臭名昭著的问题,并且能够通过以下步骤解决它

  1. 将输出详细程度更改为诊断(在工具 – 选项 – 项目和解决方案 – 构建和 运行 下,有 MSBuild 项目构建输出详细程度组合框)
  2. 已从 MicrosoftRdlcReportDesignerforVisualStudio 重新安装 Microsoft RDLC 报表设计器扩展!
  3. 重建解决方案。

我参考了其他答案,例如 !

对于 Visual Studio 2017,重新安装 vsix for RDLC Report Designer 成功了!花了 10 个小时试图解决这个问题。