1新建一个类库 或者编译的时候这样 csc /target:library File.cs 2在你的项目里添加引用这个DLL,然后再using ... 或者编译时这样 csc /lib:[Directory] /reference:[FileName] File.cs 相关文章: