Add namespaces to converted vb.net web application project
Posted on 2015-01-08
I'm refreshing a vb.net website in VS2013, and experimenting with converting it to a web application. I've done all the steps of the conversion except adding namespaces to the code files. There are maybe 150 to 200 code classes in roughly as many module and codebehind files.
What are some ways to put all this code into a single namespace?
And will I have to change all the class.method calls to include that namespace? That is:
dim exeG as new GetVars
rtn = exeG.GetFirstVar(n)
would have to be
dim exeG as new MyNameSpace.GetVars
rtn = exe.GetFirstVar(n)
or if public shared,
rtn = MyNameSpace.GetVars.GetFirstVar(n)
Because that might be more work than the conversion to web application would be worth, given time and budget constraints.