I’m a newbie into this .NET Framework using C#. Some sample codes I downloaded don’t run. I know that on my side, I can only run application project and not run any library project. What’s the difference between those two? And how do I make library run as well?
Share
A library (Class Library in .NET) is some kind of software that is designed to be reused and can’t be run directly. Usually you use the output of a library project (a .dll file) in another library or application. A library has no starting point. So you cannot double click it’s file and expect it to start running. It contains classes, written by someone else (or yourself), ready to be used in other softwares.
In contrast, an application Has a starting point (the
Mainmethod), so it can be run directly.