1、cs文件制成dll
使用csc.exe编译,
命令是csc /t:library /r:System.Web.dll /r:System.dll /out:***.dll ***.cs
(可以用cmd工具(注意粘贴板及TAB键的使用),也可以写成一个批处理文件.bat,其内容为“C:\WINDOWS.0\Microsoft.NET\Framework\v1.1.4322\csc /t:library /r:System.Web.dll /r:System.dll ”);
/out:Class1.dll *.cs)
写批处理!
csc /t:library /r:System.Web.dll /r:System.dll /out:1.dll 1.cs
csc /t:library /r:System.Web.dll /r:System.dll /out:2.dll 2.cs
...
csc /t:library /r:System.Web.dll /r:System.dll /out:n.dll n.cs
博客介绍了使用csc.exe将cs文件制成dll的方法,给出了编译命令,可通过cmd工具操作,也能写成批处理文件。还列举了多个文件编译成dll的批处理示例。
1万+

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



