【问题标题】:How to fix error MC1000 Unknown build error, 'Could not find type 'System.Web.UI.TagPrefixAttribute'如何修复错误 MC1000 未知构建错误,'找不到类型'System.Web.UI.TagPrefixAttribute'
【发布时间】:2020-03-03 17:51:20
【问题描述】:

我有一个 WPF 项目。对于我正在使用的报告服务

Microsoft.ReportingServices.ReportViewerControl.WebForms &

Microsoft.ReportingServices.ReportViewerControl.WinForms.

在 .Net framework 4.7.2 上运行时一切正常。

现在我将它移植到 .Net Core 3.0,现在我遇到了这个错误。

错误 MC1000 未知构建错误,“在程序集 'C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.1.0\ref\ 中找不到类型 'System.Web.UI.TagPrefixAttribute' netcoreapp3.1\System.Web.dll'。'我的商店 WPF C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets 225

我该如何解决这个问题?

【问题讨论】:

标签: c# wpf reporting-services .net-core


【解决方案1】:

核心库不支持所有的网络库类/方法。 我们必须在 .NET Framework 中创建另一个项目,并在 .NET Framework 项目中使用 Microsoft.ReportingServices。

现在将 .Net Framework 项目添加到 .Net 核心应用程序

【讨论】:

  • 成功了吗?引用 .net 4.7.2 Framework 项目时出现此错误...
猜你喜欢
  • 1970-01-01
  • 2017-10-08
  • 2016-11-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-07-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多