CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: config file

  1. #1
    Join Date
    Feb 2008
    Posts
    12

    config file

    I saw some config file in C# project, are those manually edited XML or
    auto generated XML files?

    http://www.oniva.com/upload/1356/config.jpg

    are those standard C# features or just application specific defined
    files?

    I saw it is used to store GUI name and GUI error messages.

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: config file

    Configuration files are often manually created, but there are also tools.

    Take a look at Enterprise Library to see one approach to dealing with this.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: config file

    it depends on the project: in DataBase projects, Web Service and ASP.Net Projects configuration file are mostly created automatically in XML-Like format
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  4. #4
    Join Date
    Oct 2008
    Posts
    51

    Re: config file

    app.config is a .net thing. They are XML files that store your settings for the application.

    See:
    http://msdn.microsoft.com/en-us/libr...58(VS.80).aspx
    http://www.ajaxline.com/node/258

    Let me know if this was what you were looking for.

  5. #5
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: config file

    Quote Originally Posted by toraj58 View Post
    it depends on the project: in DataBase projects, Web Service and ASP.Net Projects configuration file are mostly created automatically in XML-Like format
    For the vast majority of projects in those categories I find that the percentage of content (after all comments are stripped out) that is "automaically generated" accounts for 5%-10% of the total information that resides in the production configuration file.....
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  6. #6
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: config file

    what is your idea about the OP post: is it Manually or Auto generated?
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  7. #7
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: config file

    Quote Originally Posted by toraj58 View Post
    what is your idea about the OP post: is it Manually or Auto generated?
    Depending on the project type, the file itself may be automatically generated, and have some default dontent.

    However, the CONTENT of the file is (in most cases) manually created and/or edited.

    There for both parts " manually edited XML" and "auto generated XML files" of the original question are true.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured