I'm using Visual Studio for Mac version 17.0.6.
As you can see on this screenshot it is not possible to add a reference to System.Configuration.
Solution:
- install NuGet Package - System.Configuration.ConfigurationManager.
- Create app.config file and set "Build action" to "EmbeddedResource"
<?xml version="1.0" encoding="utf-8"?><configuration><appSettings><add key="name" value="Joe"/></appSettings></configuration>
- using System.Configuration;
- enjoy)
string name = ConfigurationManager.AppSettings["name"];
BTW: Do not add an app.config for a library