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

来源:互联网 发布:贵州省大数据局招聘 编辑:程序博客网 时间:2024/06/06 01:51

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

原创粉丝点击