csc.exe /out:build\your.namespace.class.dll @yourrspfile.rspin yourrspfile.rsp:/target:library/r:System.dll
/r:System.Design.dll
/r:System.Drawing.dll
/r:System.Web.dll
/r:System.Xml.dll/resource:yoursrccode\yourResources\yourResource.resources
/resource:yoursrccode\yourImages\yourImage.bmpyoursrccode\*.cs

解决方案 »

  1.   

    在控制台里编译,或者建一个bat执行文件,通常选后者
      

  2.   

    你可以在项目-》创建类
    中编写自己的类,以及一些方法属性,
    然后在菜单上选择生成-》生成(你的项目名)
    如果没有错误的话,在你项目的bin\debug目录下就有这个dll文件关于调用dll:
     如果是控件dll的话可以在菜单-》添加/移除工具箱中添加
     如果是组件dll的话可以在菜单-》添加引用中添加                                            wish u good luck 
                                                     Greatsft
      

  3.   

    greatsft(C的使者)
    你的办法不行啊!
    求最终生成dll的办法!!
      

  4.   

    c:\winnt\microsoft.net\framework\v1.1.4322\csc  /t:library your.cs
      

  5.   

    在VS.NET命令提示符下进行如下操作:编译
    若要生成文件 MyLibrary.DLL,请使用以下命令行编译文件 Add.cs 和文件 Mult.cs:csc /target:library /out:MyLibrary.DLL Add.cs Mult.cs
    /target:library 编译器选项通知编译器输出 DLL 文件而不是 EXE 文件。后跟文件名的 /out 编译器选项用于指定 DLL 文件名。否则,编译器使用第一个文件 (Add.cs) 作为 DLL 文件名。若要生成可执行文件 MyClient.exe,请使用以下命令行:csc /out:MyClient.exe /reference:MyLibrary.DLL MyClient.cs
    /out 编译器选项通知编译器输出 EXE 文件并且指定输出文件名 (MyClient.exe)。此编译器选项是可选的。/reference 编译器选项指定该程序使用的 DLL 文件。