C
craig
Does anyone know how to add an application configuration file to a C#
project from within Visual Studio 2003?
Thanks!
project from within Visual Studio 2003?
Thanks!
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.
craig said: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.
Gregory Persson said: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 said: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.
craig said:Thanks!
Not much of a template, is it!