当我在 ASP.Net 5 应用程序中使用连接字符串构建器时,我收到此错误:
错误 CS0012 类型'DbConnectionStringBuilder'在未引用的程序集中定义。您必须添加对程序集“System.Data,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089”的引用。
我使用 dnx451 作为框架,任何 sugestions?
示例 project.json
"frameworks": { "dnx451": { "frameworkAssemblies": { "System.Data": "4.0.0.0" } }, "dnxcore50": { "dependencies": { "System.Data.SqlClient": "4.0.0-beta-*" } } }
1 回答
示例 project.json