ADO.Net in Asp.Net 5

When I use the connection string constructor in an ASP.Net 5 application, I get this error:

Error CS0012 The type "DbConnectionStringBuilder" is defined in an assembly that is not referenced. You must add a reference to the assembly 'System.Data, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'.

I use dnx451 as a framework, any sugestions?

+7
asp.net-core
source share
1 answer

Project.json example

"frameworks": { "dnx451": { "frameworkAssemblies": { "System.Data": "4.0.0.0" } }, "dnxcore50": { "dependencies": { "System.Data.SqlClient": "4.0.0-beta-*" } } } 
+9
source share

All Articles