"The type or namespace cannot be found (are you missing a using directive or an assembly reference?



错误1找不到类型或命名空间名称"EmpInfo"(是否缺少using指令或程序集引用?)C:\Users\Station\Desktop\Test\BusinessLayer\EmpOperation.cs 13 33 BusinessLayer

错误2找不到类型或命名空间名称"EmpOperation"(是否缺少using指令或程序集引用?)C:\Users\Station\Desktop\Test\Test\EmpEntry.aspx.cs 15 8 Test

但是"EmpInfo"one_answers"EmpOperation"类都存在。。。那为什么它仍然显示这种类型的错误???

此外。

public int ACSaveEmpInfo(EmpInfo paramEmpInfo)

在上面一行,当我点击EmpInfo并点击Go To Definition时,它显示"无法导航到EmpInfo"。

这些类可能在不同的包中。尝试使用类顶部的"using_namespace_name"语句来包含这些命名空间。或者,您也可以使用这些类的完整名称空间标识符来调用它们。

例如

    some_namespace.Classname = new some_namespace.classname() 

我认为您正在尝试调试与您现在使用的源代码不同的代码。我认为你可能错过了任何其他支持你的项目检查的dll,如果你错过了添加引用和重建应用程序,问题可能会解决。

在.cs页面中添加适当的遗漏EmpOperation名称空间,并检查一次

最新更新