473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Visual Studio settings.

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

Jul 12 '07 #1
4 1143
On Jul 12, 3:08 pm, "JJ" <a...@xyz.comwrote:
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

Jul 12 '07 #2
JJ
Thanks. Can you do the same for websites in Visual Studio 2005?
JJ
"Masudur" <mu*****@gmail.comwrote in message
news:11**********************@n2g2000hse.googlegro ups.com...
On Jul 12, 3:08 pm, "JJ" <a...@xyz.comwrote:
>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

Jul 12 '07 #3
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/
======================================

"JJ" <ab*@xyz.comwrote in message news:eW**************@TK2MSFTNGP03.phx.gbl...
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


Jul 12 '07 #4
JJ
Thanks,
JJ
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:Oe**************@TK2MSFTNGP05.phx.gbl...
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/
======================================

"JJ" <ab*@xyz.comwrote in message
news:eW**************@TK2MSFTNGP03.phx.gbl...
>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



Jul 12 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chen Yaohan | last post by:
In Visual Studio .NET IDE font settings (Tools, Options, Environment \ Font and Colors), some installed fonts are not listed. And funnily, when you choose different selections in "Show settings...
1
by: Corrie Meyer | last post by:
Announcement: SwiftReports standard edition 1.0 for Visual Studio ..NET 2003 released by UniSwift. We are pleased to announce the first release of a fully-managed reporting tool for the...
5
by: Somesh | last post by:
#include<map> #include<iostream> #include<string> using namespace std; int main() { map <string,int> test;
11
by: Larry Bird | last post by:
I'm attempting to build my first VC++ .net project and I'm unable to get a clean compile. Please view code below: // This is the main project file for VC++ application project // generated...
1
by: kjb | last post by:
Hi, I don't know if this is the right place to ask this, but I'll give it a try. When Firefox was my default browser on my computer, I installed Visual Studio .NET. Everytime I ran my...
4
by: interwanderer | last post by:
something very odd... I have installed visual studio 2005 on my machine. I created a console application with visual basic 2005 or C#. I typed something in. tried to delete.. but i couldn't I...
0
by: google | last post by:
Hi, after fighting with an issue in Visual Studio.NET 2003 in aspx, I've finally figured out what it is and maybe you might find it usefull. Symptoms: When you try to open a .aspx or...
0
by: SpotNet | last post by:
Hello News Group, I want to set output\settings folders for Visual Studio .NET 2005 (Standard) to common locations. Ideally I want to have the following D:\Documents and Settings\<My User Goes...
13
by: sck10 | last post by:
Hello, I am trying to find the option VS2K5 that will automatically change HtmlMeta hm=new HtmlMeta(); or HtmlMeta hm = new HtmlMeta(); to HtmlMeta hm = new HtmlMeta(); What I would...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.