How can I choose between .dll and .exe as output type from project in new project format for .NET Core?
Asked
Active
Viewed 623 times
1 Answers
2
The option in project.json file is emitEntryPoint
.
"buildOptions": {
"emitEntryPoint": true
}
This switches between console application .exe (true) and library .dll (false).
When this option is enabled, the application must have public static void Main()
.
-
2Adding `emitEntryPoint` alone is not enough. If the application is a portable application, no executable file is generated. If it is a self-contained application, an executable file is generated. See [.NET Core App Types](https://dotnet.github.io/docs/core-concepts/app-types.html). – Daniel Grim Jun 16 '16 at 11:44