S
Samuel Hon
Hi
I'm using the vbc compiler and I'm trying to reorganise my Namespaces
according to the bit in here:
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=336
Basically, it suggests that you create a new directory for each
Namespace and nest them as necessary with each class in a diff file in
the directory.
For example (I'm not actually compiling this MS code):
/System/
/System/MyClass.vb
/System/Data/
/System/Data/SQLClient/
/System/Data/SQLClient/SqlCommand.vb
/System/Data/SQLClient/SqlParameter.vb
/System/Web/
/System/Web/Mail/
/System/Web/Mail/MailMessage.vb
I'm compiling using a command line similar to
vbc /recurse:*.vb /out:MyDLL.dll
However, when compiling MyClass.vb which imports from SqlCommand.vb,
it says:
BC30466: Namespace or type "SQLClient" for the Imports
"System.Data.SQLClient" cannot be found.
I am aware that you normally add resource files in the command line
similar to:
/r:system.Data.dll
Does this mean that I have to compile each class or directory before
building a larger dll?
Thanks in advance
Sam
I'm using the vbc compiler and I'm trying to reorganise my Namespaces
according to the bit in here:
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=336
Basically, it suggests that you create a new directory for each
Namespace and nest them as necessary with each class in a diff file in
the directory.
For example (I'm not actually compiling this MS code):
/System/
/System/MyClass.vb
/System/Data/
/System/Data/SQLClient/
/System/Data/SQLClient/SqlCommand.vb
/System/Data/SQLClient/SqlParameter.vb
/System/Web/
/System/Web/Mail/
/System/Web/Mail/MailMessage.vb
I'm compiling using a command line similar to
vbc /recurse:*.vb /out:MyDLL.dll
However, when compiling MyClass.vb which imports from SqlCommand.vb,
it says:
BC30466: Namespace or type "SQLClient" for the Imports
"System.Data.SQLClient" cannot be found.
I am aware that you normally add resource files in the command line
similar to:
/r:system.Data.dll
Does this mean that I have to compile each class or directory before
building a larger dll?
Thanks in advance
Sam