看起来每晚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) { ... } }
需要做些什么才能让程序启动最新的每晚构建?
这是一个重现问题的例子.https://github.com/roydukkey/moist/tree/stackoverflow-34615917
sdk:v1.0.0-rc2-16357