From 77e3d343e89f63293c1eac1d905102df21c5ae0d Mon Sep 17 00:00:00 2001 From: Basil Kotov Date: Thu, 11 Jan 2024 03:50:45 -0800 Subject: [PATCH] PT-14740: Update to .net 8 (#220) feat: Update to .NET 8 --- .nuke | 1 - .nuke/parameters.json | 4 ++++ Directory.Build.props | 6 +++--- .../VirtoCommerce.CoreModule.Core.csproj | 8 ++++---- .../VirtoCommerce.CoreModule.Data.MySql.csproj | 8 ++++---- ...oCommerce.CoreModule.Data.PostgreSql.csproj | 10 +++++----- .../20210728124419_roundingpolicy.Designer.cs | 2 +- .../20210728124419_roundingpolicy.cs | 2 +- ...toCommerce.CoreModule.Data.SqlServer.csproj | 8 ++++---- .../Repositories/CoreDbContext.cs | 3 ++- .../VirtoCommerce.CoreModule.Data.csproj | 10 +++++----- .../VirtoCommerce.CoreModule.Web.csproj | 2 +- .../module.manifest | 6 +++--- .../VirtoCommerce.Tools.csproj | 4 ++-- .../VirtoCommerce.CoreModule.Tests.csproj | 18 +++++++++--------- .../VirtoCommerce.Tools.Tests.csproj | 18 +++++++++--------- 16 files changed, 57 insertions(+), 53 deletions(-) delete mode 100644 .nuke create mode 100644 .nuke/parameters.json diff --git a/.nuke b/.nuke deleted file mode 100644 index 90d8ca9ee..000000000 --- a/.nuke +++ /dev/null @@ -1 +0,0 @@ -VirtoCommerce.CoreModule.sln diff --git a/.nuke/parameters.json b/.nuke/parameters.json new file mode 100644 index 000000000..b602ff643 --- /dev/null +++ b/.nuke/parameters.json @@ -0,0 +1,4 @@ +{ + "$schema": "./build.schema.json", + "Solution": "VirtoCommerce.CoreModule.sln" +} \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index 74eeb7f7b..e2fe5d6fa 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,8 +1,8 @@ - + - 3.405.0 + 3.800.0 $(VersionSuffix)-$(BuildNumber) @@ -10,4 +10,4 @@ true - + \ No newline at end of file diff --git a/src/VirtoCommerce.CoreModule.Core/VirtoCommerce.CoreModule.Core.csproj b/src/VirtoCommerce.CoreModule.Core/VirtoCommerce.CoreModule.Core.csproj index eb75f87d0..3582409df 100644 --- a/src/VirtoCommerce.CoreModule.Core/VirtoCommerce.CoreModule.Core.csproj +++ b/src/VirtoCommerce.CoreModule.Core/VirtoCommerce.CoreModule.Core.csproj @@ -1,7 +1,7 @@ Common the e-commerce domain functionality - net6.0 + net8.0 true 1591 True @@ -11,8 +11,8 @@ snupkg - - - + + + \ No newline at end of file diff --git a/src/VirtoCommerce.CoreModule.Data.MySql/VirtoCommerce.CoreModule.Data.MySql.csproj b/src/VirtoCommerce.CoreModule.Data.MySql/VirtoCommerce.CoreModule.Data.MySql.csproj index 660b81838..14f6179e8 100644 --- a/src/VirtoCommerce.CoreModule.Data.MySql/VirtoCommerce.CoreModule.Data.MySql.csproj +++ b/src/VirtoCommerce.CoreModule.Data.MySql/VirtoCommerce.CoreModule.Data.MySql.csproj @@ -1,17 +1,17 @@ - net6.0 + net8.0 enable enable - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - + \ No newline at end of file diff --git a/src/VirtoCommerce.CoreModule.Data.PostgreSql/VirtoCommerce.CoreModule.Data.PostgreSql.csproj b/src/VirtoCommerce.CoreModule.Data.PostgreSql/VirtoCommerce.CoreModule.Data.PostgreSql.csproj index 4339dfb0e..7e6c1d584 100644 --- a/src/VirtoCommerce.CoreModule.Data.PostgreSql/VirtoCommerce.CoreModule.Data.PostgreSql.csproj +++ b/src/VirtoCommerce.CoreModule.Data.PostgreSql/VirtoCommerce.CoreModule.Data.PostgreSql.csproj @@ -1,18 +1,18 @@ - net6.0 + net8.0 enable enable - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - + \ No newline at end of file diff --git a/src/VirtoCommerce.CoreModule.Data.SqlServer/Migrations/20210728124419_roundingpolicy.Designer.cs b/src/VirtoCommerce.CoreModule.Data.SqlServer/Migrations/20210728124419_roundingpolicy.Designer.cs index 3cd3528c3..0aaf2d013 100644 --- a/src/VirtoCommerce.CoreModule.Data.SqlServer/Migrations/20210728124419_roundingpolicy.Designer.cs +++ b/src/VirtoCommerce.CoreModule.Data.SqlServer/Migrations/20210728124419_roundingpolicy.Designer.cs @@ -11,7 +11,7 @@ namespace VirtoCommerce.CoreModule.Data.SqlServer.Migrations { [DbContext(typeof(CoreDbContext))] [Migration("20210728124419_roundingpolicy")] - partial class roundingpolicy + partial class RoundingPolicy { protected override void BuildTargetModel(ModelBuilder modelBuilder) { diff --git a/src/VirtoCommerce.CoreModule.Data.SqlServer/Migrations/20210728124419_roundingpolicy.cs b/src/VirtoCommerce.CoreModule.Data.SqlServer/Migrations/20210728124419_roundingpolicy.cs index 2c6f60027..1e601a283 100644 --- a/src/VirtoCommerce.CoreModule.Data.SqlServer/Migrations/20210728124419_roundingpolicy.cs +++ b/src/VirtoCommerce.CoreModule.Data.SqlServer/Migrations/20210728124419_roundingpolicy.cs @@ -2,7 +2,7 @@ namespace VirtoCommerce.CoreModule.Data.SqlServer.Migrations { - public partial class roundingpolicy : Migration + public partial class RoundingPolicy : Migration { protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/src/VirtoCommerce.CoreModule.Data.SqlServer/VirtoCommerce.CoreModule.Data.SqlServer.csproj b/src/VirtoCommerce.CoreModule.Data.SqlServer/VirtoCommerce.CoreModule.Data.SqlServer.csproj index 092a41511..8347ebce9 100644 --- a/src/VirtoCommerce.CoreModule.Data.SqlServer/VirtoCommerce.CoreModule.Data.SqlServer.csproj +++ b/src/VirtoCommerce.CoreModule.Data.SqlServer/VirtoCommerce.CoreModule.Data.SqlServer.csproj @@ -1,17 +1,17 @@ - net6.0 + net8.0 enable enable - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - + \ No newline at end of file diff --git a/src/VirtoCommerce.CoreModule.Data/Repositories/CoreDbContext.cs b/src/VirtoCommerce.CoreModule.Data/Repositories/CoreDbContext.cs index 5d8822e3c..20af0e535 100644 --- a/src/VirtoCommerce.CoreModule.Data/Repositories/CoreDbContext.cs +++ b/src/VirtoCommerce.CoreModule.Data/Repositories/CoreDbContext.cs @@ -5,11 +5,12 @@ using VirtoCommerce.CoreModule.Data.Currency; using VirtoCommerce.CoreModule.Data.Model; using VirtoCommerce.CoreModule.Data.Package; +using VirtoCommerce.Platform.Data.Infrastructure; namespace VirtoCommerce.CoreModule.Data.Repositories { #pragma warning disable S109 - public class CoreDbContext : DbContextWithTriggers + public class CoreDbContext : DbContextBase { public CoreDbContext(DbContextOptions options) : base(options) diff --git a/src/VirtoCommerce.CoreModule.Data/VirtoCommerce.CoreModule.Data.csproj b/src/VirtoCommerce.CoreModule.Data/VirtoCommerce.CoreModule.Data.csproj index 7486a0985..11fbc8a2a 100644 --- a/src/VirtoCommerce.CoreModule.Data/VirtoCommerce.CoreModule.Data.csproj +++ b/src/VirtoCommerce.CoreModule.Data/VirtoCommerce.CoreModule.Data.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 1591 Common the e-commerce domain functionality True @@ -10,10 +10,10 @@ snupkg - - - - + + + + diff --git a/src/VirtoCommerce.CoreModule.Web/VirtoCommerce.CoreModule.Web.csproj b/src/VirtoCommerce.CoreModule.Web/VirtoCommerce.CoreModule.Web.csproj index ed900d8c0..e35ec7956 100644 --- a/src/VirtoCommerce.CoreModule.Web/VirtoCommerce.CoreModule.Web.csproj +++ b/src/VirtoCommerce.CoreModule.Web/VirtoCommerce.CoreModule.Web.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true False diff --git a/src/VirtoCommerce.CoreModule.Web/module.manifest b/src/VirtoCommerce.CoreModule.Web/module.manifest index 9b7fc96de..fc3f1bdcf 100644 --- a/src/VirtoCommerce.CoreModule.Web/module.manifest +++ b/src/VirtoCommerce.CoreModule.Web/module.manifest @@ -1,9 +1,9 @@ VirtoCommerce.Core - 3.405.0 + 3.800.0 - 3.429.0 + 3.800.0 Commerce core module Common e-commerce domain functionality @@ -17,7 +17,7 @@ Modules/$(VirtoCommerce.Core)/Content/logoVC.png false - Copyright © 2011-2023 Virto Commerce. All rights reserved + Copyright © 2011-2024 Virto Commerce. All rights reserved security core VirtoCommerce.CoreModule.Web.dll VirtoCommerce.CoreModule.Web.Module, VirtoCommerce.CoreModule.Web diff --git a/src/VirtoCommerce.Tools/VirtoCommerce.Tools.csproj b/src/VirtoCommerce.Tools/VirtoCommerce.Tools.csproj index 765885fbe..af788023c 100644 --- a/src/VirtoCommerce.Tools/VirtoCommerce.Tools.csproj +++ b/src/VirtoCommerce.Tools/VirtoCommerce.Tools.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 1591 true true @@ -8,6 +8,6 @@ snupkg - + \ No newline at end of file diff --git a/tests/VirtoCommerce.CoreModule.Tests/VirtoCommerce.CoreModule.Tests.csproj b/tests/VirtoCommerce.CoreModule.Tests/VirtoCommerce.CoreModule.Tests.csproj index 2f58c853e..cef1210e9 100644 --- a/tests/VirtoCommerce.CoreModule.Tests/VirtoCommerce.CoreModule.Tests.csproj +++ b/tests/VirtoCommerce.CoreModule.Tests/VirtoCommerce.CoreModule.Tests.csproj @@ -1,20 +1,20 @@ - net6.0 + net8.0 1591 - + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - - - - - + + + + + + + diff --git a/tests/VirtoCommerce.Tools.Tests/VirtoCommerce.Tools.Tests.csproj b/tests/VirtoCommerce.Tools.Tests/VirtoCommerce.Tools.Tests.csproj index dd8634869..d85bb7fdc 100644 --- a/tests/VirtoCommerce.Tools.Tests/VirtoCommerce.Tools.Tests.csproj +++ b/tests/VirtoCommerce.Tools.Tests/VirtoCommerce.Tools.Tests.csproj @@ -1,20 +1,20 @@ - net6.0 + net8.0 1591 - + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - - - - - + + + + + + +