System.Configuration issue

So i want to use System.Configuration to manage a configuration file for my project.

The problem I have is the following error in Unity :

error CS0103: The name `ConfigurationManager' does not exist in the current context

I am using System.Configuration; AND I have added it to the Project References in Visual Studio, but Unity gives the error. Moreover, if I close Visual and Unity, when I open it again the reference to System.Confiuration.dll is unticked.

I tried browsing and adding it manually, doesn’t change anything.
This is annoying and frustrating, does anyone have an idea of what’s going wrong ?

My research revealed that you have to add a local copy reference of System.Configuration.dll and System.Configuration.Install.dll in the local plugins folder so the code compiles at design time. However, regardless of what I’ve tried so far appSettings.Count always comes back 0, and when I try to use the AddUpdateAppSettings() procedure in the sample to create the file, it fails, too.

I posted this question on July 4, with no reply yet.

This might be an old post but anyone still struggling with this should try:

  1. Ensure your VS editor and VS packages are up to date via the package manager
  2. Go to Edit-> Project Setting->Player->Other->API compatibility and switch to 2.0 (even if you’re on 2.0 just switch it and switch it back).