I created a new class library, accepting the default settings, and added a couple of packages via nuget (Sendgrid, System.Data.SqlClient below).
There's also a project.json:
{
"version": "1.0.0-*",
"description": "ClassLibrary1 Class Library",
"authors": [ "adamwhitehouse" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"dependencies": {
"System.Collections": "4.0.10-beta-23019",
"System.Linq": "4.0.0-beta-23019",
"System.Threading": "4.0.10-beta-23019",
"System.Runtime": "4.0.10-beta-23019",
"Microsoft.CSharp": "4.0.0-beta-23019",
"System.Data.SqlClient": "4.1.0",
"Sendgrid": "8.0.3"
},
"frameworks": {
"dotnet": { }
}
}
When I try and reference these in the generated Class1.cs file, it's as if they don't exist, although they appear to be referenced exactly as the others (System.Collections, System.Threading, etc).
I've done absolutely nothing besides what I've outlined here. I'm sure it's something stupid, but I haven't created a project in Visual Studio in a while and it seems things have changed. What am I missing?


