一、选择菜单 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