what is the problem? by the way, you can remove
using MyBean;from the second file, make sure you add the reference to the DLL compiled from the first cs file, or you can compile them together
using MyBean;from the second file, make sure you add the reference to the DLL compiled from the first cs file, or you can compile them together
cartdb.cs(33,20): error CS0234:
类型或命名空间名称“ProductDb”在类或命名空间“MyBean”中不存在(是否缺
少程序集引用?)
cartdb.cs(34,38): error CS0246: 找不到类型或命名空间名称“products”(是否缺少
using 指令或程序集引用?)
你最好将以上两个文件下到你的机器上编译一下,好吗?
csc /t:library ProductDb.cs then do
csc /t:library /r:ProductDb.dll CartDb.csif you are using VS.NET, try to add a reference to ProductDb.dll