.net下的csc批处理文件,直接输出到 当前目录,方便编译

csc.bat

set FrameworkPath=%SystemRoot%/Microsoft.NET/Framework/v1.0.3705
if exist "%FrameworkPath%/csc.exe" goto :Start
set FrameworkPath=%SystemRoot%/Microsoft.NET/Framework/v1.1.4322
if exist "%FrameworkPath%/csc.exe" goto :Start
:Start

%FrameworkPath%/csc.exe /target:library /out:DBClass.dll DBClass.cs
pause

你可能感兴趣的:(asp.net)