I assume that this other project defining the console is a class library.
You need a project reference to the other project if it is in the same solution. Otherwise add an assembly reference. I.e., add a reference to the DLL from the bin/Release folder.
Assuming that CoolConsole
is a static class with static methods, import the namespace:
using TheOtherProject.TheNamespace;
Then you can do a call like CoolConsole.WriteLine("Hey");
.
However, should the methods not be static, you must create an object first:
var console = new CoolConsole();
console.WriteLine("Hello");
Also, the class as well as the methods must be public
to be accessible from another project (i.e., another assembly).
If your man app (executable) is not a console application itself, you must allocate a console using this answer from wizzardz to How do I show a console output/window in a forms application?
see also: Manage references in a project