3层架构不起作用

问题描述:

将BLL添加到主项目中是可行的,但是每当构建项目时都会产生错误,例如您缺少参考或使用指令是否有更好的解决方法

adding BLL to Main Project is working But Whenever Building a Project it Gives Error Like are you Missing a refrence or Using Directive is there any Better Solution

有您将引用添加到主项目了吗?那其他项目呢?在不了解或不知道细节的情况下无法回答此问题.
Have you added the references to the main project? What about other projects? Without seeing or knowing the details this question can''t be answered.


请确保:

1.您引用了正确的程序集(dll)
2.您已经从程序集中包含了正确的名称空间(在C#中使用关键字).
3.您使用了正确的Type名称.
Make sure:

1. You have referenced the correct assembly (dll)
2. You have included the right namespaces from the assembly (using keyword in C#).
3. You have used the correct Type names.


已解决.在所有项目中选择相同的目标框架
resolved .select target framework same in all project