更新时间:2022-11-05 17:51:10
您可以使用 Kestrel 库进行自我托管.
在project.json
文件中将依赖项添加到库中:
You can use the Kestrel library for self-hosting.
Add dependency to the library in the project.json
file:
"dependencies": {
"EntityFramework.Commands": "7.0.0-rc1-final",
// Dependencies deleted for brevity.
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final"
}
然后为Kestrel设置以下命令:
Then scecify this command for Kestrel:
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
}
您可以通过命令行从MVC项目的文件夹中启动它:
You can start it by command line from the folder with your MVC project:
dnx web
请通知dnvm
必须先运行.