C# exe 파일(Release 버전) 생성


1. Release 모드로 변경

2. 상단 메뉴 중 Build > Clean Solution 클릭

3. 해당 프로젝트의 Properties > Application에서..

   3-1) Target framework는 배포환경에 맞는 버전으로 설정 
          ex) 현재 배포환경에서 '.NET Framework 4 Client Profile'이 설치되어 있다면, Target framework를  '.NET Framework 4 Client Profile'로 설정

   3-2) Output type은 'Console Application'으로 설정
   3-3) 저장(Ctrl + S)

4. 해당 프로젝트의 Properties > Build에서..

   4-1) Configuration을 'Release'로 바꾸고 Platform 및 Platform target은 'Active (Any CPU)'로 설정

   4-2) Output path는 'bin\Release\'여야 함
   4-3) 저장(Ctrl + S)

5. 상단 메뉴 중 Build > Build Solution 클릭

6. Build > Batch Build에서 Configuration이 'Release'인 것의 Build 항목을 체크한 후, Build 버튼 클릭

7. '[프로젝트 경로]\bin\Release'에서 '[프로젝트명].exe' 파일이 생성되었는지 확인


+ Recent posts