【发布时间】:2015-10-16 15:01:37
【问题描述】:
我有三个项目:BLL、DAL 和 mycv。在 BLL 中引用 DAL,在 mycv 中引用 BLL 后,我尝试调用安装在 BLL 中的现有函数。
我正在使用 Visual Studio 2013 Express、MVC5、AngularJS(我添加为 nuget)和 JQuery 库(我添加为 nuget)。
我将 Target Framework 安装为 4.0 版本。
当我使用 using BLL 时,无法识别命名空间。
我给你我的解决方案的结构,你会看到所有的参考:
DAL 代码是:
public class DatosPersonales
{
public Entities.DatosPersonales getDatosPersonales_DAL()
{
return new Entities.DatosPersonales();
}
}
BLL 代码是:
public class DatosPersonales
{
public Entities.DatosPersonales getDatosPersonales()
{
return DAL.DatosPersonales();
}
}
最后,在 mycv 项目中,我调用了 DatosPersonales 的 BLL 类:
public ActionResult Index()
{
var clase = new DatosPersonales();
return View();
}
由于该错误,我无法成功编译。
如果您需要添加更多内容,请告诉我,我会为您提供更多信息。
怎么了?
【问题讨论】:
标签: c# visual-studio-2013 namespaces nuget