dav*_*ids 2 c# namespaces reference
我有这门课:
using System;
using System.Web.Mvc;
using System.Data;
using BLL;
namespace LicenseManager.Controllers
{
public class ValidationController : BaseController
{
public ActionResult Default()
{
return View("Default");
}
[HttpPost]
public JsonResult ClearInstallation(FormCollection form)
{
var jr = new JsonResult();
try
{
var licMgr = new BLL.LicManager();
licMgr.ClearInstall(form["regKey"], form["checkKey"]);
}
catch (Exception exc)
{
jr = Json(new { success = "false", error = exc.Message });
}
return jr;
}
}
}
Run Code Online (Sandbox Code Playgroud)
当我尝试重建或调试时收到错误: The type of namespace name 'BLL' could not be found (are you missing a using directive or an assembly reference?)
我可以看到它被引用:

intellisense工作,我没有任何错误,直到我尝试重建或编译.我知道它存在,它发现它用于智能感知,所以为什么它不允许我重建或编译?
我试过了:
我还能尝试什么?
更新 如果出现此错误,请确保阅读输出.它包含了我的解决方案.
| 归档时间: |
|
| 查看次数: |
16400 次 |
| 最近记录: |