Move web.config and use ANCM
This commit is contained in:
parent
42ad584401
commit
07263aa92e
|
|
@ -121,6 +121,7 @@ namespace IdentitySample
|
||||||
var host = new WebHostBuilder()
|
var host = new WebHostBuilder()
|
||||||
.UseDefaultHostingConfiguration(args)
|
.UseDefaultHostingConfiguration(args)
|
||||||
.UseKestrel()
|
.UseKestrel()
|
||||||
|
.UseIISIntegration()
|
||||||
.UseStartup<Startup>()
|
.UseStartup<Startup>()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"authors": [
|
"authors": [
|
||||||
"Microsoft"
|
"Microsoft"
|
||||||
],
|
],
|
||||||
"description": "Identity sample MVC application on K",
|
"description": "Identity sample MVC application on ASP.NET Core",
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
|
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
"Microsoft.AspNetCore.Authentication.Twitter": "1.0.0-*",
|
"Microsoft.AspNetCore.Authentication.Twitter": "1.0.0-*",
|
||||||
"Microsoft.AspNetCore.Authorization": "1.0.0-*",
|
"Microsoft.AspNetCore.Authorization": "1.0.0-*",
|
||||||
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
|
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
|
||||||
|
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
|
||||||
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
|
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
|
||||||
"Microsoft.EntityFrameworkCore.Commands": "1.0.0-*",
|
"Microsoft.EntityFrameworkCore.Commands": "1.0.0-*",
|
||||||
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-*",
|
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-*",
|
||||||
|
|
@ -31,23 +32,18 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"emitEntryPoint": true
|
"emitEntryPoint": true
|
||||||
},
|
},
|
||||||
"commands": {
|
|
||||||
"web": "IdentitySample.Mvc"
|
|
||||||
},
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": {
|
"net451": {},
|
||||||
},
|
|
||||||
"netstandardapp1.5": {
|
"netstandardapp1.5": {
|
||||||
"imports": [
|
"imports": [
|
||||||
"dnxcore50",
|
"dnxcore50",
|
||||||
"portable-net45+win8"
|
"portable-net45+win8"
|
||||||
]
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.5.0-*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exclude": [
|
|
||||||
"wwwroot",
|
|
||||||
"node_modules"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": [
|
"prepublish": [
|
||||||
"npm install",
|
"npm install",
|
||||||
|
|
@ -57,6 +53,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"content": [
|
"content": [
|
||||||
"appsettings.json"
|
"appsettings.json",
|
||||||
|
"web.config"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<configuration>
|
||||||
|
<system.webServer>
|
||||||
|
<handlers>
|
||||||
|
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
|
||||||
|
</handlers>
|
||||||
|
<aspNetCore processPath=".\IdentitySample.Mvc.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
|
||||||
|
</system.webServer>
|
||||||
|
</configuration>
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<system.webServer>
|
|
||||||
<handlers>
|
|
||||||
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
|
|
||||||
</handlers>
|
|
||||||
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false" startupTimeLimit="3600"/>
|
|
||||||
</system.webServer>
|
|
||||||
</configuration>
|
|
||||||
Loading…
Reference in New Issue