Update samples and test sites to new formats

This commit is contained in:
ryanbrandenburg 2016-04-07 17:07:53 -07:00 committed by Ryan Brandenburg
parent a259638d79
commit e915f36748
60 changed files with 147 additions and 41 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -30,6 +31,7 @@ namespace ActionConstraintSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -10,7 +10,7 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -27,6 +28,7 @@ namespace CustomRouteSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -10,7 +10,7 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using System.Reflection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@ -44,6 +45,7 @@ namespace EmbeddedViewSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -12,7 +12,7 @@
"Microsoft.Extensions.FileProviders.Embedded": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
@ -40,6 +41,7 @@ namespace FormatFilterSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -11,7 +11,7 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.IO;
using InlineConstraintSample.Web.Constraints;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@ -14,7 +15,7 @@ namespace InlineConstraintSample.Web
{
public void ConfigureServices(IServiceCollection services)
{
services.AddRouting( routeOptions =>
services.AddRouting(routeOptions =>
{
routeOptions.ConstraintMap.Add("IsbnDigitScheme10", typeof(IsbnDigitScheme10Constraint));
routeOptions.ConstraintMap.Add("IsbnDigitScheme13", typeof(IsbnDigitScheme13Constraint));
@ -39,6 +40,7 @@ namespace InlineConstraintSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -10,7 +10,7 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -25,6 +26,7 @@ namespace JsonPatchSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -10,7 +10,7 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",
@ -25,6 +25,7 @@
}
},
"content": [
"wwwroot",
"web.config"
],
"tools": {

View File

@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Localization;
@ -43,6 +44,7 @@ namespace LocalizationSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -10,7 +10,7 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -34,8 +34,8 @@ namespace MvcSandbox
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()
.UseStartup<Startup>()

View File

@ -17,10 +17,19 @@
},
"content": [
"Views",
"web.config"
"web.config",
"wwwroot"
],
"tools": {
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
}
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Razor;
@ -39,6 +40,7 @@ namespace MvcSubAreaSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -13,7 +13,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",
@ -29,12 +29,19 @@
},
"content": [
"Views",
"Areas",
"web.config"
],
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
},
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
}
},
"scripts": {

View File

@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -37,6 +38,7 @@ namespace TagHelperSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseIISIntegration()
.UseKestrel()

View File

@ -14,8 +14,16 @@
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"tools": {
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
}
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Routing;
@ -38,6 +39,7 @@ namespace UrlHelperSample.Web
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -10,7 +10,7 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -70,7 +70,7 @@
"portable-net451+win8"
]
},
"net451": {}
"net451": { }
},
"exclude": [
"wwwroot",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Formatters;
@ -45,6 +46,7 @@ namespace ApiExplorerWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()

View File

@ -13,7 +13,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -35,6 +36,7 @@ namespace ApplicationModelWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -12,7 +12,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
@ -56,6 +57,7 @@ namespace BasicWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -14,7 +14,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",
@ -29,6 +29,7 @@
}
},
"content": [
"Areas/Area1/Views",
"Views",
"web.config"
],
@ -36,6 +37,12 @@
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
},
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
}
},
"scripts": {

View File

@ -3,13 +3,13 @@
"Microsoft.AspNetCore.Mvc": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net451+win8"
],
"dependencies": {}
"dependencies": { }
}
}
}

View File

@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using ControllersFromServicesClassLibrary;
@ -62,6 +63,7 @@ namespace ControllersFromServicesWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -13,7 +13,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",
@ -35,6 +35,12 @@
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
},
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
}
},
"scripts": {

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Cors.Infrastructure;
using Microsoft.AspNetCore.Hosting;
@ -81,6 +82,7 @@ namespace CorsWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -3,6 +3,9 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"content": [
"web.config"
],
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
@ -14,7 +17,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",
@ -28,9 +31,6 @@
}
}
},
"content": [
"web.config"
],
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -26,6 +27,7 @@ namespace ErrorPageMiddlewareWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -13,7 +13,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -28,6 +29,7 @@ namespace FilesWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -14,7 +14,7 @@
"Microsoft.Extensions.FileProviders.Embedded": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using System.Security.Claims;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;
@ -69,6 +70,7 @@ namespace FiltersWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -14,7 +14,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
@ -37,6 +38,7 @@ namespace FormatterWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -13,7 +13,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.TagHelpers;
@ -45,6 +46,7 @@ namespace HtmlGenerationWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -12,7 +12,7 @@
"Microsoft.AspNetCore.Mvc.TestConfiguration": "1.0.0"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",
@ -35,6 +35,12 @@
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
},
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
}
},
"scripts": {

View File

@ -47,6 +47,7 @@ namespace RazorPageExecutionInstrumentationWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -13,7 +13,7 @@
"Microsoft.Extensions.DiagnosticAdapter": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Localization;
@ -64,6 +65,7 @@ namespace RazorWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -3,6 +3,11 @@
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"content": [
"Views",
"Shared-Views",
"web.config"
],
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1-*",
"Microsoft.AspNetCore.Localization": "1.0.0-*",
@ -39,10 +44,6 @@
}
}
},
"content": [
"Views",
"web.config"
],
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Infrastructure;
@ -44,6 +45,7 @@ namespace RoutingWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -12,7 +12,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using System.Text.Encodings.Web;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@ -32,6 +33,7 @@ namespace SimpleWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -10,7 +10,7 @@
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -25,6 +26,7 @@ namespace TagHelpersWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -15,7 +15,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",
@ -37,6 +37,12 @@
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
},
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
}
},
"scripts": {

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Infrastructure;
@ -29,6 +30,7 @@ namespace VersioningWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -12,7 +12,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -36,6 +37,7 @@ namespace WebApiCompatShimWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -13,7 +13,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
@ -80,6 +81,7 @@ namespace XmlFormattersWebSite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseKestrel()

View File

@ -13,7 +13,7 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*"
},
"frameworks": {
"net451": {},
"net451": { },
"netcoreapp1.0": {
"imports": [
"dnxcore50",