Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How do I create an app.config file??

How do I create an app.config file??

Scheduled Pinned Locked Moved C#
csharpquestionvisual-studio
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Code Toad
    wrote on last edited by
    #1

    :)I am somewhat new to C# and I need to create an app.config file for my application. Does VS.NET automatically create this file and if so, where can I find it? If it doesn't, how would I create the app.config file to use with my program? Thanks!

    C 1 Reply Last reply
    0
    • C Code Toad

      :)I am somewhat new to C# and I need to create an app.config file for my application. Does VS.NET automatically create this file and if so, where can I find it? If it doesn't, how would I create the app.config file to use with my program? Thanks!

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      VS.NET should create one for you. If there isn't one you can add right-click on your project in the Solution Explorer and select "Add New Item..." from the menu. In the list of templates you will find (if you scroll to the end) an "Application Configuration File" entry. Accept the name app.config and let it add it to your project. Remember, and this can be the confusing bit, that your app.config file will be copied to the output directory when you build the project. The copy will be called project_name.exe.config I hope this helps, Colin. --Colin Mackay--

      "In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups