According to <http://blogs.msdn.com/b/webdev/archive/2015/01/16/asp-net-5-in-visual-studio-2015-ctp-5.aspx> you should now be able to include regular class libraries to asp.net 5/vnext projects. 

When I use the add reference the package.config is updated so it looks something like this:

```
...
"frameworks": {
    "aspnet50": {
        "dependencies": {
            "ClassLib": "1.0.0-*"
        }
    },
    "aspnetcore50": { }
},
...

```

Everything looks fine in Visual Studio and intellisense works, but it fails to build. I get the CS103 error (The name 'xxxx' does not exist in the current context). Any ideas?

Also, is it supposed to work when targeting core as well?