Debug.Assert는 원래 Release 모드에서는 더 이상 동작하지 않는다. Release 모드를 위해서는 Trace.Assert가 있기 때문이다. 하지만 configuration 파일을 이용해서 프로퍼티를 수정하면 Release 모드일 경우에도 동작하게 할 수 있다고 Debug.Assert Method (Boolean, String)에 쓰여 있다.
<configuration>
<system.diagnostics>
<assert assertuienabled="true" logfilename="c:\\myFile.log" />
</system.diagnostics> </configuration>
'Programing > 닷넷' 카테고리의 다른 글
| [WPF] 이벤트(Event) 시기 (0) | 2012.12.07 |
|---|---|
| [WPF] 변환(Transform)의 종류 (0) | 2012.12.07 |
| LINQ 예제 (0) | 2012.12.05 |
| 도를 라디안으로 변환하기 (0) | 2012.12.05 |
| UAC관련 개발사항 (0) | 2012.11.28 |