I am building a C# application. it has some parameters saved of a file named “settings.ini” .
Of course, I managed my application to read settings ,offer an interface for editing them and finally save them back to the ini file.
Would you please tell me how to include this setting file to the installation package (VS2008)
Thanks.
Instead of using an
inifile, you should be using a.configfile – that’s the normal configuration option for .NET application with quite a lot of built in support.You should be able to add an
app.configfile to your project from the new item screen in Visual Studio.Take a look at Configuration Files on MSDN for more detail and the
AppSettingsclass (this page includes some examples).