我有一个基于 MVC 5 的解决方案,带有一个Client和Data项目。它包括_ViewSwitcher我想为移动和桌面浏览器提供服务的部分。在主页上,当我单击 ViewSwitcher 的Mobile view链接时,出现以下异常:
Multiple types were found that match the controller named 'ViewSwitcher'....
The request for 'ViewSwitcher' has found the following matching controllers:
PayCaddy.Data.Controllers.ViewSwitcherController
PayCaddy.Client.Controllers.ViewSwitcherController
'ViewSwitcher', and found only one .cs result, in the我已经对术语(不是整个单词) .Client project, and three results in_Layout.Mobile.cshtml _ViewSwitcher.cshtml`的所有文件进行了解决方案范围的搜索and。另外,我手动检查了文件系统是否有任何重复项,但没有发现任何重复项。
这可能是什么原因造成的?