Where is the app.config?

I am trying to configure logging using the Microsoft Enterprise Library (log4net seems like a dead project). I use VB.NET 2008 and VS 2008. I searched for all MSDN documentation, CodePlex documents (including Hands-On labs that were installed and then disappeared) and online tutorials to no avail.

They all refer to the mysterious “configuration file” or “App.config,” which I cannot find and cannot add. I even tried adding a new text file and renaming it to "App.config", but that only made VS 2008 spit out a red wavy line in an empty file.

Any suggestions on finding the elusive app.config are welcome.

(and if this makes the EntLib configuration tool appear, I will be delighted)

Edit: I was deceived!

The tree in VS 2008 is not a true subset-subset relation, which is why I am so upset.

In particular, the top of the tree: alt text http://static.zooomr.com/images/7954203_910064e809.jpg

And the "subsection" of the tree. alt text http://static.zooomr.com/images/7954204_69e03c8502.jpg

+5
source share
4 answers

I am sure you can use web.config if youre in a web application or web solution.

Otherwise see here

[EDIT] In my VS application file, you can add as: Add a new item → General → Application configuration file

+14
source

, , , Visual Studio soultion.

Add -> New Item -> Application configuration file
+3

$0,02, Google, , . winforms, app.config , . . " " , , . " ", . , , . ( VS2010, .)

+2

vb

→ - > → ...

(for app.config or web.config respectively)

+1
source

All Articles