一、選擇菜單 Tools、Preferences
二、各項參數一
C#2012 csc編譯
D:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
$(FileName)
$(FileDir)
三、各項參數二
C#2012 run運行
$(FileNameNoExt)
..
$(FileDir)
四、各項參數三
C#2012Bat編譯
E:\Tool\EditPlusCsharpVS2012.bat
$(FileDir) $(FileName)
$(FileDir)
五、EditPlusCsharpVS2012.bat內容如下
REM OK
call "D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
@echo off
rem 輸出當前工作目錄
echo %cd%
rem 設置當前目錄爲
set current_dir=%1
pushd %current_dir%
echo 當前目錄: %cd%
if exist %~n2.exe (del %~n2.exe ) else (echo 不存在 %~n2.exe 開始編譯)
REM 限制可以在其上運行此代碼的平臺:x86、Itanium、x64、arm、anycpu32bitpreferred、anycpu。默認anycpu
REM PE頭x64 0x8664 ;x32 014c
REM csc %2 /platform:x64
csc.exe %2
REM popd
REM echo 當前目錄: %cd%
REM if exist %~n2.exe (START %~n2.exe ) else (echo 不存在 %~n2.exe)
pause