Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vb.net project template how can I leave the root namesapce empty

I have been tinkering with the VS 2010 template. So far I am able to create a vb.net class library project from my template.

However, one small thing is bugging me.

In my project template the default assembly name is the same as the default file name. I have left the root namespace empty.

But when I create a new project from the template, VS 2010 automatically fills the root namespace with the same name as my assembly name.

My template project (vbproj) for the assembly name and root namespace looks like this:

<AssemblyName>$safeprojectname$</AssemblyName>
<!-- RootNameSpace should always be empty. -->
<RootNamespace></RootNamespace>

But as said, when I leave this empty it is always overwritten with the assembly name. Even if I create a custom parameter with an empty string as value to replace the root namespace, it is still overridden.

Any help is appreciated.

like image 273
WietzeVeld Avatar asked Oct 17 '12 10:10

WietzeVeld


1 Answers

In the Solution Explorer -> right click on the solution -> Properties -> clear the Root namespace field -> press Enter to save.

like image 56
IWIH Avatar answered Oct 22 '22 05:10

IWIH