【发布时间】:2016-01-05 15:58:07
【问题描述】:
最近每晚 RC2 版本的更新似乎改变了程序的启动方式。自更新以来,我现在在运行以下命令时出现错误。
// "commands": {
// "web": "Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:1287"
// }
dnx --watch web
'Microsoft.AspNet.Server.Kestrel' does not contain a 'Program' type suitable for an entry point Stopped listening.
Startup.cs 编译并具有以下方法。
public class Startup
{
public void ConfigureServices(IServiceCollection services, IHostingEnvironment env)
{ ... }
public void Configure(IApplicationBuilder app, IApplicationLifetime lifetime)
{ ... }
}
需要做什么才能让程序以最新的nightly 构建启动?
这是一个重现该问题的示例。 https://github.com/roydukkey/moist/tree/stackoverflow-34615917
sdk: v1.0.0-rc2-16357
【问题讨论】:
标签: asp.net-core