::copyright@cjy @echo off ::mcs.exe address set addrMcs=D:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.5 ::UnityEngine.dll address set addrUEdll=D:\UnityEngine.dll ::source c# file address set addrscript=D:\unity_proj\motion1\Assets\Scripts\ set FileName=TestLib.dll cd /d %addrMcs% echo %cd% :begin echo Begin C# ==> DLL... mcs -r:%addrUEdll% -target:library %addrscript%TestLib.cs copy %addrscript%%FileName% D:\%FileName% @pause goto begin