我想将我的dotnet核心项目配置为单个可执行文件进行编译.
该项目类似于生成的项目dotnet new:
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable",
"emitEntryPoint": true
},
"dependencies": {},
"frameworks": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0"
}
},
"imports": "dnxcore50"
}
},
"runtimes": {
"win10-x64": {}
}
}
Run Code Online (Sandbox Code Playgroud)
我怎么能这样编译成一个program.exe?当我运行dotnet publish它时,将dll和program.exe放在发布文件夹中,但不会将它们组合在一起.