From 37931a9fa56d558ab08130783a776fd9fc7a42ee Mon Sep 17 00:00:00 2001 From: John Luo Date: Tue, 3 May 2016 18:54:36 -0700 Subject: [PATCH] Update AutobahnTestServer to use IISIntegration --- test/AutobahnTestServer/Startup.cs | 1 + test/AutobahnTestServer/project.json | 13 +++++++++++-- test/AutobahnTestServer/web.config | 9 +++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 test/AutobahnTestServer/web.config diff --git a/test/AutobahnTestServer/Startup.cs b/test/AutobahnTestServer/Startup.cs index c3bb7e615c..7330152214 100644 --- a/test/AutobahnTestServer/Startup.cs +++ b/test/AutobahnTestServer/Startup.cs @@ -74,6 +74,7 @@ namespace AutobahnTestServer { var host = new WebHostBuilder() .UseKestrel() + .UseIISIntegration() .UseStartup() .Build(); diff --git a/test/AutobahnTestServer/project.json b/test/AutobahnTestServer/project.json index 0c58351c19..ed5dca222f 100644 --- a/test/AutobahnTestServer/project.json +++ b/test/AutobahnTestServer/project.json @@ -1,8 +1,8 @@ { - "exclude": "wwwroot/**/*", "dependencies": { "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.AspNetCore.WebSockets.Server": "0.1.0-*", + "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*" }, "buildOptions": { @@ -27,7 +27,16 @@ }, "publishOptions": { "include": [ - "hosting.json" + "web.config" ] + }, + "tools": { + "Microsoft.AspNetCore.Server.IISIntegration.Tools": { + "version": "1.0.0-*", + "imports": "portable-net45+wp80+win8+wpa81+dnxcore50" + } + }, + "scripts": { + "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" } } \ No newline at end of file diff --git a/test/AutobahnTestServer/web.config b/test/AutobahnTestServer/web.config new file mode 100644 index 0000000000..41b492941a --- /dev/null +++ b/test/AutobahnTestServer/web.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file