Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert .cs to .dll

Tags:

c#

dll

How can I compile a .cs file into a DLL?

My project name is WA. In my bin folder after the compilation, I found:

  • WA.exe
  • WA.vshost.exe
  • WA.pdb
like image 954
Arun Avatar asked Dec 01 '08 10:12

Arun


People also ask

Can you make a DLL with C#?

To create a DLL File, click on New project, then select Class Library. Enter your code into the class file that was automatically created for you and then click Build Solution from the Debug menu.

How do I create a DLL file?

To create a DLL project in Visual Studio 2019On the menu bar, choose File > New > Project to open the Create a New Project dialog box. At the top of the dialog, set Language to C++, set Platform to Windows, and set Project type to Library.

What is DLL file in C#?

A DLL is a library that contains code and data that can be used by more than one program at the same time. For example, in Windows operating systems, the Comdlg32 DLL performs common dialog box related functions. Each program can use the functionality that is contained in this DLL to implement an Open dialog box.


1 Answers

You have to compile it:

csc /t:library source.cs  -> source.dll
like image 173
leppie Avatar answered Sep 27 '22 21:09

leppie