본문 바로가기

프로그래밍/C#

C#에서 코드가 실행되는 경로 얻기


string curDir = Path.GetDirectoryName(
                      System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);