diff --git a/CHANGELOG.md b/CHANGELOG.md index 82dcf716..952b8992 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 1.0.3.7 (09 March 2018) + + - [#104](https://github.com/WireMock-Net/WireMock.Net/issues/104) - Issue: PlatformNotSupportedException + +Commits: 3e634c2fde...3e634c2fde + + # 1.0.3.4 (04 March 2018) - [#102](https://github.com/WireMock-Net/WireMock.Net/pull/102) - Feature: add WithBody(req => dostuff) style callback contributed by Alastair Crabtree ([alastairtree](https://github.com/alastairtree)) +feature diff --git a/GitReleaseNotes.txt b/GitReleaseNotes.txt index 2d570c2e..f950fa57 100644 --- a/GitReleaseNotes.txt +++ b/GitReleaseNotes.txt @@ -1,5 +1,5 @@ https://github.com/GitTools/GitReleaseNotes -GitReleaseNotes.exe . /OutputFile CHANGELOG.md /Version 1.0.3.4 +GitReleaseNotes.exe . /OutputFile CHANGELOG.md /Version 1.0.3.7 GitReleaseNotes.exe . /OutputFile CHANGELOG.md /allTags diff --git a/examples/WireMock.Net.StandAlone.Net461/App.config b/examples/WireMock.Net.StandAlone.Net461/App.config index 302a320b..538532cf 100644 --- a/examples/WireMock.Net.StandAlone.Net461/App.config +++ b/examples/WireMock.Net.StandAlone.Net461/App.config @@ -1,7 +1,7 @@  - + @@ -9,6 +9,26 @@ + + + + + + + + + + + + + + + + + + + + - \ No newline at end of file + diff --git a/examples/WireMock.Net.StandAlone.Net461/WireMock.Net.StandAlone.Net461.csproj b/examples/WireMock.Net.StandAlone.Net461/WireMock.Net.StandAlone.Net461.csproj index 9c1ede31..1848d4d8 100644 --- a/examples/WireMock.Net.StandAlone.Net461/WireMock.Net.StandAlone.Net461.csproj +++ b/examples/WireMock.Net.StandAlone.Net461/WireMock.Net.StandAlone.Net461.csproj @@ -8,9 +8,10 @@ Exe WireMock.Net.StandAlone.Net461 WireMock.Net.StandAlone.Net461 - v4.5.2 + v4.6.1 512 true + AnyCPU @@ -31,18 +32,21 @@ prompt 4 + + WireMock.Net.StandAlone.Net461.Program + ..\..\packages\Handlebars.Net.1.9.0\lib\net40\Handlebars.dll - - ..\..\packages\Microsoft.Owin.2.0.2\lib\net45\Microsoft.Owin.dll + + ..\..\packages\Microsoft.Owin.4.0.0\lib\net451\Microsoft.Owin.dll - - ..\..\packages\Microsoft.Owin.Host.HttpListener.2.0.2\lib\net45\Microsoft.Owin.Host.HttpListener.dll + + ..\..\packages\Microsoft.Owin.Host.HttpListener.4.0.0\lib\net451\Microsoft.Owin.Host.HttpListener.dll - - ..\..\packages\Microsoft.Owin.Hosting.2.0.2\lib\net45\Microsoft.Owin.Hosting.dll + + ..\..\packages\Microsoft.Owin.Hosting.4.0.0\lib\net451\Microsoft.Owin.Hosting.dll ..\..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll @@ -58,29 +62,41 @@ - - ..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll + + + ..\..\packages\System.Net.Http.4.3.3\lib\net46\System.Net.Http.dll + + + ..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.4\lib\net45\System.Net.Http.Formatting.dll + + ..\..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net461\System.Security.Cryptography.Algorithms.dll + + + ..\..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll + + + ..\..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll + + + ..\..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll + - - ..\..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll + + ..\..\packages\Microsoft.AspNet.WebApi.Core.5.2.4\lib\net45\System.Web.Http.dll - - ..\..\packages\Microsoft.AspNet.WebApi.Owin.5.2.3\lib\net45\System.Web.Http.Owin.dll + + ..\..\packages\Microsoft.AspNet.WebApi.Owin.5.2.4\lib\net45\System.Web.Http.Owin.dll - - - - - - - ..\..\packages\WireMock.Net.1.0.3.5\lib\net452\WireMock.Net.dll + + + ..\..\packages\WireMock.Net.1.0.3.6\lib\net46\WireMock.Net.dll - - ..\..\packages\WireMock.Net.StandAlone.1.0.3.5\lib\net452\WireMock.Net.StandAlone.dll + + ..\..\packages\WireMock.Net.StandAlone.1.0.3.6\lib\net46\WireMock.Net.StandAlone.dll ..\..\packages\XPath2.1.0.5.1\lib\net40\XPath2.dll diff --git a/examples/WireMock.Net.StandAlone.Net461/packages.config b/examples/WireMock.Net.StandAlone.Net461/packages.config index d791f809..ef9df5db 100644 --- a/examples/WireMock.Net.StandAlone.Net461/packages.config +++ b/examples/WireMock.Net.StandAlone.Net461/packages.config @@ -1,19 +1,23 @@  - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/WireMock.Net.StandAlone/WireMock.Net.StandAlone.csproj b/src/WireMock.Net.StandAlone/WireMock.Net.StandAlone.csproj index e63804ba..d1d0eac3 100644 --- a/src/WireMock.Net.StandAlone/WireMock.Net.StandAlone.csproj +++ b/src/WireMock.Net.StandAlone/WireMock.Net.StandAlone.csproj @@ -3,7 +3,7 @@ Lightweight StandAlone Http Mocking Server for .Net. WireMock.Net.StandAlone - 1.0.3.5 + 1.0.3.7 Stef Heyenrath net452;net46;netstandard1.3;netstandard2.0 true diff --git a/src/WireMock.Net/Http/HttpClientHelper.cs b/src/WireMock.Net/Http/HttpClientHelper.cs index 431ab487..1c85b862 100644 --- a/src/WireMock.Net/Http/HttpClientHelper.cs +++ b/src/WireMock.Net/Http/HttpClientHelper.cs @@ -16,7 +16,7 @@ namespace WireMock.Http { public static HttpClient CreateHttpClient(string clientX509Certificate2ThumbprintOrSubjectName = null) { -#if NETSTANDARD || NET46 +#if NETSTANDARD var handler = new HttpClientHandler { CheckCertificateRevocationList = false, @@ -24,12 +24,20 @@ namespace WireMock.Http ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true, AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }; +#elif NET46 + var handler = new HttpClientHandler + { + ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true, + AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate + }; + ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11; #else var handler = new WebRequestHandler { ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true, AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }; + ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11; #endif if (!string.IsNullOrEmpty(clientX509Certificate2ThumbprintOrSubjectName)) diff --git a/src/WireMock.Net/Owin/OwinSelfHost.cs b/src/WireMock.Net/Owin/OwinSelfHost.cs index 053c2a45..3e6a1cde 100644 --- a/src/WireMock.Net/Owin/OwinSelfHost.cs +++ b/src/WireMock.Net/Owin/OwinSelfHost.cs @@ -57,7 +57,11 @@ namespace WireMock.Owin private void StartServers() { +#if NET46 + Console.WriteLine("WireMock.Net server using .net 4.6.x or higher"); +#else Console.WriteLine("WireMock.Net server using .net 4.5.x or higher"); +#endif Action startup = app => { diff --git a/src/WireMock.Net/WireMock.Net.csproj b/src/WireMock.Net/WireMock.Net.csproj index 00d661c2..4712e30a 100644 --- a/src/WireMock.Net/WireMock.Net.csproj +++ b/src/WireMock.Net/WireMock.Net.csproj @@ -3,7 +3,7 @@ Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape. WireMock.Net - 1.0.3.5 + 1.0.3.7 Alexandre Victoor;Stef Heyenrath net452;net46;netstandard1.3;netstandard2.0 true @@ -54,7 +54,11 @@ - + + + + +