Fix startup when you reference the assembly directly instead of Hosting

- I missed this change in Program.cs when doing the initial package merging
This commit is contained in:
Stephen Halter 2015-08-12 15:12:53 -07:00
parent 9275250f6e
commit 097fb35ddf
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
},
"commands": {
"run": "Microsoft.AspNet.Server.Kestrel",
"kestrel": "Microsoft.AspNet.Server.Kestrel",
"web": "Microsoft.AspNet.Hosting"
}
}

View File

@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Server.Kestrel
public void Main(string[] args)
{
var program = new Microsoft.AspNet.Hosting.Program(_serviceProvider);
var mergedArgs = new[] { "--server", "Kestrel" }.Concat(args).ToArray();
var mergedArgs = new[] { "--server", "Microsoft.AspNet.Server.Kestrel" }.Concat(args).ToArray();
program.Main(mergedArgs);
}
}