473,398 Members | 2,389 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,398 software developers and data experts.

Configuration files

Does anyone know how to add an application configuration file to a C#
project from within Visual Studio 2003?

Thanks!
Nov 15 '05 #1
6 1989
I would like to know the answer to this as well.
Nov 15 '05 #2
When I go to the utility folder, I don't find and Application Configuration
File template.

All I find is:
-Text File
-Crystal Report
-JScript File
-VBScript File
-Windows Script Host

"Andrew Mueller" <am******@instechnet.com> wrote in message
news:ef***************@TK2MSFTNGP10.phx.gbl...
Right-click on your project in the Solution Explorer and select 'Add' -->
'Add New Item. Then select the Utility folder and then select 'Application Configuration File.'

"craig" <e@mail.com> wrote in message
news:e6****************@TK2MSFTNGP09.phx.gbl...
Does anyone know how to add an application configuration file to a C#
project from within Visual Studio 2003?

Thanks!


Nov 15 '05 #3
> I usually add a new text file or XML file to the project
called "app.config" and VS.NET will figure out it's an
XML config file.

When you build, VS.NET will copy the app.config file
to the bin directory with the name [executable].exe.config
automatically.


But I was under the impression that there exists a template that includes
many of the common XML application configuration tags.
Nov 15 '05 #4
The App Config file template is available under VB projects but not C#
projects, AFAIK.

This is the starter code that template provides:
<?xml version="1.0" encoding="utf-8" ?>

<configuration>

</configuration>
"craig" <e@mail.com> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...
I usually add a new text file or XML file to the project
called "app.config" and VS.NET will figure out it's an
XML config file.

When you build, VS.NET will copy the app.config file
to the bin directory with the name [executable].exe.config
automatically.


But I was under the impression that there exists a template that includes
many of the common XML application configuration tags.

Nov 15 '05 #5
Thanks!
Not much of a template, is it!

"Gregory Persson" <ne*************@spamgourmet.net> wrote in message
news:OQ**************@TK2MSFTNGP09.phx.gbl...
The App Config file template is available under VB projects but not C#
projects, AFAIK.

This is the starter code that template provides:
<?xml version="1.0" encoding="utf-8" ?>

<configuration>

</configuration>
"craig" <e@mail.com> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...
I usually add a new text file or XML file to the project
called "app.config" and VS.NET will figure out it's an
XML config file.

When you build, VS.NET will copy the app.config file
to the bin directory with the name [executable].exe.config
automatically.


But I was under the impression that there exists a template that includes many of the common XML application configuration tags.


Nov 15 '05 #6
"craig" <e@mail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Thanks!
Not much of a template, is it!


No, it's not, but there's nothing stopping you from changing the template.

The template used by VB.NET projects is located here:
[install drive]\Program Files\Microsoft Visual Studio .NET
2003\Vb7\VBWizards\AppConfiguration\Templates\1033 \app.config

It's also possible to add a template for use by C# projects without too much
trouble.

Good luck,
Ryan LaNeve
Nov 15 '05 #7

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

Similar topics

1
by: TT (Tom Tempelaere) | last post by:
Hey everyone, I'm currently writing software for a project that uses a lot of Xml files for configuration. The project is written in C#/.NET. Each such xml file has a schema defined for it (Xsd...
5
by: rdcpro | last post by:
In reading MSDN docs on creating custom Configuration sections, I found this page: ...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
5
by: Ivan Weiss | last post by:
Hey all, I am trying to add a configuration file to my app so that I can store configuration options and provide a form to allow the user to change them. I know that these used to always be in...
6
by: yaron | last post by:
Hi all, I want to give a sample console application for the user with 2 configuration files. I want to give also a 2 .bat files for running the sample application, one for each configuration...
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
7
by: Peter Bradley | last post by:
OK. A bit behind the times, I know; but we're just moving over to .NET 2.0. How on earth do you manage configuration settings in a class library in .NET 2.0? In version 1.1, we used a handy class...
4
by: aSoundMind | last post by:
Hi there, I recieve this error Server Error in '/integrate' Application. -------------------------------------------------------------------------------- Configuration Error Description: An...
1
by: ajmerasunny | last post by:
Hi All, I have a java web application in which I need to read a configuration file(WebAgent.conf) that has the reference of another configuration file(SmHost.conf). I am placing both these...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.