Imports Namespace syntax

G

Guest

Hi
in the same project I created a separate folder to house only my classe
Classe are declared as the following:
NameSpace someInventedName.myNameSpac
Public class myClasseNam
end clas
End Namespac

I added an Imports statement in 'Global.asax' as : Imports someInventedName.myNameSpac
but I'm getting this error
" Namespace or type 'myNameSpace' for the Imports 'someInventedName.myNameSpace' cannot be found.

I tried to add refference but The namespace is not listed under any of the thre
tabs in 'Add Reference' dialogue box (neither under 'Project' tab

the only dll I can see is the one in bin folder

thanks for hel
 
J

John Bowman

Tony,

Thanks for the post. Unfortunately, I can't help you... I have the exact
same problem, hope someone will help us out.

--
John Bowman
Verona, WI
(e-mail address removed)



tony said:
Hi,
in the same project I created a separate folder to house only my classes
Classe are declared as the following:
NameSpace someInventedName.myNameSpace
Public class myClasseName
end class
End Namespace

I added an Imports statement in 'Global.asax' as : Imports someInventedName.myNameSpace
but I'm getting this error:
" Namespace or type 'myNameSpace' for the Imports
'someInventedName.myNameSpace' cannot be found."
 
L

Lubos Hrasko

Try:

Imports DefaultNamespace.someInventedName.myNameSpace

where DefaultNamespace is specified in your project properties.

Hope it helps!

Cheers,
Lubos

tony said:
Hi,
in the same project I created a separate folder to house only my classes
Classe are declared as the following:
NameSpace someInventedName.myNameSpace
Public class myClasseName
end class
End Namespace

I added an Imports statement in 'Global.asax' as : Imports someInventedName.myNameSpace
but I'm getting this error:
" Namespace or type 'myNameSpace' for the Imports
'someInventedName.myNameSpace' cannot be found."
 
J

John Bowman

Lubos,

Many thanks! That did it. I'm coming at this from the C# world. This is one
of those things that's diff in VB.NET vs C#. In C# all you need for a
"using" statement in C# is:

using someInventedName.myNameSpace;

So I couldn't figure out why it kept complaining.

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top