如何把.cs文件编译成DLL文件

开始--程序--Microsoft Visual Studio.NET 2013--Visual Studio.NET工具,点击其中的“VS2013 开发人员命令提示”,就会进入Microsoft Visual Studio.NET 2013命令提示窗口,
输入命令:
csc /out:d:\test\test.dll /t:library d:\test\test.cs

回车,就会在test目录下生成test.dll文件

但是如果这个cs文件引用了bin目录下的另外一个dll文件如comman.dll,则应该这样输入命令:
csc /out:d:\test\test.dll /r: d:\test\bin\comman.dll /t:library d:\test\test.cs

posted on 2016-05-05 10:09  艾晨爸  阅读(506)  评论(0编辑  收藏  举报

导航