I am trying to understand how to create and use a library in C#. In a similar way of understanding it in C using GCC.
I want to only use the command line, and not use Visual Studio IDE.
How can I
Create a library, including
- Writing the source file, where do I have to use namespace and if yes, do I have to choose the namespace representing the directories where the library file is in?
- Compiling it into a dll file?
Use the library's dll file in another C# program?
Tools>Options>Projects and Solutions>Build and Run, there is an option calledMSBuild project build output verbosity. If you set this to 'Detailed', you can then see the exact command line passed tocsc.exein the output window. That should help you in figuring out how to compile manually from the command line.