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
C#文件编译成DLL的方法
博客介绍了将C#的.cs文件制成.dll文件的方法。可使用csc.exe编译,命令为csc /t:library /r:System.Web.dll /r:System.dll /out:***.dll ***.cs ,既可以在cmd工具中操作,也能写成批处理文件来实现。
1万+

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



