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
博客给出了一段csc.bat脚本内容,该脚本用于在.NET环境下编译库文件。脚本会先查找不同版本的.NET Framework路径下的csc.exe,找到后使用其将DBClass.cs文件编译为DBClass.dll库文件。

3135

被折叠的 条评论
为什么被折叠?



