将.cs转换为.dll

Aru*_*run 5 c# dll

如何将.cs文件编译成DLL?

我的项目名称是WA.在bin编译后的我的文件夹中,我发现:

  • WA.exe
  • WA.vshost.exe
  • WA.pdb

lep*_*pie 16

你必须编译它:

csc /t:library source.cs  -> source.dll
Run Code Online (Sandbox Code Playgroud)


Win*_*ith 6

你在使用Visual Studio吗?

如果在VS中创建类库项目,添加.cs文件然后编译项目,输出将是.dll文件.


小智 4

你使用编译器。Csc.exe 随 .NET Framework 一起提供。

检查此链接:http://msdn.microsoft.com/en-us/library/78f4aasd.aspx

如果您希望开发过程更轻松,您还可以使用 Visual Studio 等 IDE。