Merge remote-tracking branch 'origin/release' into rybrande/dev

This commit is contained in:
Ryan Brandenburg 2016-04-26 10:18:48 -07:00
commit 39f4b1fd91
60 changed files with 142 additions and 36 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -30,6 +31,7 @@ namespace ActionConstraintSample.Web
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseIISIntegration() .UseIISIntegration()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -27,6 +28,7 @@ namespace CustomRouteSample.Web
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseIISIntegration() .UseIISIntegration()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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 System.Reflection;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
@ -44,6 +45,7 @@ namespace EmbeddedViewSample.Web
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseIISIntegration() .UseIISIntegration()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
@ -40,6 +41,7 @@ namespace FormatFilterSample.Web
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseIISIntegration() .UseIISIntegration()
.UseKestrel() .UseKestrel()

View File

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

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -25,6 +26,7 @@ namespace JsonPatchSample.Web
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseIISIntegration() .UseIISIntegration()
.UseKestrel() .UseKestrel()

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -28,12 +28,19 @@
}, },
"content": [ "content": [
"Views", "Views",
"Areas",
"web.config" "web.config"
], ],
"tools": { "tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": { "Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*", "version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50" "imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
},
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
} }
}, },
"scripts": { "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. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.IO;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -37,6 +38,7 @@ namespace TagHelperSample.Web
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseIISIntegration() .UseIISIntegration()
.UseKestrel() .UseKestrel()

View File

@ -13,6 +13,14 @@
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*", "Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*" "Microsoft.Extensions.Logging.Console": "1.0.0-*"
}, },
"tools": {
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
}
},
"frameworks": { "frameworks": {
"net451": { }, "net451": { },
"netcoreapp1.0": { "netcoreapp1.0": {

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Routing; using Microsoft.AspNetCore.Mvc.Routing;
@ -38,6 +39,7 @@ namespace UrlHelperSample.Web
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.AspNetCore.Mvc.Formatters;
@ -45,6 +46,7 @@ namespace ApiExplorerWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseKestrel() .UseKestrel()
.UseIISIntegration() .UseIISIntegration()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -35,6 +36,7 @@ namespace ApplicationModelWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
@ -56,6 +57,7 @@ namespace BasicWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Cors.Infrastructure; using Microsoft.AspNetCore.Cors.Infrastructure;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
@ -81,6 +82,7 @@ namespace CorsWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -26,6 +27,7 @@ namespace ErrorPageMiddlewareWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -28,6 +29,7 @@ namespace FilesWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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 System.Security.Claims;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
@ -69,6 +70,7 @@ namespace FiltersWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
@ -37,6 +38,7 @@ namespace FormatterWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.TagHelpers; using Microsoft.AspNetCore.Mvc.TagHelpers;
@ -45,6 +46,7 @@ namespace HtmlGenerationWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

@ -34,6 +34,12 @@
"Microsoft.AspNetCore.Server.IISIntegration.Tools": { "Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*", "version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50" "imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
},
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
} }
}, },
"scripts": { "scripts": {

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Infrastructure;
@ -44,6 +45,7 @@ namespace RoutingWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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 System.Text.Encodings.Web;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
@ -32,6 +33,7 @@ namespace SimpleWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -25,6 +26,7 @@ namespace TagHelpersWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

@ -36,6 +36,12 @@
"Microsoft.AspNetCore.Server.IISIntegration.Tools": { "Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-*", "version": "1.0.0-*",
"imports": "portable-net45+wp80+win8+wpa81+dnxcore50" "imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
},
"dotnet-razor-tooling": {
"version": "1.0.0-*",
"imports": [
"net45"
]
} }
}, },
"scripts": { "scripts": {

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Infrastructure;
@ -29,6 +30,7 @@ namespace VersioningWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@ -36,6 +37,7 @@ namespace WebApiCompatShimWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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

View File

@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // 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. // 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.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
@ -80,6 +81,7 @@ namespace XmlFormattersWebSite
public static void Main(string[] args) public static void Main(string[] args)
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseKestrel() .UseKestrel()

View File

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