Civils,
我在视力演播室2010年SP1中遇到一个问题,即“多项目解决方案”。
Here is the Solution Structure: BNLib - amy personal library of utilities WidgetClientApp - The asp.net application front end WidgetConsoleUtilities - A console application WidgetCore - contains shared interfaces, classes and enums WidgetMiddleTier - Bussiness logic WidgetDataLayer - DB access via linq to SQL.
The problem After adding a reference to the middle tier assembly (WidgetMiddleTier, which contains namespace Widget.MT) to the console application (WidgetConsoleUtilities), I added a using directive to my program.cs page:
using Widget.MT;
然后,我收到使用指令的汇编错误:
“Widget”号名称中不存在哪类或称号空间名称(如果你没有议会参考资料?)
I use this assembly in several other projects in the same solution without a problem. I use another assembly (WidgetCore, which contains namespace Widget.Core) in the console application without difficulty.
A web application (Widget) uses both these assemblies without issue.
我已尝试拆除和翻新名称空间,关闭和重新开放2010年视觉演播室,清理建筑,直接包括集会而不是项目,并且灯光已经奏效。
Any ideas?
你们的帮助将大大提高。
最好
Brett