Question

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.

Was it helpful?

Solution

Instead of using an ini file, you should be using a .config file - 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.config file to your project from the new item screen in Visual Studio.

Take a look at Configuration Files on MSDN for more detail and the AppSettings class (this page includes some examples).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top