c# - Adding the solution name as base of namespace for all projects -
so have solution in visual studio 2013. solution tree looks this:
mysolution >myprojecta >myprojectb >myprojectc
the default each class in project folder has namespace same project folder name.
but each class in each project folder have namespace starts solution name. example if there class named myclass
in myprojecta
want it's namespace mysolution.myprojecta
is there way automatically in visual studio? go , change namespaces self...but rather love see if possible automatiaclly.
in each project's settings, there default namespace used whenever add new files project. default value project name, can customize it. can change , new files added use desired namespace.
for existing files, find , replace can provide relatively quick cleanup (find: namespace myprojecta
-> replace with: namespace mysolution.myprojecta
, search within current project).
Comments
Post a Comment