.net core 类型或命名空间名称';数据异常';找不到

.net core 类型或命名空间名称';数据异常';找不到,.net-core,.net Core,我在使用.NET Core 1.0时遇到以下编译错误: “找不到类型或命名空间名称‘DataException’(是否缺少using指令或程序集引用?),代码:CS0246 project.json .NET Core 1.0是否支持System\Data\DataException.cs?文件在那里,但没有DataException类- 它不支持 { "name": "Dna.Net.Core", "version": "1.0.0-*", "dependencies": {

我在使用.NET Core 1.0时遇到以下编译错误:

“找不到类型或命名空间名称‘DataException’(是否缺少using指令或程序集引用?),代码:CS0246

project.json


.NET Core 1.0是否支持System\Data\DataException.cs?

文件在那里,但没有DataException类-

它不支持

 {
  "name": "Dna.Net.Core",
  "version": "1.0.0-*",

  "dependencies": {
    "Autofac": "4.1.0",
    "NETStandard.Library": "1.6.0",
    "System.Data.SqlClient": "4.1.0",
    "System.Runtime": "4.1.0",
    "System.Runtime.Serialization.Formatters": "4.0.0-rc3-24212-01",
    "System.Runtime.Serialization.Primitives": "4.1.1"
  },

  "frameworks": {
    "netstandard1.6": {
      "imports": "dnxcore50"
    }
  }
}
48  <Compile Include="System\Data\DataException.cs" />
using Dna.Net.Core.Common;
using System.Data;

namespace Dna.Net.Core.Exceptions
{
    public partial interface IDataExceptionMessageHandler
    {
        CustomMessage Execute(DataException exception);
        CustomMessage ParseMessage(DataException exception, CustomMessage customMessage);
        void LogException(string message);
    }
}