Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Can't build a default ASP.NET 5 web application because of DNX reference errors?

$
0
0

Downloaded VS2015 Enterprise hoping to try ASP.NET 5 but I can't even build a default web application project because of all the reference errors in DNX 4.5.1 and DNX Core 5.0.

I try to build the project and get a bunch of errors like "The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)", due to all the references that have yellow triangles. Trying to run Restore Packages gives the error "Restore failed Method not found: 'Newtonsoft.Json.Linq.JValue Newtonsoft.Json.Linq.JValue.CreateNull()'."

After researching other posts with the same problem I have downloaded Microsoft ASP.NET and Web Tools 2015 along with trying to restore the dnvm and changing the version, and adding Newtonsoft.Json 7.0.0.0 to the GAC. Nothing is working and it's very frustrating not having this work OOB. 

In global.json the sdk version is 1.0.0-beta7, I have tried 1.0.0-beta5 as well and that is not working either.


Viewing all articles
Browse latest Browse all 9386

Trending Articles