Using app.config with a class library

后端 未结 9 1348
忘掉有多难
忘掉有多难 2020-11-27 06:47

Frequently I need to create a .Net class library that requires an app.config for things such as database connection strings. However, these settings must be in the calling a

9条回答
  •  心在旅途
    2020-11-27 06:54

    Go to App properties -> Settings tab; add your settings there.

    Use Properties.Settings.Default. to access the setting. That's it!

提交回复
热议问题