Search code examples
c#.net.net-assembly

How to split an assembly file(.dll file) into many assembly files


I am building a projects by C#. It contains many folders, each folder represents for a function. Now I want to make a .dll file for each of them. Is there any tools can help me to do it? And after that I want to merge them together. Is there any solution for me to do it?

Thank you,


Solution

  • You are searching for modules in .NET. Where module is a file (not a DLL) with self sufficient (from structure perspective) content which can be read and executed by CLR virtual machine into machine code.

    Read this for detailed explanation: How to: Build a Multifile Assembly

    You will need to do a little command line execution, no direct visual studio support, afaik.