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