ConfigurationManager.AppSettings generates a compile-time error on .Net Standard 1.5

I am using .Net Standard 1.5 and want to read some values ​​from my configuration. However the next line

ConfigurationManager.AppSettings["Foo"] 

gives me the following compile time error:

CS7069 A reference to the type "NameValueCollection" claims to be defined in "System", but could not be found

I thought there might be another way to read from the AppSettings in the .NET Framework, but I did not find anything in this thread.

+8
namevaluecollection configurationmanager .net-standard
source share

No one has answered this question yet.

See related questions:

700
What is the difference between .NET Core and .NET Standard Class project types?
213
.NET Standard vs .NET Core
85
Visual Studio 2017 - Failed to load file or assembly "System.Runtime, Version = 4.1.0.0" or one of its dependencies
31
The Object type is defined in an assembly that is not referenced (NET Standard 2.0 / .NET Framework 4.6.1)
14
Link to the .NET Standard API
7
Using assemblies compiled from IL with .NET Core & Xamarin
6
How to reference the .Net standard in a T4 file?
2
Structuring the main ASP.NET project to reference standard libraries.
2
Unable to access standard .NET libraries
one
.Net Standard Implementation Resolution

All Articles