我正在尝试使用VS2017代码生成器(使用Scaffold-DbContext生成)使用现有的Models / Context创建一些控制器和视图。该项目的构建和运行没有问题,但是当我尝试添加带有视图的控制器时,它将在日志中显示以下内容。但是,控制器/视图永远不会填充在文件资源管理器或项目中。
Finding the generator 'controller'...
Running the generator 'controller'...
Attempting to compile the application in memory.
Attempting to figure out the EntityFramework metadata for the model and DbContext: 'Databases'
Added Controller : '\Controllers\DatabasesController.cs'.
Added View : \Views\Databases\Create.cshtml
Added View : \Views\Databases\Edit.cshtml
Added View : \Views\Databases\Details.cshtml