English 中文(简体)
在推荐会议之后无法使用名称空间
原标题:Unable to use namespace after referencing assemblys

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

最佳回答
问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签