경고 1 'System.Configuration.ConfigurationSettings.AppSettings'은(는) 사용되지 않습니다. '"This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings ~~~~~

 

app.Config 파일을 참조 해서 사용 할 때

 

System.Configuration.ConfigurationSettings.AppSettings["블라블라"]

 

이용 할 시 나타난다.

 

이는 원래 System.dll에 포함이 되었으나 MS에서 'System.Configuration.dll로 분리를 시켰다.

 

이를 해결하고자 할 경우

 

System.Configuration.ConfigurationManager.AppSettings["블라블라"] 처럼 쓰면 된다.

 

물론 경고 메세지가 떠도 사용해도 별 문제 없이 작동은 하나 그래도.. 기왕이면!!

 

경고 메세지 없이 깔끔하게 쓰면 좋지 않을까!! 하면 위와 같이 이용한다.

 

 

단!! using System.Configuration; 요놈은 꼭 해주기!!

 

그러고 보니 정말 오랜만의 포스팅.. ㅠ_ㅠ