如何在 .NET Core 的新项目格式中选择 .dll 和 .exe 作为项目的输出类型?
最佳答案
project.json 文件中的选项是emitEntryPoint
。
"buildOptions": {
"emitEntryPoint": true
}
这会在控制台应用程序 .exe (true) 和库 .dll (false) 之间切换。
启用此选项后,应用程序必须具有 public static void Main()
。
关于c# - 在 project.json 的 .NET Core 中选择 .dll 和 .exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37853979/