가능한 중복 : 무슨 큰 차이가 여기
What is the difference between app.config file and XYZ.settings file?Settings.settings 대 app.config?
? 나는 Settings.Settings를 사용하기를 좋아한다. 왜냐하면 편집기를 사용하기 때문에 app.config에서 모든 XML을 얻지 못하기 때문이다.
가능한 중복 : 무슨 큰 차이가 여기
What is the difference between app.config file and XYZ.settings file?Settings.settings 대 app.config?
? 나는 Settings.Settings를 사용하기를 좋아한다. 왜냐하면 편집기를 사용하기 때문에 app.config에서 모든 XML을 얻지 못하기 때문이다.
Settings.settings는 Visual Studio에서 .resx 파일이 리소스를 보유하는 방법과 같은 설정 클래스를 생성하는 디자이너 파일입니다.
설정은 어딘가에 저장해야하지만 Settings.settings에 저장되지 않습니다 (기본 설정은). 이들은 .config 파일에 저장됩니다.
생성 된 클래스를 사용하면 app.config를 업데이트 할 수 있으며 XML 조작에 대해 걱정할 필요가 없습니다.
설정 파일에 환경 값 (연결 문자열 섹션과 같은)을 설정하면 안됩니다. 또한 app.config의 설정은 설정 파일에서 설정할 수 없으므로 한 번에 두 파일을 모두 사용해야합니다.
app.config를 사용하려면 xml 파일을 편집하는 것이 좋습니다. –
비슷한 스레드 도움말 아래에 희망이 있습니다. 내가보기에 가장 큰 차이점은 app.config는 주로 응용 프로그램 관련 구성 용이지만 Settings는 사용자 별 정보를 저장하는 데 사용할 수 있다는 점입니다. http://stackoverflow.com/questions/909688/what-is-the-difference-between-app-config-file-and-xyz-settings-file http://stackoverflow.com/questions/2539460/settings-file -vs-app-config [Settings.settings와 web.config 또는 app.config의 차이점은 무엇입니까?] (http://forums.asp.net/t/1473428.aspx) – CharithJ