How do you embed app.config in C# projects?

后端 未结 6 888
情深已故
情深已故 2020-12-10 02:15

When you compile a C# project, the app settings from app.config are saved along with the exe file. For example, if the program name is \"solve_np.exe\", there will be a \"so

6条回答
  •  独厮守ぢ
    2020-12-10 02:46

    It isn't unprofessional to have an app.config file shipped alongside your exe. I think the word you may be looking for is untidy. I personally don't find this is the case myself however everyone is different! Perhaps you could simply make the app.config file hidden by default?

    Or another alternative is to create your own config file which you could save to the App Data folder or even storing the settings in the registry instead.

提交回复
热议问题