求助~请问用csc行命令如何,将两个dll文合和为一个dll文件?

解决方案 »

  1.   

    C:\WINNT\Microsoft.NET\Framework\v1.1.4322\csc.exe /out:build\OA_Portal.dll @1.rsp1.rsp:
    ______________
    /target:library
    /optimize+
    /warn:4
    /nowarn:679/r:System.dll
    /r:System.Design.dll
    /r:System.Drawing.dll
    /r:System.Web.dll
    /r:System.Xml.dll
    /r:bin\EQCCD.dll
    /r:bin\IBP_Core.dll
    /r:bin\Interop.ADODB.dll
    /r:bin\Interop.CDO.dll
    /r:bin\Interop.CDONTS.dll
    /r:bin\Interop.DHTMLEDLib.dll
    /r:bin\Interop.jmail.dll
    /r:bin\Interop.Microsoft.Office.Core.dll
    /r:bin\Interop.Office.dll
    /r:bin\Interop.OWC.dll
    /r:bin\Interop.VBIDE.dll
    /r:bin\Microsoft.Web.UI.WebControls.dll
    /r:bin\eWebSoft.dll
    /r:bin\JflSmsDLL.dll
    /r:bin\OA_Core.dll
    _________________-我在别人代码里找到的,不知道是不是你要的
      

  2.   

    没有试过哦。
    csc main.cs /t:library /r:System.dll,System.Web.dll /out: bin\main.dll
    csc main.cs /r:System.dll,System.Web.dll /out: bin\main.exe
    一般csc编译得到exe了,也有编译类库获得dll的加上参数/t:library
    /r:System.dll,System.Web.dll  这个是引用资源列表。多个dll用,或者;隔开
    /out: bin\main.exe /out 参数为输出文件放的位置及文件名了。
    把.cs文件替换成.dll文件应该可以吧,就像tc 那样编译 - -b