[英]Can't reference class library in asp.net MVC
I do this lesson from: http://www.codeproject.com/Articles/1010152/Learn-MVC-Project-in-Days-Day I'am at the end lab 32. I did everything step by step but I have this error:我从以下内容中吸取教训: http : //www.codeproject.com/Articles/1010152/Learn-MVC-Project-in-Days-Day我在实验室 32 的最后。我一步一步地做了所有事情,但我有这个错误:
The type or namespace name 'BusinessEnties' (or ViewModel) could not be found (are you missing a using directive or an assembly reference?)
找不到类型或命名空间名称“BusinessEnties”(或 ViewModel)(您是否缺少 using 指令或程序集引用?)
When I add any reference to WebApplication1 I see BusinessEnties or ViewModel and I have no errors but when I build this errors back.当我添加对 WebApplication1 的任何引用时,我看到 BusinessEnties 或 ViewModel 并且我没有错误,但是当我重新构建此错误时。
UPDATED更新
My class tree:我的班级树:
And dependecy map和依赖图
Check your projects .Net versions.检查您的项目 .Net 版本。 If the MVC Project has a lesser version then the class Library it most likely won't work.
如果 MVC 项目的版本较低,那么它很可能无法使用类库。
确保课程是公开的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.