Link to home
Start Free TrialLog in
Avatar of praveen1981
praveen1981Flag for India

asked on

Appconfig file in setup

Hi

I have created a set up for windows application file using visual studio 2012, but i could not see any app.config file after installing the setup, could you please guide me where does it exactly locates , because i want to change the connection string in the app.config file after completion of the installation of setup

i know this for web applications , but for windows i am facing problem.

Please guide
ASKER CERTIFIED SOLUTION
Avatar of praveen1981
praveen1981
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If it is still named app.config, then changing things in there won't change them in the application.

app.config is copied to another file in the application directory. The name of the file is the name of the assembly with a .config extension, such as MyApp.exe.config. This is the one that is used by the application.

Note also that if the entry was marked as a User configuration, the config file is just a template that is used the first time the user starts the application. Changing it later won't change it in the copy that is made in the user's application directory.
Avatar of praveen1981

ASKER

Thanks.