From 058fe2af3f6a74eafabcfe14100a2d1c47a48678 Mon Sep 17 00:00:00 2001 From: Gaurav Ydv Date: Mon, 4 Aug 2025 16:54:32 +0530 Subject: [PATCH 1/2] upgraded to .net 9 --- .github/chatmodes/god.chatmode.md | 5 ++ README.md | 2 +- SoapCore.sln | 73 +++++++++++++++++++ samples/Client/Client.csproj | 4 +- samples/Server/Server.csproj | 2 +- .../ServiceReference/ConnectedService.json | 2 +- .../ServiceReferenceClient.csproj | 2 +- src/SoapCore.Benchmark/Program.cs | 2 +- .../SoapCore.Benchmark.csproj | 6 +- src/SoapCore.Tests/SoapCore.Tests.csproj | 8 +- src/SoapCore/HeadersHelper.cs | 2 +- src/SoapCore/SoapCore.csproj | 4 +- src/SoapCore/SoapCoreOptions.cs | 2 +- src/SoapCore/SoapEndpointMiddleware.cs | 2 +- src/SoapCore/XDocumentXmlReader.cs | 2 +- src/global.json | 2 +- 16 files changed, 99 insertions(+), 21 deletions(-) create mode 100644 .github/chatmodes/god.chatmode.md create mode 100644 SoapCore.sln diff --git a/.github/chatmodes/god.chatmode.md b/.github/chatmodes/god.chatmode.md new file mode 100644 index 00000000..2807cf3b --- /dev/null +++ b/.github/chatmodes/god.chatmode.md @@ -0,0 +1,5 @@ +--- +description: 'Description of the custom chat mode.' +tools: [] +--- +Define the purpose of this chat mode and how AI should behave: response style, available tools, focus areas, and any mode-specific instructions or constraints. \ No newline at end of file diff --git a/README.md b/README.md index c7a51be2..798a0ba6 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Support ref\out params, exceptions. Works with legacy SOAP\WCF-clients. The following frameworks are supported: -- .NET 8.0 (using ASP.NET Core 8.0) +- .NET 9.0 (using ASP.NET Core 9.0) - .NET Core 3.1 (using ASP.NET Core 3.1) - .NET Standard 2.0-2.1 (using ASP.NET Core 2.1) diff --git a/SoapCore.sln b/SoapCore.sln new file mode 100644 index 00000000..d8548e0d --- /dev/null +++ b/SoapCore.sln @@ -0,0 +1,73 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{5D20AA90-6969-D8BD-9DCD-8634F4692FDA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoapCore.Tests", "src\SoapCore.Tests\SoapCore.Tests.csproj", "{792F2D88-944E-D858-B188-8D099968D8F8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoapCore.Benchmark", "src\SoapCore.Benchmark\SoapCore.Benchmark.csproj", "{F78D5E08-56A4-AF93-AE96-D4F968C0F4EB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SoapCore", "src\SoapCore\SoapCore.csproj", "{BE4773A0-6CDA-F20C-91C5-C459CD9B01DA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceReferenceClient", "samples\ServiceReferenceClient\ServiceReferenceClient.csproj", "{B4B7EC2F-C2AC-3040-81D3-AC626C35691E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "samples\Server\Server.csproj", "{E1838AF0-3C46-A86C-5BEF-DDA6BE89D32F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Models", "samples\Models\Models.csproj", "{C1C55718-4B21-2F2D-5F8D-E7859EF52C42}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "samples\Client\Client.csproj", "{2A625F63-23A0-539C-6B20-551900FCE074}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {792F2D88-944E-D858-B188-8D099968D8F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {792F2D88-944E-D858-B188-8D099968D8F8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {792F2D88-944E-D858-B188-8D099968D8F8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {792F2D88-944E-D858-B188-8D099968D8F8}.Release|Any CPU.Build.0 = Release|Any CPU + {F78D5E08-56A4-AF93-AE96-D4F968C0F4EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F78D5E08-56A4-AF93-AE96-D4F968C0F4EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F78D5E08-56A4-AF93-AE96-D4F968C0F4EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F78D5E08-56A4-AF93-AE96-D4F968C0F4EB}.Release|Any CPU.Build.0 = Release|Any CPU + {BE4773A0-6CDA-F20C-91C5-C459CD9B01DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BE4773A0-6CDA-F20C-91C5-C459CD9B01DA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BE4773A0-6CDA-F20C-91C5-C459CD9B01DA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BE4773A0-6CDA-F20C-91C5-C459CD9B01DA}.Release|Any CPU.Build.0 = Release|Any CPU + {B4B7EC2F-C2AC-3040-81D3-AC626C35691E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B4B7EC2F-C2AC-3040-81D3-AC626C35691E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B4B7EC2F-C2AC-3040-81D3-AC626C35691E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B4B7EC2F-C2AC-3040-81D3-AC626C35691E}.Release|Any CPU.Build.0 = Release|Any CPU + {E1838AF0-3C46-A86C-5BEF-DDA6BE89D32F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E1838AF0-3C46-A86C-5BEF-DDA6BE89D32F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E1838AF0-3C46-A86C-5BEF-DDA6BE89D32F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E1838AF0-3C46-A86C-5BEF-DDA6BE89D32F}.Release|Any CPU.Build.0 = Release|Any CPU + {C1C55718-4B21-2F2D-5F8D-E7859EF52C42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C1C55718-4B21-2F2D-5F8D-E7859EF52C42}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C1C55718-4B21-2F2D-5F8D-E7859EF52C42}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C1C55718-4B21-2F2D-5F8D-E7859EF52C42}.Release|Any CPU.Build.0 = Release|Any CPU + {2A625F63-23A0-539C-6B20-551900FCE074}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2A625F63-23A0-539C-6B20-551900FCE074}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2A625F63-23A0-539C-6B20-551900FCE074}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2A625F63-23A0-539C-6B20-551900FCE074}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {792F2D88-944E-D858-B188-8D099968D8F8} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B} + {F78D5E08-56A4-AF93-AE96-D4F968C0F4EB} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B} + {BE4773A0-6CDA-F20C-91C5-C459CD9B01DA} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B} + {B4B7EC2F-C2AC-3040-81D3-AC626C35691E} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA} + {E1838AF0-3C46-A86C-5BEF-DDA6BE89D32F} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA} + {C1C55718-4B21-2F2D-5F8D-E7859EF52C42} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA} + {2A625F63-23A0-539C-6B20-551900FCE074} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {26206D9E-146E-4EA4-80CB-EF074CA59CB6} + EndGlobalSection +EndGlobal diff --git a/samples/Client/Client.csproj b/samples/Client/Client.csproj index d6568865..092643f9 100644 --- a/samples/Client/Client.csproj +++ b/samples/Client/Client.csproj @@ -1,12 +1,12 @@  - netcoreapp3.1 + net9.0 Exe - + diff --git a/samples/Server/Server.csproj b/samples/Server/Server.csproj index b9319b2b..9230dd6b 100644 --- a/samples/Server/Server.csproj +++ b/samples/Server/Server.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1 + net9.0 diff --git a/samples/ServiceReferenceClient/Connected Services/ServiceReference/ConnectedService.json b/samples/ServiceReferenceClient/Connected Services/ServiceReference/ConnectedService.json index 08144bee..f3a5f5e3 100644 --- a/samples/ServiceReferenceClient/Connected Services/ServiceReference/ConnectedService.json +++ b/samples/ServiceReferenceClient/Connected Services/ServiceReference/ConnectedService.json @@ -39,7 +39,7 @@ "System.Xml.XmlDocument, {System.Xml.XmlDocument, 4.3.0}" ], "sync": true, - "targetFramework": "net8.0", + "targetFramework": "net9.0", "typeReuseMode": "All" } } \ No newline at end of file diff --git a/samples/ServiceReferenceClient/ServiceReferenceClient.csproj b/samples/ServiceReferenceClient/ServiceReferenceClient.csproj index 4a48f1a8..135bfd69 100644 --- a/samples/ServiceReferenceClient/ServiceReferenceClient.csproj +++ b/samples/ServiceReferenceClient/ServiceReferenceClient.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 enable enable diff --git a/src/SoapCore.Benchmark/Program.cs b/src/SoapCore.Benchmark/Program.cs index 1726d121..21890235 100644 --- a/src/SoapCore.Benchmark/Program.cs +++ b/src/SoapCore.Benchmark/Program.cs @@ -17,7 +17,7 @@ namespace SoapCore.Benchmark { [MemoryDiagnoser] - [SimpleJob(RuntimeMoniker.Net80, baseline: true, iterationCount: 20)] + [SimpleJob(RuntimeMoniker.Net90, baseline: true, iterationCount: 20)] //[SimpleJob(RuntimeMoniker.NetCoreApp31, iterationCount: 20)] public class EchoBench { diff --git a/src/SoapCore.Benchmark/SoapCore.Benchmark.csproj b/src/SoapCore.Benchmark/SoapCore.Benchmark.csproj index ccac0494..796ba4e3 100644 --- a/src/SoapCore.Benchmark/SoapCore.Benchmark.csproj +++ b/src/SoapCore.Benchmark/SoapCore.Benchmark.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp3.1;net8.0 + netcoreapp3.1;net9.0 ..\SoapCore.ruleset true 8 @@ -12,8 +12,8 @@ - - + + diff --git a/src/SoapCore.Tests/SoapCore.Tests.csproj b/src/SoapCore.Tests/SoapCore.Tests.csproj index 26ae0353..1dafde1f 100644 --- a/src/SoapCore.Tests/SoapCore.Tests.csproj +++ b/src/SoapCore.Tests/SoapCore.Tests.csproj @@ -1,7 +1,7 @@ - net8.0; + net9.0; ..\SoapCore.ruleset false true @@ -16,10 +16,10 @@ - + - - + + all runtime; build; native; contentfiles; analyzers diff --git a/src/SoapCore/HeadersHelper.cs b/src/SoapCore/HeadersHelper.cs index a711c82b..b8c59b26 100644 --- a/src/SoapCore/HeadersHelper.cs +++ b/src/SoapCore/HeadersHelper.cs @@ -23,7 +23,7 @@ public static string GetSoapAction(HttpContext httpContext, ref Message message) if (soapAction.IsEmpty) { -#if NET8_0_OR_GREATER +#if NET9_0_OR_GREATER foreach (var item in httpContext.Request.Headers["Content-Type"]) { diff --git a/src/SoapCore/SoapCore.csproj b/src/SoapCore/SoapCore.csproj index cd269038..18a818d6 100644 --- a/src/SoapCore/SoapCore.csproj +++ b/src/SoapCore/SoapCore.csproj @@ -4,7 +4,7 @@ SOAP protocol middleware for ASP.NET Core 1.2.1.8 Digital Design - netstandard2.0;netstandard2.1;net8.0;netcoreapp3.1; + netstandard2.0;netstandard2.1;net9.0;netcoreapp3.1; SoapCore SOAP;ASP.NET Core https://github.com/DigDes/SoapCore @@ -40,7 +40,7 @@ - + diff --git a/src/SoapCore/SoapCoreOptions.cs b/src/SoapCore/SoapCoreOptions.cs index 388f8106..3b8982f4 100644 --- a/src/SoapCore/SoapCoreOptions.cs +++ b/src/SoapCore/SoapCoreOptions.cs @@ -11,7 +11,7 @@ public class SoapCoreOptions { private bool? _indentWsdl = null; -#if NET8_0_OR_GREATER +#if NET9_0_OR_GREATER /// /// Gets or sets the Path of the Service /// diff --git a/src/SoapCore/SoapEndpointMiddleware.cs b/src/SoapCore/SoapEndpointMiddleware.cs index e1d4522d..a2539684 100644 --- a/src/SoapCore/SoapEndpointMiddleware.cs +++ b/src/SoapCore/SoapEndpointMiddleware.cs @@ -937,7 +937,7 @@ private Message CreateErrorResponseMessage( } else if (exception is OperationCanceledException) { -#if NET8_0_OR_GREATER +#if NET9_0_OR_GREATER status = StatusCodes.Status499ClientClosedRequest; #else status = StatusCodes.Status408RequestTimeout; diff --git a/src/SoapCore/XDocumentXmlReader.cs b/src/SoapCore/XDocumentXmlReader.cs index 88e2c37b..a00a063c 100644 --- a/src/SoapCore/XDocumentXmlReader.cs +++ b/src/SoapCore/XDocumentXmlReader.cs @@ -112,7 +112,7 @@ protected override void Dispose(bool disposing) base.Dispose(disposing); } -#if NET8_0_OR_GREATER +#if NET9_0_OR_GREATER private static byte[] ConvertHexStringToBytes(string hexString) => Convert.FromHexString(hexString); #else private static byte[] ConvertHexStringToBytes(string hexString) diff --git a/src/global.json b/src/global.json index 126149e6..f6578894 100644 --- a/src/global.json +++ b/src/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "6.0.100", + "version": "9.0.100", "rollForward": "latestMajor" } } From cd6e3f20afba3beb67ffda90e3d228c0fbe90ea4 Mon Sep 17 00:00:00 2001 From: Gaurav Ydv Date: Mon, 4 Aug 2025 16:56:39 +0530 Subject: [PATCH 2/2] deleted chat-mode --- .github/chatmodes/god.chatmode.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .github/chatmodes/god.chatmode.md diff --git a/.github/chatmodes/god.chatmode.md b/.github/chatmodes/god.chatmode.md deleted file mode 100644 index 2807cf3b..00000000 --- a/.github/chatmodes/god.chatmode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -description: 'Description of the custom chat mode.' -tools: [] ---- -Define the purpose of this chat mode and how AI should behave: response style, available tools, focus areas, and any mode-specific instructions or constraints. \ No newline at end of file