From 9517de1c4577e381de301784d3e1d4f0d1f2dc30 Mon Sep 17 00:00:00 2001 From: Ajay Bhargav Baaskaran Date: Fri, 18 Dec 2015 15:30:52 -0800 Subject: [PATCH] React to hosting changes - updated samples --- samples/ActionConstraintSample.Web/Startup.cs | 11 ++++++++ .../ActionConstraintSample.Web/hosting.json | 3 +++ .../ActionConstraintSample.Web/project.json | 27 ++++++++++--------- samples/CustomRouteSample.Web/Startup.cs | 11 ++++++++ samples/CustomRouteSample.Web/hosting.json | 3 +++ samples/CustomRouteSample.Web/project.json | 9 ++++--- samples/EmbeddedViewSample.Web/Startup.cs | 11 ++++++++ samples/EmbeddedViewSample.Web/hosting.json | 3 +++ samples/EmbeddedViewSample.Web/project.json | 9 ++++--- samples/FormatFilterSample.Web/Startup.cs | 11 ++++++++ samples/FormatFilterSample.Web/hosting.json | 3 +++ samples/FormatFilterSample.Web/project.json | 9 ++++--- samples/InlineConstraintSample.Web/Startup.cs | 11 ++++++++ .../InlineConstraintSample.Web/hosting.json | 3 +++ .../InlineConstraintSample.Web/project.json | 27 ++++++++++--------- samples/JsonPatchSample.Web/Startup.cs | 11 ++++++++ samples/JsonPatchSample.Web/hosting.json | 3 +++ samples/JsonPatchSample.Web/project.json | 9 ++++--- samples/LocalizationSample.Web/Startup.cs | 11 ++++++++ samples/LocalizationSample.Web/hosting.json | 3 +++ samples/LocalizationSample.Web/project.json | 9 ++++--- samples/MvcSandbox/Startup.cs | 11 ++++++++ samples/MvcSandbox/project.json | 8 +++--- samples/TagHelperSample.Web/Startup.cs | 11 ++++++++ samples/TagHelperSample.Web/hosting.json | 3 +++ samples/TagHelperSample.Web/project.json | 12 ++++----- samples/UrlHelperSample.Web/Startup.cs | 11 ++++++++ samples/UrlHelperSample.Web/hosting.json | 3 +++ samples/UrlHelperSample.Web/project.json | 27 ++++++++++--------- 29 files changed, 212 insertions(+), 71 deletions(-) create mode 100644 samples/ActionConstraintSample.Web/hosting.json create mode 100644 samples/CustomRouteSample.Web/hosting.json create mode 100644 samples/EmbeddedViewSample.Web/hosting.json create mode 100644 samples/FormatFilterSample.Web/hosting.json create mode 100644 samples/InlineConstraintSample.Web/hosting.json create mode 100644 samples/JsonPatchSample.Web/hosting.json create mode 100644 samples/LocalizationSample.Web/hosting.json create mode 100644 samples/TagHelperSample.Web/hosting.json create mode 100644 samples/UrlHelperSample.Web/hosting.json diff --git a/samples/ActionConstraintSample.Web/Startup.cs b/samples/ActionConstraintSample.Web/Startup.cs index 8d5a8a5a2e..286b204fb5 100644 --- a/samples/ActionConstraintSample.Web/Startup.cs +++ b/samples/ActionConstraintSample.Web/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.Extensions.DependencyInjection; namespace ActionConstraintSample.Web @@ -25,5 +26,15 @@ namespace ActionConstraintSample.Web routes.MapRoute("default", "{controller}/{action}"); }); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } diff --git a/samples/ActionConstraintSample.Web/hosting.json b/samples/ActionConstraintSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/ActionConstraintSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/ActionConstraintSample.Web/project.json b/samples/ActionConstraintSample.Web/project.json index fd0f9b0fc3..f157745a87 100644 --- a/samples/ActionConstraintSample.Web/project.json +++ b/samples/ActionConstraintSample.Web/project.json @@ -1,15 +1,16 @@ { - "commands": { - "web": "Microsoft.AspNet.Server.Kestrel", - "weblistener": "Microsoft.AspNet.Server.WebListener" - }, - "dependencies": { - "Microsoft.AspNet.Mvc": "6.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*" - }, - "frameworks": { - "dnx451": { }, - "dnxcore50": { } - } + "compilationOptions": { + "emitEntryPoint": true + }, + "commands": { + "web": "ActionConstraintSample.Web" + }, + "dependencies": { + "Microsoft.AspNet.Mvc": "6.0.0-*", + "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" + }, + "frameworks": { + "dnx451": { }, + "dnxcore50": { } + } } \ No newline at end of file diff --git a/samples/CustomRouteSample.Web/Startup.cs b/samples/CustomRouteSample.Web/Startup.cs index 18d1bd16a1..8d85b7fb52 100644 --- a/samples/CustomRouteSample.Web/Startup.cs +++ b/samples/CustomRouteSample.Web/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.Extensions.DependencyInjection; namespace CustomRouteSample.Web @@ -22,5 +23,15 @@ namespace CustomRouteSample.Web routes.MapRoute("default", "{controller}/{action}"); }); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } \ No newline at end of file diff --git a/samples/CustomRouteSample.Web/hosting.json b/samples/CustomRouteSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/CustomRouteSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/CustomRouteSample.Web/project.json b/samples/CustomRouteSample.Web/project.json index 28e88dae79..214e29807a 100644 --- a/samples/CustomRouteSample.Web/project.json +++ b/samples/CustomRouteSample.Web/project.json @@ -1,12 +1,13 @@ { + "compilationOptions": { + "emitEntryPoint": true + }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel", - "weblistener": "Microsoft.AspNet.Server.WebListener" + "web": "CustomRouteSample.Web" }, "dependencies": { "Microsoft.AspNet.Mvc": "6.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*" + "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "frameworks": { "dnx451": { }, diff --git a/samples/EmbeddedViewSample.Web/Startup.cs b/samples/EmbeddedViewSample.Web/Startup.cs index 9f67212257..c0c065e7de 100644 --- a/samples/EmbeddedViewSample.Web/Startup.cs +++ b/samples/EmbeddedViewSample.Web/Startup.cs @@ -4,6 +4,7 @@ using System.Reflection; using Microsoft.AspNet.Builder; using Microsoft.AspNet.FileProviders; +using Microsoft.AspNet.Hosting; using Microsoft.AspNet.Mvc.Razor; using Microsoft.Extensions.DependencyInjection; @@ -37,5 +38,15 @@ namespace EmbeddedViewSample.Web new { controller = "Home", action = "Index" }); }); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } \ No newline at end of file diff --git a/samples/EmbeddedViewSample.Web/hosting.json b/samples/EmbeddedViewSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/EmbeddedViewSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/EmbeddedViewSample.Web/project.json b/samples/EmbeddedViewSample.Web/project.json index 51d75a82c1..dfa7a073dd 100644 --- a/samples/EmbeddedViewSample.Web/project.json +++ b/samples/EmbeddedViewSample.Web/project.json @@ -1,14 +1,15 @@ { + "compilationOptions": { + "emitEntryPoint": true + }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel", - "weblistener": "Microsoft.AspNet.Server.WebListener" + "web": "EmbeddedViewSample.Web" }, "resource": "EmbeddedResources/**", "dependencies": { "Microsoft.AspNet.FileProviders.Embedded": "1.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*" + "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "frameworks": { "dnx451": { }, diff --git a/samples/FormatFilterSample.Web/Startup.cs b/samples/FormatFilterSample.Web/Startup.cs index 3699d7293c..7a5dee35d9 100644 --- a/samples/FormatFilterSample.Web/Startup.cs +++ b/samples/FormatFilterSample.Web/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.AspNet.Mvc; using Microsoft.AspNet.Mvc.Formatters; using Microsoft.Extensions.DependencyInjection; @@ -33,5 +34,15 @@ namespace FormatFilterSample.Web { app.UseMvc(); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } \ No newline at end of file diff --git a/samples/FormatFilterSample.Web/hosting.json b/samples/FormatFilterSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/FormatFilterSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/FormatFilterSample.Web/project.json b/samples/FormatFilterSample.Web/project.json index 28e88dae79..cfa331229d 100644 --- a/samples/FormatFilterSample.Web/project.json +++ b/samples/FormatFilterSample.Web/project.json @@ -1,12 +1,13 @@ { + "compilationOptions": { + "emitEntryPoint": true + }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel", - "weblistener": "Microsoft.AspNet.Server.WebListener" + "web": "FormatFilterSample.Web" }, "dependencies": { "Microsoft.AspNet.Mvc": "6.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*" + "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "frameworks": { "dnx451": { }, diff --git a/samples/InlineConstraintSample.Web/Startup.cs b/samples/InlineConstraintSample.Web/Startup.cs index 00e6f06dcf..a101db6113 100644 --- a/samples/InlineConstraintSample.Web/Startup.cs +++ b/samples/InlineConstraintSample.Web/Startup.cs @@ -3,6 +3,7 @@ using InlineConstraintSample.Web.Constraints; using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.AspNet.Localization; using Microsoft.Extensions.DependencyInjection; @@ -34,5 +35,15 @@ namespace InlineConstraintSample.Web app.UseMvc(); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } diff --git a/samples/InlineConstraintSample.Web/hosting.json b/samples/InlineConstraintSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/InlineConstraintSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/InlineConstraintSample.Web/project.json b/samples/InlineConstraintSample.Web/project.json index 28e88dae79..05b0f5a635 100644 --- a/samples/InlineConstraintSample.Web/project.json +++ b/samples/InlineConstraintSample.Web/project.json @@ -1,15 +1,16 @@ { - "commands": { - "web": "Microsoft.AspNet.Server.Kestrel", - "weblistener": "Microsoft.AspNet.Server.WebListener" - }, - "dependencies": { - "Microsoft.AspNet.Mvc": "6.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*" - }, - "frameworks": { - "dnx451": { }, - "dnxcore50": { } - } + "compilationOptions": { + "emitEntryPoint": true + }, + "commands": { + "web": "InlineConstraintSample.Web" + }, + "dependencies": { + "Microsoft.AspNet.Mvc": "6.0.0-*", + "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" + }, + "frameworks": { + "dnx451": { }, + "dnxcore50": { } + } } diff --git a/samples/JsonPatchSample.Web/Startup.cs b/samples/JsonPatchSample.Web/Startup.cs index 069e6f5d28..149e209962 100644 --- a/samples/JsonPatchSample.Web/Startup.cs +++ b/samples/JsonPatchSample.Web/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.Extensions.DependencyInjection; namespace JsonPatchSample.Web @@ -20,5 +21,15 @@ namespace JsonPatchSample.Web // Add MVC to the request pipeline app.UseMvc(); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } diff --git a/samples/JsonPatchSample.Web/hosting.json b/samples/JsonPatchSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/JsonPatchSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/JsonPatchSample.Web/project.json b/samples/JsonPatchSample.Web/project.json index 39e5b21da1..5f51fc0bf9 100644 --- a/samples/JsonPatchSample.Web/project.json +++ b/samples/JsonPatchSample.Web/project.json @@ -1,12 +1,13 @@ { + "compilationOptions": { + "emitEntryPoint": true + }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel", - "weblistener": "Microsoft.AspNet.Server.WebListener" + "web": "JsonPatchSample.Web" }, "dependencies": { "Microsoft.AspNet.Mvc": "6.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*" + "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "frameworks": { "dnx451": { }, diff --git a/samples/LocalizationSample.Web/Startup.cs b/samples/LocalizationSample.Web/Startup.cs index 284ec37734..2b4dd2f429 100644 --- a/samples/LocalizationSample.Web/Startup.cs +++ b/samples/LocalizationSample.Web/Startup.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Globalization; using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.AspNet.Localization; using Microsoft.Extensions.DependencyInjection; @@ -39,5 +40,15 @@ namespace LocalizationSample.Web app.UseMvcWithDefaultRoute(); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } diff --git a/samples/LocalizationSample.Web/hosting.json b/samples/LocalizationSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/LocalizationSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/LocalizationSample.Web/project.json b/samples/LocalizationSample.Web/project.json index 39e5b21da1..dadcd08be8 100644 --- a/samples/LocalizationSample.Web/project.json +++ b/samples/LocalizationSample.Web/project.json @@ -1,12 +1,13 @@ { "commands": { - "web": "Microsoft.AspNet.Server.Kestrel", - "weblistener": "Microsoft.AspNet.Server.WebListener" + "web": "LocalizationSample.Web" + }, + "compilationOptions": { + "emitEntryPoint": true }, "dependencies": { "Microsoft.AspNet.Mvc": "6.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*" + "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" }, "frameworks": { "dnx451": { }, diff --git a/samples/MvcSandbox/Startup.cs b/samples/MvcSandbox/Startup.cs index 8eb5cc6f16..9d1a4ffff6 100644 --- a/samples/MvcSandbox/Startup.cs +++ b/samples/MvcSandbox/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; @@ -28,5 +29,15 @@ namespace MvcSandbox template: "{controller=Home}/{action=Index}/{id?}"); }); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } diff --git a/samples/MvcSandbox/project.json b/samples/MvcSandbox/project.json index a66919a7a2..5150779716 100644 --- a/samples/MvcSandbox/project.json +++ b/samples/MvcSandbox/project.json @@ -1,9 +1,9 @@ { "commands": { - "web": "Microsoft.AspNet.Server.Kestrel", - "kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5000" + "web": "MvcSandbox" }, "compilationOptions": { + "emitEntryPoint": true, "warningsAsErrors": true }, "dependencies": { @@ -12,7 +12,6 @@ "Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-*", "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*", "Microsoft.AspNet.StaticFiles": "1.0.0-*", "Microsoft.AspNet.Tooling.Razor": "1.0.0-*", "Microsoft.Extensions.Configuration.Json": "1.0.0-*", @@ -31,6 +30,5 @@ "publishExclude": [ "**.user", "**.vspscc" - ], - "webroot": "wwwroot" + ] } diff --git a/samples/TagHelperSample.Web/Startup.cs b/samples/TagHelperSample.Web/Startup.cs index cce7a3f4ad..99df0d2c38 100644 --- a/samples/TagHelperSample.Web/Startup.cs +++ b/samples/TagHelperSample.Web/Startup.cs @@ -3,6 +3,7 @@ using System; using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using TagHelperSample.Web.Services; @@ -32,5 +33,15 @@ namespace TagHelperSample.Web app.UseMvcWithDefaultRoute(); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } diff --git a/samples/TagHelperSample.Web/hosting.json b/samples/TagHelperSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/TagHelperSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/TagHelperSample.Web/project.json b/samples/TagHelperSample.Web/project.json index 70ae09889c..210bc57a1b 100644 --- a/samples/TagHelperSample.Web/project.json +++ b/samples/TagHelperSample.Web/project.json @@ -1,18 +1,17 @@ { - "commands": { - "web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001/taghelpers", - "kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5000" - }, "compilationOptions": { + "emitEntryPoint": true, "warningsAsErrors": true }, + "commands": { + "web": "TagHelperSample.Web" + }, "dependencies": { "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.AspNet.Diagnostics": "1.0.0-*", "Microsoft.AspNet.Mvc": "6.0.0-*", "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*", "Microsoft.AspNet.StaticFiles": "1.0.0-*", "Microsoft.AspNet.Tooling.Razor": "1.0.0-*" }, @@ -28,6 +27,5 @@ "publishExclude": [ "**.user", "**.vspscc" - ], - "webroot": "wwwroot" + ] } diff --git a/samples/UrlHelperSample.Web/Startup.cs b/samples/UrlHelperSample.Web/Startup.cs index 066f378577..d462004eb4 100644 --- a/samples/UrlHelperSample.Web/Startup.cs +++ b/samples/UrlHelperSample.Web/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Hosting; using Microsoft.AspNet.Mvc.Routing; using Microsoft.Extensions.DependencyInjection; @@ -33,5 +34,15 @@ namespace UrlHelperSample.Web routes.MapRoute("Default", "{controller=Home}/{action=Index}"); }); } + + public static void Main(string[] args) + { + var application = new WebApplicationBuilder() + .UseConfiguration(WebApplicationConfiguration.GetDefault(args)) + .UseStartup() + .Build(); + + application.Run(); + } } } diff --git a/samples/UrlHelperSample.Web/hosting.json b/samples/UrlHelperSample.Web/hosting.json new file mode 100644 index 0000000000..95505372fa --- /dev/null +++ b/samples/UrlHelperSample.Web/hosting.json @@ -0,0 +1,3 @@ +{ + "server": "Microsoft.AspNet.Server.Kestrel" +} \ No newline at end of file diff --git a/samples/UrlHelperSample.Web/project.json b/samples/UrlHelperSample.Web/project.json index f3b0578f9d..e10f23d6ff 100644 --- a/samples/UrlHelperSample.Web/project.json +++ b/samples/UrlHelperSample.Web/project.json @@ -1,15 +1,16 @@ { - "commands": { - "weblistener": "Microsoft.AspNet.Server.WebListener", - "web": "Microsoft.AspNet.Server.Kestrel" - }, - "dependencies": { - "Microsoft.AspNet.Mvc": "6.0.0-*", - "Microsoft.AspNet.Server.Kestrel": "1.0.0-*", - "Microsoft.AspNet.Server.WebListener": "1.0.0-*" - }, - "frameworks": { - "dnx451": { }, - "dnxcore50": { } - } + "compilationOptions": { + "emitEntryPoint": true + }, + "commands": { + "web": "UrlHelperSample.Web" + }, + "dependencies": { + "Microsoft.AspNet.Mvc": "6.0.0-*", + "Microsoft.AspNet.Server.Kestrel": "1.0.0-*" + }, + "frameworks": { + "dnx451": { }, + "dnxcore50": { } + } }