软件在加入using System.Configuration;
语句后, 在引入ConnectionStrings等参数时出现
The name 'ConfigurationManager' does not exist in the current context
错误,其原因是仅手动引入未System.Configuration
命名空间未在软件中添加System.Configuration.dll
引用,添加Configuration的引用。
- Right-click on the References / Dependencies
- Choose Add Reference
- Find and add System.Configuration.Find and add System.Configuration.