Suppose one has not just a single program but some more general functions that one wants to put into a library. Therefore a solution is needed. Here's how to create a solution:
Here's the contents of library_functions.cminor:
And here's the contents of the library.cminorp project file:
Here's the contents of the program.cminor file using the library:
And here's the contents of the program.cminorp project file:
Finally here's the contents of the solution.cminors soution file:
Under the solution directory the compiler creates an assembly directory. Under that directory there's the directory matching the configuration used to build the solution. Under the configuration directory, the compiler copies the assembly files for each project included in the solution, and also the assembly file of each referenced library of those projects.
Here's the directory structure of the solution:
| +--solution | +--solution.cminors | +--assembly | | | +--debug | | | | | +--library.cminora | | | | | +--program.cminora | | | +--release | | | +--library.cminora | | | +--program.cminora | +--library | | | +--library_functions.cminor | | | +--library.cminorp | | | +--assembly | | | +--debug | | | | | +--library.cminora | | | +--release | | | +--library.cminora | +--program | +--program.cminor | +--program.cminorp | +--assembly | +--debug | | | +--program.cminora | | | +--library.cminora | +--release | +--program.cminora | +--library.cminora