well i basically cant add an app.config file to my win forms project.
and i dont know if the application actually uses it or no.
i used “Add” > “New Item” > “Application Configuration File” but well i dont know if the app reads the data from the file or no.
so how can i know that the app actually reads that file?
thanks
well i basically cant add an app.config file to my win forms project. and
Share
The file will be called
"yourappname.exe.config"in the output directory of your project. In order to test whether your application uses the file or not you can add a simple test to the code:In the app.config file:
Basically anywhere in your application’s code (preferably code that is executed during startup):
You should see a message box with the value from the config file.