Choosing between .dll and .exe in .NET Core in project.json

How can I choose between .dll and .exe as the type of output from a project in a new project format for .NET Core?

+4
source share
1 answer

There is a parameter in the project.json file emitEntryPoint.

"buildOptions": {
    "emitEntryPoint": true
}

This switches between the console application .exe (true) and the .dll (false) library.

If this option is enabled, the application should have public static void Main().

See: The answer to the emitEntryPointmeaning

+2
source

All Articles