I am using ASP.NET 5.0 and I only wanted to run in the new Core CLR, so I removed "dnx451": { } from the dependencies in my project.json file. Now I get the following error when starting in IIS:
The following dependencies could not be resolved for the target structure 'DNX, Version = v4.5.1': Microsoft.AspNet.Mvc 6.0.0-beta4 Microsoft.AspNet.Server.IIS 1.0.0-beta4 Microsoft.AspNet.Server.WebListener 1.0.0 -beta4 Microsoft.AspNet.StaticFiles 1.0.0-beta4
As far as I understand, AspNet.Mvc 6 will work in Core CLR? Why then should I include dnx451 as a dependency?
My project.json file:
{ "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": { "Microsoft.AspNet.Mvc": "6.0.0-beta4", "Microsoft.AspNet.Server.IIS": "1.0.0-beta4", "Microsoft.AspNet.Server.WebListener": "1.0.0-beta4", "Microsoft.AspNet.StaticFiles": "1.0.0-beta4" }, "commands": { "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5000" }, "frameworks": { "dnxcore50": { } }, "exclude": [ "wwwroot", "node_modules", "bower_components" ], "publishExclude": [ "node_modules", "bower_components", "**.xproj", "**.user", "**.vspscc" ] }
asp.net-core .net-core
Blake mumford
source share