From 1e1584d9059b0ce932887b92096bd42465170886 Mon Sep 17 00:00:00 2001 From: sweagent Date: Fri, 12 Apr 2024 12:41:18 +0000 Subject: [PATCH] Fix: Upgrade to .NET 8 Closes #30 --- 1_Essentials/11_Groups/Scaffold.Web.csproj | 2 +- 1_Essentials/12_MessageSizes/Scaffold.Web.csproj | 2 +- 1_Essentials/13_HubContextOutsideHub/Scaffold.Web.csproj | 2 +- 1_Essentials/14_HubLifecycle/Scaffold.Web.csproj | 2 +- 1_Essentials/15_Reconnection/Scaffold.Web.csproj | 2 +- 1_Essentials/16_DependencyInjection/Scaffold.Web.csproj | 2 +- 1_Essentials/1_BasicClientServer/Scaffold.Web.csproj | 2 +- 1_Essentials/2_Logging/Scaffold.Web.csproj | 2 +- 1_Essentials/5_ChoosingTransportType/Scaffold.Web.csproj | 2 +- 1_Essentials/7_CallingHubMethods/Scaffold.Web.csproj | 2 +- 1_Essentials/8_ClientEvents/Scaffold.Web.csproj | 2 +- .../01-1 Client Connection Events/Scaffold.Web.csproj | 2 +- .../01-2 Server Connection Events/Scaffold.Web.csproj | 2 +- 2_Advanced/02_MessagePack/Scaffold.Web.csproj | 2 +- 2_Advanced/03_StronglyTypedHubs/Scaffold.Web.csproj | 2 +- 2_Advanced/08-1_Authorization/08-1_Authorization.csproj | 2 +- .../11_1-DefaultModeWithASPNETCore/Scaffold.Web.csproj | 2 +- 2_Advanced/12_RedisBackplane/Scaffold.Web.csproj | 2 +- 2_Advanced/13_HostedServices/Scaffold.Web.csproj | 2 +- 2_Advanced/14_dotnetClient/DotNetClient/DotNetClient.csproj | 2 +- 2_Advanced/14_dotnetClient/Server/Scaffold.Web.csproj | 2 +- 2_Advanced/15_MultipleHubConnections/Scaffold.Web.csproj | 2 +- .../RealTimeTodo.Web/RealTimeTodo.Web.csproj | 4 ++-- Presentations/RealTimeRevolution/src/END/src.csproj | 4 ++-- Presentations/RealTimeRevolution/src/START/src.csproj | 4 ++-- upgrade_to_dotnet8.sh | 6 ++++++ 26 files changed, 34 insertions(+), 28 deletions(-) create mode 100755 upgrade_to_dotnet8.sh diff --git a/1_Essentials/11_Groups/Scaffold.Web.csproj b/1_Essentials/11_Groups/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/11_Groups/Scaffold.Web.csproj +++ b/1_Essentials/11_Groups/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/12_MessageSizes/Scaffold.Web.csproj b/1_Essentials/12_MessageSizes/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/12_MessageSizes/Scaffold.Web.csproj +++ b/1_Essentials/12_MessageSizes/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/13_HubContextOutsideHub/Scaffold.Web.csproj b/1_Essentials/13_HubContextOutsideHub/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/13_HubContextOutsideHub/Scaffold.Web.csproj +++ b/1_Essentials/13_HubContextOutsideHub/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/14_HubLifecycle/Scaffold.Web.csproj b/1_Essentials/14_HubLifecycle/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/14_HubLifecycle/Scaffold.Web.csproj +++ b/1_Essentials/14_HubLifecycle/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/15_Reconnection/Scaffold.Web.csproj b/1_Essentials/15_Reconnection/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/15_Reconnection/Scaffold.Web.csproj +++ b/1_Essentials/15_Reconnection/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/16_DependencyInjection/Scaffold.Web.csproj b/1_Essentials/16_DependencyInjection/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/16_DependencyInjection/Scaffold.Web.csproj +++ b/1_Essentials/16_DependencyInjection/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/1_BasicClientServer/Scaffold.Web.csproj b/1_Essentials/1_BasicClientServer/Scaffold.Web.csproj index 183a136..99843a3 100644 --- a/1_Essentials/1_BasicClientServer/Scaffold.Web.csproj +++ b/1_Essentials/1_BasicClientServer/Scaffold.Web.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 diff --git a/1_Essentials/2_Logging/Scaffold.Web.csproj b/1_Essentials/2_Logging/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/2_Logging/Scaffold.Web.csproj +++ b/1_Essentials/2_Logging/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/5_ChoosingTransportType/Scaffold.Web.csproj b/1_Essentials/5_ChoosingTransportType/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/5_ChoosingTransportType/Scaffold.Web.csproj +++ b/1_Essentials/5_ChoosingTransportType/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/7_CallingHubMethods/Scaffold.Web.csproj b/1_Essentials/7_CallingHubMethods/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/7_CallingHubMethods/Scaffold.Web.csproj +++ b/1_Essentials/7_CallingHubMethods/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/1_Essentials/8_ClientEvents/Scaffold.Web.csproj b/1_Essentials/8_ClientEvents/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/1_Essentials/8_ClientEvents/Scaffold.Web.csproj +++ b/1_Essentials/8_ClientEvents/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/01-1 Client Connection Events/Scaffold.Web.csproj b/2_Advanced/01-1 Client Connection Events/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/2_Advanced/01-1 Client Connection Events/Scaffold.Web.csproj +++ b/2_Advanced/01-1 Client Connection Events/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/01-2 Server Connection Events/Scaffold.Web.csproj b/2_Advanced/01-2 Server Connection Events/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/2_Advanced/01-2 Server Connection Events/Scaffold.Web.csproj +++ b/2_Advanced/01-2 Server Connection Events/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/02_MessagePack/Scaffold.Web.csproj b/2_Advanced/02_MessagePack/Scaffold.Web.csproj index 502fd79..3e7b765 100644 --- a/2_Advanced/02_MessagePack/Scaffold.Web.csproj +++ b/2_Advanced/02_MessagePack/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/03_StronglyTypedHubs/Scaffold.Web.csproj b/2_Advanced/03_StronglyTypedHubs/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/2_Advanced/03_StronglyTypedHubs/Scaffold.Web.csproj +++ b/2_Advanced/03_StronglyTypedHubs/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/08-1_Authorization/08-1_Authorization.csproj b/2_Advanced/08-1_Authorization/08-1_Authorization.csproj index 844e410..4e4fb76 100644 --- a/2_Advanced/08-1_Authorization/08-1_Authorization.csproj +++ b/2_Advanced/08-1_Authorization/08-1_Authorization.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 aspnet-_08_1_Authorization-7573CADC-6F5B-4C95-B641-A3619D31E295 _08_1_Authorization diff --git a/2_Advanced/11_AzureSignalRService/11_1-DefaultModeWithASPNETCore/Scaffold.Web.csproj b/2_Advanced/11_AzureSignalRService/11_1-DefaultModeWithASPNETCore/Scaffold.Web.csproj index eeba1dc..5150eef 100644 --- a/2_Advanced/11_AzureSignalRService/11_1-DefaultModeWithASPNETCore/Scaffold.Web.csproj +++ b/2_Advanced/11_AzureSignalRService/11_1-DefaultModeWithASPNETCore/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/12_RedisBackplane/Scaffold.Web.csproj b/2_Advanced/12_RedisBackplane/Scaffold.Web.csproj index d0cfca4..bcd399c 100644 --- a/2_Advanced/12_RedisBackplane/Scaffold.Web.csproj +++ b/2_Advanced/12_RedisBackplane/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/13_HostedServices/Scaffold.Web.csproj b/2_Advanced/13_HostedServices/Scaffold.Web.csproj index 19a1921..4fc91f6 100644 --- a/2_Advanced/13_HostedServices/Scaffold.Web.csproj +++ b/2_Advanced/13_HostedServices/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/14_dotnetClient/DotNetClient/DotNetClient.csproj b/2_Advanced/14_dotnetClient/DotNetClient/DotNetClient.csproj index d002264..8b7c7f4 100644 --- a/2_Advanced/14_dotnetClient/DotNetClient/DotNetClient.csproj +++ b/2_Advanced/14_dotnetClient/DotNetClient/DotNetClient.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net8.0 diff --git a/2_Advanced/14_dotnetClient/Server/Scaffold.Web.csproj b/2_Advanced/14_dotnetClient/Server/Scaffold.Web.csproj index 5b7fd0e..a830557 100644 --- a/2_Advanced/14_dotnetClient/Server/Scaffold.Web.csproj +++ b/2_Advanced/14_dotnetClient/Server/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/2_Advanced/15_MultipleHubConnections/Scaffold.Web.csproj b/2_Advanced/15_MultipleHubConnections/Scaffold.Web.csproj index 5b7fd0e..a830557 100644 --- a/2_Advanced/15_MultipleHubConnections/Scaffold.Web.csproj +++ b/2_Advanced/15_MultipleHubConnections/Scaffold.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 diff --git a/Demos/todo-application/RealTimeTodo.Web/RealTimeTodo.Web.csproj b/Demos/todo-application/RealTimeTodo.Web/RealTimeTodo.Web.csproj index 7939e39..774c3b6 100644 --- a/Demos/todo-application/RealTimeTodo.Web/RealTimeTodo.Web.csproj +++ b/Demos/todo-application/RealTimeTodo.Web/RealTimeTodo.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 @@ -9,4 +9,4 @@ - \ No newline at end of file + diff --git a/Presentations/RealTimeRevolution/src/END/src.csproj b/Presentations/RealTimeRevolution/src/END/src.csproj index 19a1921..56def69 100644 --- a/Presentations/RealTimeRevolution/src/END/src.csproj +++ b/Presentations/RealTimeRevolution/src/END/src.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 @@ -8,4 +8,4 @@ - \ No newline at end of file + diff --git a/Presentations/RealTimeRevolution/src/START/src.csproj b/Presentations/RealTimeRevolution/src/START/src.csproj index 19a1921..56def69 100644 --- a/Presentations/RealTimeRevolution/src/START/src.csproj +++ b/Presentations/RealTimeRevolution/src/START/src.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 @@ -8,4 +8,4 @@ - \ No newline at end of file + diff --git a/upgrade_to_dotnet8.sh b/upgrade_to_dotnet8.sh new file mode 100755 index 0000000..d655e41 --- /dev/null +++ b/upgrade_to_dotnet8.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Find all .csproj files and update the target framework to .NET 8 +find . -name "*.csproj" -exec sed -i 's/net6.0/net8.0/g' {} \; + +echo "Upgrade to .NET 8 completed."