0

Surely I have missed something simple here. I used the link below to help me create a configuration file which I can use in my console application.

Simplest way to have a configuration file in a Windows Forms C# Application

<configuration>
  <appSettings>
    <add key="setting1" value="key"/>
  </appSettings>
</configuration>

I have built my console application, but can't see the app.config file anywhere. I'd like to edit this configuration file without recompiling.

Any idea on how to do this ? Basically, I'm passing the compiled console app to someone, and wont be providing the source code, so I have provided an .xml document which I hope they'll be able to edit after the console app has been compiled.

Thanks

thatOneGuy
  • 9,977
  • 7
  • 48
  • 90

1 Answers1

2

You need click on your project in Solution explorer, select Add File option and choose app.config. When you will rebuild solution file will by added configuration file like your_application.exe.config

Anton Gorbunov
  • 1,414
  • 3
  • 16
  • 24
  • I knew I was missing something. It's right there in front of me -.- you mentioned the name would be 'your_application.exe.config' and that solved it. Appreciate it, thanks – thatOneGuy Jan 11 '18 at 20:41