yegharmen
yegharmen

Reputation: 11

C# Deployment: How to have config files after deployment?

In my C# Windows form application (Visual Studio 2012 )I want to have some kind of config file, that right after deployment the users can change its content and the app will use changed values. This works perfect during development stage. After deploying the application my config file removed to %.. ../appdata/.. %. How can I do it, that after deployment I have that configfile in deployed folder?

I have found myself: right click on the file and set the property to content. With that file will be automatically included.

Upvotes: 0

Views: 2636

Answers (3)

yegharmen
yegharmen

Reputation: 11

Just right click on the file and set file property to content. With that the file will be automatically included

Upvotes: 1

BarrieK
BarrieK

Reputation: 1269

What are you using for deployment? If you use the Installshield lite project type then you can specify where the app.config file is deployed to.

Upvotes: 0

Ghost93
Ghost93

Reputation: 181

In the config file properties in Visual Studio, set:

Copy to output directory: Copy always

Upvotes: 0

Related Questions