Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 097fb35

Browse files
committed
Fix startup when you reference the assembly directly instead of Hosting
- I missed this change in Program.cs when doing the initial package merging
1 parent 9275250 commit 097fb35

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

samples/SampleApp/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"commands": {
1515
"run": "Microsoft.AspNet.Server.Kestrel",
16+
"kestrel": "Microsoft.AspNet.Server.Kestrel",
1617
"web": "Microsoft.AspNet.Hosting"
1718
}
1819
}

src/Microsoft.AspNet.Server.Kestrel/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Program(IServiceProvider serviceProvider)
1818
public void Main(string[] args)
1919
{
2020
var program = new Microsoft.AspNet.Hosting.Program(_serviceProvider);
21-
var mergedArgs = new[] { "--server", "Kestrel" }.Concat(args).ToArray();
21+
var mergedArgs = new[] { "--server", "Microsoft.AspNet.Server.Kestrel" }.Concat(args).ToArray();
2222
program.Main(mergedArgs);
2323
}
2424
}

0 commit comments

Comments
 (0)