From 97e683a2f7c0b4df9015dd454c3be0e39aa82b7c Mon Sep 17 00:00:00 2001 From: Mo Zaatar Date: Sun, 27 Feb 2022 21:47:10 +0800 Subject: [PATCH 1/3] Upgrade to dotnet 6 --- DDD.Core/DDD.Core.csproj | 2 +- DDD.Functions.Extensions/DDD.Functions.Extensions.csproj | 4 ++-- DDD.Functions/DDD.Functions.csproj | 6 +++--- DDD.Sessionize.Tests/DDD.Sessionize.Tests.csproj | 2 +- .../TestHelpers/Shouldly/Shouldly.Core.csproj | 2 +- DDD.Sessionize/DDD.Sessionize.csproj | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/DDD.Core/DDD.Core.csproj b/DDD.Core/DDD.Core.csproj index effc46e..2ceff5d 100644 --- a/DDD.Core/DDD.Core.csproj +++ b/DDD.Core/DDD.Core.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1 + net6.0 diff --git a/DDD.Functions.Extensions/DDD.Functions.Extensions.csproj b/DDD.Functions.Extensions/DDD.Functions.Extensions.csproj index dbf6a0f..14560be 100644 --- a/DDD.Functions.Extensions/DDD.Functions.Extensions.csproj +++ b/DDD.Functions.Extensions/DDD.Functions.Extensions.csproj @@ -1,11 +1,11 @@ - netcoreapp3.1 + net6.0 - + diff --git a/DDD.Functions/DDD.Functions.csproj b/DDD.Functions/DDD.Functions.csproj index 7f2800a..3a86830 100644 --- a/DDD.Functions/DDD.Functions.csproj +++ b/DDD.Functions/DDD.Functions.csproj @@ -1,10 +1,10 @@  - netcoreapp3.1 - v3 + net6.0 + v4 - + diff --git a/DDD.Sessionize.Tests/DDD.Sessionize.Tests.csproj b/DDD.Sessionize.Tests/DDD.Sessionize.Tests.csproj index aadc480..892a5eb 100644 --- a/DDD.Sessionize.Tests/DDD.Sessionize.Tests.csproj +++ b/DDD.Sessionize.Tests/DDD.Sessionize.Tests.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1 + net6.0 3.1.1 diff --git a/DDD.Sessionize.Tests/TestHelpers/Shouldly/Shouldly.Core.csproj b/DDD.Sessionize.Tests/TestHelpers/Shouldly/Shouldly.Core.csproj index e7d5168..45ec533 100644 --- a/DDD.Sessionize.Tests/TestHelpers/Shouldly/Shouldly.Core.csproj +++ b/DDD.Sessionize.Tests/TestHelpers/Shouldly/Shouldly.Core.csproj @@ -1,6 +1,6 @@  - netcoreapp3.1 + net6.0 diff --git a/DDD.Sessionize/DDD.Sessionize.csproj b/DDD.Sessionize/DDD.Sessionize.csproj index e0a4cf7..52e84ca 100644 --- a/DDD.Sessionize/DDD.Sessionize.csproj +++ b/DDD.Sessionize/DDD.Sessionize.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1 + net6.0 From 39e56bcffe4a2d482d71662010d0872e619e3755 Mon Sep 17 00:00:00 2001 From: Mo Zaatar Date: Sun, 27 Feb 2022 22:48:17 +0800 Subject: [PATCH 2/3] upgrade to use v4 --- DDD.Functions/host.json | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DDD.Functions/host.json b/DDD.Functions/host.json index 81e35b7..4112a23 100644 --- a/DDD.Functions/host.json +++ b/DDD.Functions/host.json @@ -1,3 +1,3 @@ { - "version": "2.0" + "version": "4.0" } \ No newline at end of file diff --git a/README.md b/README.md index d46149e..3643761 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This project contains backend functionality to run the DDD conferences, includin ### Prerequisites * VSCode () or your preferred IDE -* Dotnet Core 3.1 () +* Dotnet 6 () * Azure Functions Core Tools() ### Commands From 1e6e3817e3e4ee1bc79b7ce4a22ed2675b923a0a Mon Sep 17 00:00:00 2001 From: Mo Zaatar Date: Thu, 10 Mar 2022 19:52:56 +0800 Subject: [PATCH 3/3] follow migration steps --- DDD.Functions/DDD.Functions.csproj | 2 +- DDD.Functions/SubmitVote.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DDD.Functions/DDD.Functions.csproj b/DDD.Functions/DDD.Functions.csproj index 3a86830..1ec7a62 100644 --- a/DDD.Functions/DDD.Functions.csproj +++ b/DDD.Functions/DDD.Functions.csproj @@ -5,7 +5,7 @@ - + diff --git a/DDD.Functions/SubmitVote.cs b/DDD.Functions/SubmitVote.cs index bcd6aab..026bc91 100644 --- a/DDD.Functions/SubmitVote.cs +++ b/DDD.Functions/SubmitVote.cs @@ -17,6 +17,7 @@ namespace DDD.Functions public static class SubmitVote { [FunctionName("SubmitVote")] + [Obsolete] public static async Task Run( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequestMessage req, @@ -152,6 +153,7 @@ public class VoteRequest public static class RequestExtensions { + [Obsolete] public static string GetIpAddress(this HttpRequestMessage req) { if (req.Properties.ContainsKey("HttpContext"))