728x90
.Net Framework 의 프로젝트에는 App.config 파일을 추가할 수 있다.
app.config 파일을 작성하고 build를 수행하면 실행 파일의 경로에 app.config 파일이 그대로 복사가 된다.
프로그램이 실행이 될때에 app.config파일의 내용을 참조하여 runtime 시에 사용할 수 있다.
1. key 값을 설정할 수 있다. 아래와 같이 사용할 있다.
<appSettings>
<add key="CSVFileName" value="People.txt"/>
</appSettings>
2. Library Probing
참조하는 dll 라이브러리의 경로를 임의의 지정된 폴더에서 probing 하도록 설정을 할 수 있다.
<runtime>
<asm:assemblybinding xmlns ~~~>
<asm:probing privatepath="foo;bar;richard">
</asm:assemblybinding>
</runtime>
728x90
728x90