I am using ASP.NET Beta 8 trying to get scaffolding to work, but this creates a problem with Microsoft.Framework.CodeGeneration
My project.json
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel",
"ef": "EntityFramework.Commands",
"gen": "Microsoft.Framework.CodeGeneration"
},
Team:
dnx gen controller -Name ModelClassName--datacontext MyDbContext --model ModelClassName
Mistake:
dnx : Error: Unable to load application or execute command 'Microsoft.Framework.CodeGeneration'. Available commands: web, ef, gen.
This package is on Nuget, but it is not updated for Beta 8.
Beta 5 only. Link
When I install this Beta 5 package
Microsoft.Framework.CodeGeneration -Pre Installation Package
and run the same scaffolding command, I get an error:
Unable to enable service for type "Microsoft.Framework.Runtime.ILibraryManager"
This makes me think scaffolding doesn't work in beta 8.
source
share