在ASP.NET vNext中,您无法构建EXE文件,但您可以将应用程序打包为独立的。查看
kpm pack
可以在应用程序文件夹中运行的命令。它将打包所有依赖项,并生成您可以使用的命令脚本(而不是使用
k web
最终,如果你看
k腹板
是的,只是一些shell脚本最终运行
klr.exe
使用各种参数来指示它应该开始什么。
项目wiki包含有关
kpm
工具的各种选项:
https://github.com/aspnet/Home/wiki/Package-Manager
以下是的命令行帮助
kpm包装
让你知道它能做什么。
Usage: kpm pack [arguments] [options]
Arguments:
[project] Path to project, default is current directory
Options:
-o|--out <PATH> Where does it go
--configuration <CONFIGURATION> The configuration to use for deployment
--overwrite Remove existing files in target folders
--no-source Don't include sources of project dependencies
--runtime <KRE> Names or paths to KRE files to include
--appfolder <NAME> Determine the name of the application primary folder
-?|-h|--help Show help information