OutputType
The project property that says whether the build produces a runnable program (Exe) or a library (Library) for other projects to reference.
In more detail
An Exe has an entry point and can be started with dotnet run. Web projects using the web SDK are executables without needing the property spelled out.
Example
<OutputType>Exe</OutputType>Related terms
- project file — The XML file, such as Hello.csproj, that tells the build which SDK, target framework, packages and settings a project uses.
- entry point — The first file or function that runs when a program starts.
- class library — A project that compiles to a .dll of reusable types with no entry point, referenced by applications and other libraries.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices