Visual Studio settings.

  • Thread starter Thread starter JJ
  • Start date Start date
J

JJ

Is there any way you can set a project to add the default namespace lines to
any new code files you create automatically?

Just curious...

Thanks,

JJ
 
Is there any way you can set a project to add the default namespace lines to
any new code files you create automatically?

Just curious...

Thanks,

JJ

Hi...

In vs2005 right click on project and select properties...
in projectproperty window... you will find default namespace under
application tab...
If you put your own name in default namespace textbox...
from now on if you add any file to project... the default name space
will be your custom namespace name

Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
 
The namespaces element in web.config defines a collection
of import directives to use during assembly pre-compilation.

This attribute corresponds to the @ Import directive on an ASP.NET page.

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<pages>
<namespaces>
<add namespace ="System.IO" />
<add namespace="System.Text"/>
</namespaces>
</pages>
</system.web>
</configuration>

Now, you can use System.IO and System.Text in any page without specifically importing them.



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Thanks,
JJ
Juan T. Llibre said:
The namespaces element in web.config defines a collection
of import directives to use during assembly pre-compilation.

This attribute corresponds to the @ Import directive on an ASP.NET page.

<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<pages>
<namespaces>
<add namespace ="System.IO" />
<add namespace="System.Text"/>
</namespaces>
</pages>
</system.web>
</configuration>

Now, you can use System.IO and System.Text in any page without
specifically importing them.



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Back
Top