开发者

Namespaces C# .NET [closed]

As it current开发者_开发知识库ly stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

I would like to use (usign NamePrject.Queries;) but when i compile show me an error.

using MvcApplication2.Queries;

Error 1 The type or namespace name 'Queries' does not exist in the namespace 'MvcApplication2' (are you missing an assembly reference?) C:\Users\marsimon\Documents\Visual Studio 2010\Projects\MvcApplication2\MvcApplication2\Controllers\NuevoController.cs 7 23 MvcApplication2

if you could help thanks


using NamespaceName just brings the names from the namespace into the scope. But what assembly are those names(within the namespace in question) located in? If it is the same assembly you're currently using, then you've mistyped the assembly name. If it is another assembly, you should add a reference to that assembly! (take the hint of the compiler)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜