[英]I have 2 projects in one solution. One dockerfile does work the other doesn't
[英]I have one solution with 3 projects, the build order is fine, but dependencies not loading other namespaces
我在1個解決方案文件中有3個項目。
我已經勾選了依賴項,並且構建順序看起來還不錯。 當我嘗試從James.WebUI.Controllers命名空間訪問James.Domain命名空間時,它看不到域。
我還需要做其他事情來添加依賴項嗎?
項目:James.Domain
實體文件夾
namespace James.Domain.Entities
{
public class User
{
public int Id;
public string Username;
public string Email;
}
}
項目:James.WebUI
控制器文件夾
using James.Domain.Entities; // Errors
namespace James.WebUI.Models
{
public class DashboardController : Controller
{
public DashboardController(repo)
{
}
[Authorize(Roles="Admin")]
public ActionResult Index()
{
return View();
}
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.