I have 3 projects in 1 solution file.
I have ticked the dependencies and the build order seems fine. When I try to access James.Domain namespace from within a James.WebUI.Controllers namespace, It cannot see the Domain.
Must I do something else to add the dependencies?
Project: James.Domain
Entities folder
namespace James.Domain.Entities
{
public class User
{
public int Id;
public string Username;
public string Email;
}
}
Project: James.WebUI
Controllers folder
using James.Domain.Entities; // Errors
namespace James.WebUI.Models
{
public class DashboardController : Controller
{
public DashboardController(repo)
{
}
[Authorize(Roles="Admin")]
public ActionResult Index()
{
return View();
}
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.