简体   繁体   English

无法在MVC项目VS2015中添加新的脚手架项目

[英]Cannot add new Scaffold Item in MVC project VS2015

I have a project which has 2 parts the solution, DAL and Website I am trying to generate a controller from a model in the DAL, but the DAL models are not showing up in the Model Class entry field in the create scaffold item dialog 我有一个项目有两部分解决方案,DAL和网站我试图从DAL中的模型生成一个控制器,但DAL模型没有显示在创建脚手架项目对话框的模型类输入字段中

Things Ive tried: rebuilt the entire solution deleted the folder and restored from repo opened the solution in an older version of VS 我试过的事情:重建整个解决方案删除了​​文件夹并从repo恢复在旧版本的VS中打开了解决方案

nothing seems to work. 似乎没什么用。 The view models show up fine in the dialog, but the domain models from teh external DAL are not showing at all 视图模型在对话框中显示正常,但来自外部DAL的域模型根本没有显示

It seem that you don't have the reference in your MVC project to your DAL project, have you tried this already ? 您的MVC项目中似乎没有对DAL项目的引用,您是否尝试过这个?

右键

选择DAL项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM