diff --git a/NuGet.config b/NuGet.config
index 826a1f9035..6f9f028ca1 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -2,6 +2,7 @@
+
\ No newline at end of file
diff --git a/WebListener.sln b/WebListener.sln
index 21d618b148..de17b49c97 100644
--- a/WebListener.sln
+++ b/WebListener.sln
@@ -1,29 +1,41 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.25420.1
+# Visual Studio 15
+VisualStudioVersion = 15.0.26202.1
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestClient", "samples\TestClient\TestClient.csproj", "{8B828433-B333-4C19-96AE-00BFFF9D8841}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{99D5E5F3-88F5-4CCF-8D8C-717C8925DF09}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{E183C826-1360-4DFF-9994-F33CED5C8525}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{3A1E31E3-2794-4CA3-B8E2-253E96BDE514}"
EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SelfHostServer", "samples\SelfHostServer\SelfHostServer.xproj", "{1236F93A-AC5C-4A77-9477-C88F040151CA}"
-EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Server.HttpSys.FunctionalTests", "test\Microsoft.AspNetCore.Server.HttpSys.FunctionalTests\Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.xproj", "{4492FF4C-9032-411D-853F-46B01755E504}"
-EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Server.HttpSys", "src\Microsoft.AspNetCore.Server.HttpSys\Microsoft.AspNetCore.Server.HttpSys.xproj", "{B9F45F9D-D206-47F0-8E5F-54CE2F0BDF92}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5E9B546C-17AC-4BDF-BCB3-5955D4755ED8}"
ProjectSection(SolutionItems) = preProject
- global.json = global.json
+ .travis.yml = .travis.yml
+ appveyor.yml = appveyor.yml
+ build.cmd = build.cmd
+ build.ps1 = build.ps1
+ build.sh = build.sh
+ NuGet.config = NuGet.config
+ version.props = version.props
EndProjectSection
EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "HotAddSample", "samples\HotAddSample\HotAddSample.xproj", "{8BFA392A-8B67-4454-916B-67C545EDFAEF}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestClient", "samples\TestClient\TestClient.csproj", "{8B828433-B333-4C19-96AE-00BFFF9D8841}"
EndProject
-Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Server.HttpSys.Tests", "test\Microsoft.AspNetCore.Server.HttpSys.Tests\Microsoft.AspNetCore.Server.HttpSys.Tests.xproj", "{E837249E-E666-4DF2-AFC3-7A4D70234F9F}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SelfHostServer", "samples\SelfHostServer\SelfHostServer.csproj", "{1236F93A-AC5C-4A77-9477-C88F040151CA}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.HttpSys.FunctionalTests", "test\Microsoft.AspNetCore.Server.HttpSys.FunctionalTests\Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj", "{4492FF4C-9032-411D-853F-46B01755E504}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.HttpSys", "src\Microsoft.AspNetCore.Server.HttpSys\Microsoft.AspNetCore.Server.HttpSys.csproj", "{B9F45F9D-D206-47F0-8E5F-54CE2F0BDF92}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HotAddSample", "samples\HotAddSample\HotAddSample.csproj", "{8BFA392A-8B67-4454-916B-67C545EDFAEF}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.HttpSys.Tests", "test\Microsoft.AspNetCore.Server.HttpSys.Tests\Microsoft.AspNetCore.Server.HttpSys.Tests.csproj", "{E837249E-E666-4DF2-AFC3-7A4D70234F9F}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{85914BA9-4168-48C5-9C3F-E2E8B1479A6E}"
+ ProjectSection(SolutionItems) = preProject
+ build\common.props = build\common.props
+ build\Key.snk = build\Key.snk
+ EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -110,5 +122,6 @@ Global
{B9F45F9D-D206-47F0-8E5F-54CE2F0BDF92} = {99D5E5F3-88F5-4CCF-8D8C-717C8925DF09}
{8BFA392A-8B67-4454-916B-67C545EDFAEF} = {3A1E31E3-2794-4CA3-B8E2-253E96BDE514}
{E837249E-E666-4DF2-AFC3-7A4D70234F9F} = {E183C826-1360-4DFF-9994-F33CED5C8525}
+ {85914BA9-4168-48C5-9C3F-E2E8B1479A6E} = {5E9B546C-17AC-4BDF-BCB3-5955D4755ED8}
EndGlobalSection
EndGlobal
diff --git a/appveyor.yml b/appveyor.yml
index b9a9bcd1e6..e31ecda1e0 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -10,4 +10,5 @@ build_script:
- build.cmd verify
clone_depth: 1
test: off
-deploy: off
\ No newline at end of file
+deploy: off
+os: Visual Studio 2017 RC
\ No newline at end of file
diff --git a/build.ps1 b/build.ps1
index 8f2f99691a..0605b59c01 100644
--- a/build.ps1
+++ b/build.ps1
@@ -33,7 +33,7 @@ cd $PSScriptRoot
$repoFolder = $PSScriptRoot
$env:REPO_FOLDER = $repoFolder
-$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/dev.zip"
+$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/feature/msbuild.zip"
if ($env:KOREBUILD_ZIP)
{
$koreBuildZip=$env:KOREBUILD_ZIP
diff --git a/build.sh b/build.sh
index 4fd7ede788..07997d6c83 100755
--- a/build.sh
+++ b/build.sh
@@ -2,7 +2,7 @@
repoFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $repoFolder
-koreBuildZip="https://github.com/aspnet/KoreBuild/archive/dev.zip"
+koreBuildZip="https://github.com/aspnet/KoreBuild/archive/feature/msbuild.zip"
if [ ! -z $KOREBUILD_ZIP ]; then
koreBuildZip=$KOREBUILD_ZIP
fi
diff --git a/tools/Key.snk b/build/Key.snk
similarity index 100%
rename from tools/Key.snk
rename to build/Key.snk
diff --git a/build/common.props b/build/common.props
new file mode 100644
index 0000000000..2abfaa7306
--- /dev/null
+++ b/build/common.props
@@ -0,0 +1,24 @@
+
+
+
+
+ Microsoft ASP.NET Core
+ https://github.com/aspnet/HttpSysServer
+ git
+ $(MSBuildThisFileDirectory)Key.snk
+ true
+ true
+ 1.2.0-*
+ 1.6.2-*
+ $(VersionSuffix)-$(BuildNumber)
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/global.json b/global.json
deleted file mode 100644
index ec96aa7abe..0000000000
--- a/global.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "projects": [
- "src",
- "test"
- ],
- "sdk": {
- "version": "1.0.0-preview2-1-003180"
- }
-}
\ No newline at end of file
diff --git a/samples/HotAddSample/HotAddSample.csproj b/samples/HotAddSample/HotAddSample.csproj
new file mode 100644
index 0000000000..effb1b67e3
--- /dev/null
+++ b/samples/HotAddSample/HotAddSample.csproj
@@ -0,0 +1,12 @@
+
+
+ net451;netcoreapp1.1
+
+ win7-x64
+ Exe
+
+
+
+
+
+
diff --git a/samples/HotAddSample/HotAddSample.xproj b/samples/HotAddSample/HotAddSample.xproj
deleted file mode 100644
index 677fc90d52..0000000000
--- a/samples/HotAddSample/HotAddSample.xproj
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- 14.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
- 8bfa392a-8b67-4454-916b-67c545edfaef
- .\obj
- .\bin\
-
-
- 2.0
-
-
-
\ No newline at end of file
diff --git a/samples/HotAddSample/project.json b/samples/HotAddSample/project.json
deleted file mode 100644
index e35173259b..0000000000
--- a/samples/HotAddSample/project.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "dependencies": {
- "Microsoft.AspNetCore.Server.HttpSys": "1.2.0-*",
- "Microsoft.Extensions.Logging.Console": "1.2.0-*"
- },
- "buildOptions": {
- "emitEntryPoint": true
- },
- "commands": {
- "web": "HotAddSample"
- },
- "frameworks": {
- "net451": {},
- "netcoreapp1.1": {
- "dependencies": {
- "Microsoft.NETCore.App": {
- "version": "1.2.0-*",
- "type": "platform"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/samples/SelfHostServer/App.config b/samples/SelfHostServer/App.config
index 73c9881fb6..3048ab74e7 100644
--- a/samples/SelfHostServer/App.config
+++ b/samples/SelfHostServer/App.config
@@ -1,8 +1,5 @@
-
-
-
diff --git a/samples/SelfHostServer/SelfHostServer.csproj b/samples/SelfHostServer/SelfHostServer.csproj
new file mode 100644
index 0000000000..effb1b67e3
--- /dev/null
+++ b/samples/SelfHostServer/SelfHostServer.csproj
@@ -0,0 +1,12 @@
+
+
+ net451;netcoreapp1.1
+
+ win7-x64
+ Exe
+
+
+
+
+
+
diff --git a/samples/SelfHostServer/SelfHostServer.xproj b/samples/SelfHostServer/SelfHostServer.xproj
deleted file mode 100644
index d2eaad70ff..0000000000
--- a/samples/SelfHostServer/SelfHostServer.xproj
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- 14.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
- 1236f93a-ac5c-4a77-9477-c88f040151ca
- .\obj
- .\bin\
-
-
- 2.0
-
-
-
\ No newline at end of file
diff --git a/samples/SelfHostServer/project.json b/samples/SelfHostServer/project.json
deleted file mode 100644
index 756b800031..0000000000
--- a/samples/SelfHostServer/project.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "dependencies": {
- "Microsoft.AspNetCore.Server.HttpSys": "1.2.0-*",
- "Microsoft.Extensions.Logging.Console": "1.2.0-*"
- },
- "buildOptions": {
- "emitEntryPoint": true
- },
- "commands": {
- "web": "SelfHostServer"
- },
- "frameworks": {
- "net451": {},
- "netcoreapp1.1": {
- "dependencies": {
- "Microsoft.NETCore.App": {
- "version": "1.2.0-*",
- "type": "platform"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/samples/SelfHostServer/runtimeconfig.template.json b/samples/SelfHostServer/runtimeconfig.template.json
new file mode 100644
index 0000000000..12467a6df8
--- /dev/null
+++ b/samples/SelfHostServer/runtimeconfig.template.json
@@ -0,0 +1,5 @@
+{
+ "configProperties": {
+ "System.GC.Server": true
+ }
+}
\ No newline at end of file
diff --git a/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj b/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj
new file mode 100644
index 0000000000..79b143c29b
--- /dev/null
+++ b/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj
@@ -0,0 +1,21 @@
+
+
+
+ ASP.NET Core HTTP server that uses the Windows HTTP Server API.
+ net451;netstandard1.3
+ $(NoWarn);CS1591
+ true
+ true
+ aspnetcore;weblistener;httpsys
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.xproj b/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.xproj
deleted file mode 100644
index 603e49e271..0000000000
--- a/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.xproj
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- 14.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
- b9f45f9d-d206-47f0-8e5f-54ce2f0bdf92
- .\obj
- .\bin\
-
-
- 2.0
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Microsoft.AspNetCore.Server.HttpSys/Properties/AssemblyInfo.cs b/src/Microsoft.AspNetCore.Server.HttpSys/Properties/AssemblyInfo.cs
index 4fc9a7542d..3bc10f0e3c 100644
--- a/src/Microsoft.AspNetCore.Server.HttpSys/Properties/AssemblyInfo.cs
+++ b/src/Microsoft.AspNetCore.Server.HttpSys/Properties/AssemblyInfo.cs
@@ -1,13 +1,6 @@
// 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.Reflection;
-using System.Resources;
using System.Runtime.CompilerServices;
-[assembly: AssemblyMetadata("Serviceable", "True")]
-[assembly: NeutralResourcesLanguage("en-us")]
-[assembly: AssemblyCompany("Microsoft Corporation.")]
-[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
-[assembly: AssemblyProduct("Microsoft ASP.NET Core")]
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Server.HttpSys.FunctionalTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
\ No newline at end of file
diff --git a/src/Microsoft.AspNetCore.Server.HttpSys/project.json b/src/Microsoft.AspNetCore.Server.HttpSys/project.json
deleted file mode 100644
index e5fc45a8c4..0000000000
--- a/src/Microsoft.AspNetCore.Server.HttpSys/project.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "version": "1.2.0-*",
- "description": "ASP.NET Core HTTP server that uses the Windows HTTP Server API.",
- "packOptions": {
- "tags": [
- "aspnetcore",
- "weblistener",
- "httpsys"
- ]
- },
- "dependencies": {
- "Microsoft.AspNetCore.Hosting": "1.2.0-*",
- "Microsoft.Extensions.TaskCache.Sources": {
- "version": "1.2.0-*",
- "type": "build"
- },
- "Microsoft.Net.Http.Headers": "1.2.0-*",
- "NETStandard.Library": "1.6.2-*"
- },
- "buildOptions": {
- "allowUnsafe": true,
- "warningsAsErrors": true,
- "keyFile": "../../tools/Key.snk",
- "nowarn": [
- "CS1591"
- ],
- "xmlDoc": true
- },
- "frameworks": {
- "net451": {},
- "netstandard1.3": {
- "dependencies": {
- "Microsoft.Extensions.RuntimeEnvironment.Sources": {
- "type": "build",
- "version": "1.2.0-*"
- },
- "System.Diagnostics.Contracts": "4.4.0-*",
- "System.Net.WebSockets": "4.4.0-*",
- "System.Security.Claims": "4.4.0-*",
- "System.Security.Principal.Windows": "4.4.0-*",
- "System.Threading.Overlapped": "4.4.0-*"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj
new file mode 100644
index 0000000000..a8aae54342
--- /dev/null
+++ b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj
@@ -0,0 +1,25 @@
+
+
+
+ netcoreapp1.1;net451
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.xproj b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.xproj
deleted file mode 100644
index c510d82574..0000000000
--- a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.xproj
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- 14.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
- 4492ff4c-9032-411d-853f-46b01755e504
- .\obj
- .\bin\
-
-
- 2.0
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/project.json b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/project.json
deleted file mode 100644
index 5ff0bc8524..0000000000
--- a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/project.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "buildOptions": {
- "warningsAsErrors": true,
- "keyFile": "../../tools/Key.snk"
- },
- "testRunner": "xunit",
- "dependencies": {
- "dotnet-test-xunit": "2.2.0-*",
- "Microsoft.AspNetCore.Server.HttpSys": "1.2.0-*",
- "Microsoft.AspNetCore.Testing": "1.2.0-*",
- "xunit": "2.2.0-*"
- },
- "frameworks": {
- "netcoreapp1.1": {
- "dependencies": {
- "Microsoft.NETCore.App": {
- "version": "1.2.0-*",
- "type": "platform"
- },
- "System.Net.Http.WinHttpHandler": "4.4.0-*",
- "System.Net.WebSockets.Client": "4.4.0-*"
- }
- },
- "net451": {
- "frameworkAssemblies": {
- "System.DirectoryServices": "",
- "System.Net.Http": "",
- "System.Net.Http.WebRequest": ""
- }
- }
- }
-}
\ No newline at end of file
diff --git a/test/Microsoft.AspNetCore.Server.HttpSys.Tests/Microsoft.AspNetCore.Server.HttpSys.Tests.csproj b/test/Microsoft.AspNetCore.Server.HttpSys.Tests/Microsoft.AspNetCore.Server.HttpSys.Tests.csproj
new file mode 100644
index 0000000000..b9e760080a
--- /dev/null
+++ b/test/Microsoft.AspNetCore.Server.HttpSys.Tests/Microsoft.AspNetCore.Server.HttpSys.Tests.csproj
@@ -0,0 +1,15 @@
+
+
+
+ netcoreapp1.1;net451
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/Microsoft.AspNetCore.Server.HttpSys.Tests/Microsoft.AspNetCore.Server.HttpSys.Tests.xproj b/test/Microsoft.AspNetCore.Server.HttpSys.Tests/Microsoft.AspNetCore.Server.HttpSys.Tests.xproj
deleted file mode 100644
index ed2140ef02..0000000000
--- a/test/Microsoft.AspNetCore.Server.HttpSys.Tests/Microsoft.AspNetCore.Server.HttpSys.Tests.xproj
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- 14.0
- $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
-
-
-
- e837249e-e666-4df2-afc3-7a4d70234f9f
- .\obj
- .\bin\
-
-
- 2.0
-
-
-
-
-
-
\ No newline at end of file
diff --git a/test/Microsoft.AspNetCore.Server.HttpSys.Tests/project.json b/test/Microsoft.AspNetCore.Server.HttpSys.Tests/project.json
deleted file mode 100644
index fd020492de..0000000000
--- a/test/Microsoft.AspNetCore.Server.HttpSys.Tests/project.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "testRunner": "xunit",
- "dependencies": {
- "dotnet-test-xunit": "2.2.0-*",
- "Microsoft.AspNetCore.Server.HttpSys": "1.2.0-*",
- "xunit": "2.2.0-*"
- },
- "frameworks": {
- "netcoreapp1.1": {
- "dependencies": {
- "Microsoft.NETCore.App": {
- "version": "1.2.0-*",
- "type": "platform"
- }
- }
- },
- "net451": {}
- }
-}
\ No newline at end of file
diff --git a/version.props b/version.props
new file mode 100644
index 0000000000..38c93687ab
--- /dev/null
+++ b/version.props
@@ -0,0 +1,7 @@
+
+
+
+ 1.2.0
+ preview1
+
+
\ No newline at end of file