简体   繁体   中英

create visual studio solution and include settings of the applicatioon

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 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM