System.Data.SqlClient is not supported on this platform

后端 未结 5 1210
孤街浪徒
孤街浪徒 2020-12-06 17:02

I\'m using ASP.NET Core 2 with Entity Framework Core 2.0.2. I created a context and Add-Migrations command in Package Manager Controller works fine.

How

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 17:49

    I ran into this issue recently with .net standard 2.0 classes being consumed by a regular .net framework app. (.net 4.7.x). The only thing that ultimately fixed my issue was migrating from packages.config to PackageReference on the regular .net app.

提交回复
热议问题