I have a C# project with many classes. Is it possible to pack this project(Console application) into library(maybe dll or anything else) and invoke all functions of a definite class from other programming languages?
EDIT:
Here is the code:
using System; using System.Text;namespace Test { class Program { public int aplusb(int a, int b) { return a + b; }
public void hello() { Console.WriteLine("Helo world"); } }}
And the hierarchy in project folder:
- Properties
- References
- bin
-- Debug
--- Test.dll
--- Test.exe
--- Test.pdb
--- Test.vshost.exe
--- Test.vshost.exe.manifest
- obj
-- x86
---Debug
----TempPE
----- DesignTimeResolveAssemblyReferencesInput.cache
----- Test.csproj.FileListAbsolute.txt
----- Test.dll
----- Test.pdb
----- ResolveAssemblyReference.cache
- Program.csI checked both Test.dll from bin and obj. They are empty
when you build the project you get the dll in the corresponding bin folder.
You can use this dll in other project by adding reference to this dll. After that you can use its methods.