Home > Net >  Is a Library a project or a C# source code file in Visual Studio?
Is a Library a project or a C# source code file in Visual Studio?

Time:09-26

Certains things in Visual Studio tend to be equal to something. E.g. a Project when compiled results in an assembly (exe file and dll file) being generated. Hence, Project equals to an Assembly when the project is compiled.

What is a Library in Visual Studio, is it a Project, a single C# source file or a combination of C# source files? Perhaps it is something I did not list.

CodePudding user response:

A library project is a loose collection of files which contain namespaces and classes which then can and are compiled into a dll for linking into other projects, such as an executable.

The project and resulting dll are considered as a generically termed library regardless of whether it is code in a project or a dll.

  • Related