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

Posted by Wietze Veld on Stack Overflow See other posts from Stack Overflow or by Wietze Veld
Published on 2012-10-17T10:49:47Z Indexed on 2012/10/18 11:01 UTC
Read the original article Hit count: 160

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about visual-studio