다음 배치 스크립트 코드를 사용하여 C# 코드를 컴파일하고 있지만 검은 색 창 (csc.exe)이 깜박이고 생성 된 exe 파일을 볼 수 없습니다.배치 파일을 사용하여 명령 줄에서 CSC.exe를 실행하십시오.
start /wait C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe /out:aa.exe Program.cs
start aa.exe
pause
나는 Program.cs
과 같은 위치에기본적으로 내가 원하는 동적은 Program.exe의 코드를 컴파일하고 실행하는 것입니다 파일 aa.exe을 만들려고합니다. 나는 오전
using this following references:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using System.Net.Mail;
여기에 주제에 대한 자세한 정보가있다 : [명령 줄에는 Csc.exe와 건물 (http://msdn.microsoft.com/ ko-kr/library/vstudio/78f4aasd.aspx) –