I have a c# project X that contains a folder COMMON, and I have several classes in the COMMON folder.
我有一个包含COMMON文件夹的c#项目X,我在COMMON文件夹中有几个类。
Now in project Y; I am referencing
现在在项目Y;我在引用
using X.Common;
Everything is good till now, intellisense works great. However, when I build project Y I get "The type or namespace name 'common' doesn't exists in the namespace X(are you missing an assembly reference?"
到目前为止,一切都很好,智能感觉很棒。但是,当我构建项目Y时,我得到“类型或命名空间名称'common'在命名空间X中不存在(您是否缺少程序集引用?)
1 个解决方案
#1
1
In visual studio, in project Y. Right click references, add reference, projects, select Project X. Try again.
在visual studio中,在项目Y中。右键单击引用,添加引用,项目,选择Project X.再试一次。
#1
1
In visual studio, in project Y. Right click references, add reference, projects, select Project X. Try again.
在visual studio中,在项目Y中。右键单击引用,添加引用,项目,选择Project X.再试一次。