import by default

liptonIcedTea

Well-known member
Joined
Jan 18, 2007
Messages
89
Programming Experience
1-3
Hi,

I'm writing an application which has a number of classes in seperate files.

Each of these classes frequently access another project in my solution.

For each class, I have to put in "Import Assembly2" - is there a way where I can just specify that I want to import these references in automatically - instead of having to use this import statement in all of my files?

thanks
 
If you dont want to use Import statements, Then you will have to use the fully qualified name.

For eg,

VB.NET:
Dim c1 as New Assembly2.Class1
 
In project properties, References tab you can browse and checkbox namespaces that will be imported for all classes. All namespaces of all referenced assemblies are available in that box.
 
Back
Top