473,385 Members | 1,329 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,385 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 1987
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.