   share up the automatic executor for visual studio. net command prompt
  @REM By unknown@echo offcolor 0A%~d1cd %~p1set _source_=set _dll_=:LOOPif "%1" == "" goto COMPILEif /i "%~x1"==".cs" goto SOURCEif /i "%~x1"==".dll" goto DLLgoto SFT:SOURCEif "%_source_%"=="" goto S2:S1set _source_=%_source_% %~nx1goto SFT:S2set _source_=%~nx1goto SFT:DLLif "%_dll_%"=="" goto D2:D1set _dll_=%_dll_%,%~nx1goto SFT:D2set _dll_=%~nx1goto SFT:SFTshiftgoto LOOP:COMPILEset _compilerdir_=%WinDir%\MicroSoft.NET\Framework\v2.0.50727set _compiler_=%_compilerdir_%csc.exe /unsafeif "%_dll_%"=="" goto C2:C1%_compiler_% /r:%_dll_% %_source_%goto RESULT%errorlevel%:C2%_compiler_% %_source_%goto RESULT%errorlevel%:RESULT1echo -------------------------------------------echo compileing %_source_% is failed!echo -------------------------------------------pausegoto END:ENDusage:directly drag a single of filename.cs on its merits; automatically renewable make-up filename.exe or filename.exe dll.only just to add " /t:library"after,drag the filename.exe on visual studio.net 200x Command Prompt.you will see the result.   