[英]Methods from Reference project are not recognized: asp.net MVC 3
i have two projects Evolet.Domain
and Evolet.Web
in my solution where Evolet.Web
is asp.net mvc project that references the Domain project. 我的解决方案中有两个项目
Evolet.Domain
和Evolet.Web
,其中Evolet.Web
是引用Domain项目的asp.net mvc项目。 But for every call from Evolet.Web
to Evolet.Domain
i get following compile time error message 但是对于从
Evolet.Web
到Evolet.Domain
每个调用,我都会收到以下编译时错误消息
'AddServiceCustomerAccount' accepting a first argument of type 'Evolet.Domain.Repositories.PartnerRepository' could be found (are you missing a using directive or an assembly reference?) D:\Evolet\UserManagement\UserManagement\Controllers\MDMController.cs 149 44 Evolet.Web
i have added domain project as reference to my web project. 我已将域项目添加为对我的Web项目的引用。 i can't figure out what could be the problem.
我不知道可能是什么问题。
Any ideas what's going on here? 有什么想法吗?
What about your methods are these public
or internal
. 这些
public
或internal
方法又如何呢? Internal types or members are accessible only within files in the same assembly 内部类型或成员只能在同一程序集中的文件中访问
Rebuild the Evolet.Domain and try again, and rebuild the Evolet.Web also. 重建Evolet.Domain,然后重试,然后也重建Evolet.Web。 I faced similar situation recently and rebuilding solved the problem for me
我最近也遇到过类似情况,重建工作为我解决了问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.