Namespaces C# .NET [closed]
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)
精彩评论