문제 설명
CSC 컴파일러는 어디에서 PE 파일을 생성합니까? (Where CSC Compiler Generate PE file?)
예를 들어 명령 프롬프트에서 다음과 같이 지정합니다.
>csc /out:"C:\HelloWorld.exe" "C:\HelloWorld.cs"
CSC 컴파일러가 PE 파일을 생성합니다. 그 파일은 어디에 저장됩니까?
참조 솔루션
방법 1:
EXE in PE executable format will be where you specify with out
parameter or in current folder if you don't.
Not sure what "IL" file you are talking about, but IL (or rather byte code) + metadata are part of EXE file.
If you need details on PE format itself ‑ specification can be found on MSDN: PE Format.
If you are looking for IL you may use ILDASM (part of .Net SDK) or many other .Net decompilers to see IL. If you want to quickly experiment and see IL ‑ LinqPad.net is very convenient tool for that.
(by Karthikeyan、Alexei Levenkov)