Skip to content

Commit 7050212

Browse files
authored
VCST-4328: Update to .NET10 (#211)
1 parent df1ee39 commit 7050212

File tree

15 files changed

+356
-394
lines changed

15 files changed

+356
-394
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<!-- These properties will be shared for all projects -->
44
<PropertyGroup>
5-
<VersionPrefix>3.839.0</VersionPrefix>
5+
<VersionPrefix>3.1000.0</VersionPrefix>
66
<VersionSuffix>
77
</VersionSuffix>
88
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>

src/VirtoCommerce.ContentModule.Azure/VirtoCommerce.ContentModule.Azure.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<IsPackable>true</IsPackable>
55
<noWarn>1591</noWarn>
66
<PublishRepositoryUrl>true</PublishRepositoryUrl>
@@ -9,8 +9,8 @@
99
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
13-
<PackageReference Include="VirtoCommerce.AzureBlobAssetsModule.Core" Version="3.813.0" />
12+
13+
<PackageReference Include="VirtoCommerce.AzureBlobAssetsModule.Core" Version="3.1000.0" />
1414
</ItemGroup>
1515
<ItemGroup>
1616
<ProjectReference Include="..\VirtoCommerce.ContentModule.Core\VirtoCommerce.ContentModule.Core.csproj" />
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<IsPackable>true</IsPackable>
55
<noWarn>1591</noWarn>
66
<PublishRepositoryUrl>true</PublishRepositoryUrl>
@@ -9,9 +9,9 @@
99
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
13-
<PackageReference Include="VirtoCommerce.AssetsModule.Core" Version="3.814.0" />
14-
<PackageReference Include="VirtoCommerce.Platform.Core" Version="3.919.0" />
15-
<PackageReference Include="VirtoCommerce.SearchModule.Core" Version="3.821.0" />
12+
13+
<PackageReference Include="VirtoCommerce.AssetsModule.Core" Version="3.1000.0" />
14+
<PackageReference Include="VirtoCommerce.Platform.Core" Version="3.1002.0" />
15+
<PackageReference Include="VirtoCommerce.SearchModule.Core" Version="3.1000.0" />
1616
</ItemGroup>
1717
</Project>
Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1+
# Generate Migrations
12

2-
## Package manager
3-
Add-Migration Initial -Context VirtoCommerce.ContentModule.Data.Repositories.MenuDbContext -Verbose -OutputDir Migrations -Project VirtoCommerce.ContentModule.Data.MySql -StartupProject VirtoCommerce.ContentModule.Data.MySql -Debug
4-
5-
6-
7-
### Entity Framework Core Commands
8-
```
9-
dotnet tool install --global dotnet-ef --version 6.*
3+
## Install CLI tools for Entity Framework Core
4+
```cmd
5+
dotnet tool install --global dotnet-ef --version 10.0.1
106
```
117

12-
**Generate Migrations**
8+
or update
139

10+
```cmd
11+
dotnet tool update --global dotnet-ef --version 10.0.1
1412
```
15-
dotnet ef migrations add Initial -- "{connection string}"
16-
dotnet ef migrations add Update1 -- "{connection string}"
17-
dotnet ef migrations add Update2 -- "{connection string}"
18-
```
19-
20-
etc..
2113

22-
**Apply Migrations**
14+
## Add Migration
15+
Select Data.<Provider> folder and run following command for each provider:
2316

24-
`dotnet ef database update -- "{connection string}"`
17+
```cmd
18+
dotnet ef migrations add <migration-name>
19+
```

src/VirtoCommerce.ContentModule.Data.MySql/VirtoCommerce.ContentModule.Data.MySql.csproj

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
6+
<NoWarn>NU1608</NoWarn>
67
</PropertyGroup>
78
<ItemGroup>
8-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[8.0.11,9)">
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.1">
910
<PrivateAssets>all</PrivateAssets>
10-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
11+
<IncludeAssets>runtime; build; native; analyzers; buildtransitive</IncludeAssets>
1112
</PackageReference>
12-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
13-
<PrivateAssets>all</PrivateAssets>
14-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15-
</PackageReference>
16-
<PackageReference Include="VirtoCommerce.Platform.Data.MySql" Version="3.919.0" />
13+
<PackageReference Include="VirtoCommerce.Platform.Data.MySql" Version="3.1002.0" />
1714
</ItemGroup>
1815
<ItemGroup>
1916
<ProjectReference Include="..\VirtoCommerce.ContentModule.Data\VirtoCommerce.ContentModule.Data.csproj" />
Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1+
# Generate Migrations
12

2-
## Package manager
3-
Add-Migration Initial -Context VirtoCommerce.ContentModule.Data.Repositories.MenuDbContext -Verbose -OutputDir Migrations -Project VirtoCommerce.ContentModule.Data.PostgreSql -StartupProject VirtoCommerce.ContentModule.Data.PostgreSql -Debug
4-
5-
6-
7-
### Entity Framework Core Commands
8-
```
9-
dotnet tool install --global dotnet-ef --version 6.*
3+
## Install CLI tools for Entity Framework Core
4+
```cmd
5+
dotnet tool install --global dotnet-ef --version 10.0.1
106
```
117

12-
**Generate Migrations**
8+
or update
139

10+
```cmd
11+
dotnet tool update --global dotnet-ef --version 10.0.1
1412
```
15-
dotnet ef migrations add Initial -- "{connection string}"
16-
dotnet ef migrations add Update1 -- "{connection string}"
17-
dotnet ef migrations add Update2 -- "{connection string}"
18-
```
19-
20-
etc..
2113

22-
**Apply Migrations**
14+
## Add Migration
15+
Select Data.<Provider> folder and run following command for each provider:
2316

24-
`dotnet ef database update -- "{connection string}"`
17+
```cmd
18+
dotnet ef migrations add <migration-name>
19+
```

src/VirtoCommerce.ContentModule.Data.PostgreSql/VirtoCommerce.ContentModule.Data.PostgreSql.csproj

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[8.0.11,9)">
8+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.1">
99
<PrivateAssets>all</PrivateAssets>
10-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
10+
<IncludeAssets>runtime; build; native; analyzers; buildtransitive</IncludeAssets>
1111
</PackageReference>
12-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
13-
<PrivateAssets>all</PrivateAssets>
14-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15-
</PackageReference>
16-
<PackageReference Include="VirtoCommerce.Platform.Data.PostgreSql" Version="3.919.0" />
12+
13+
<PackageReference Include="VirtoCommerce.Platform.Data.PostgreSql" Version="3.1002.0" />
1714
</ItemGroup>
1815
<ItemGroup>
1916
<ProjectReference Include="..\VirtoCommerce.ContentModule.Data\VirtoCommerce.ContentModule.Data.csproj" />
Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
1+
# Generate Migrations
12

2-
## Package manager
3-
Add-Migration Initial -Context VirtoCommerce.ContentModule.Data.Repositories.MenuDbContext -Verbose -OutputDir Migrations -Project VirtoCommerce.ContentModule.Data.SqlServer -StartupProject VirtoCommerce.ContentModule.Data.SqlServer -Debug
4-
5-
6-
7-
### Entity Framework Core Commands
8-
```
9-
10-
dotnet tool install --global dotnet-ef --version 6.*
3+
## Install CLI tools for Entity Framework Core
4+
```cmd
5+
dotnet tool install --global dotnet-ef --version 10.0.1
116
```
127

13-
**Generate Migrations**
8+
or update
149

15-
```
16-
dotnet ef migrations add Initial -- "{connection string}"
17-
dotnet ef migrations add Update1 -- "{connection string}"
18-
dotnet ef migrations add Update2 -- "{connection string}"
10+
```cmd
11+
dotnet tool update --global dotnet-ef --version 10.0.1
1912
```
2013

21-
etc..
14+
## Add Migration
15+
Select Data.<Provider> folder and run following command for each provider:
2216

23-
**Apply Migrations**
24-
25-
`dotnet ef database update -- "{connection string}"`
17+
```cmd
18+
dotnet ef migrations add <migration-name>
19+
```

src/VirtoCommerce.ContentModule.Data.SqlServer/VirtoCommerce.ContentModule.Data.SqlServer.csproj

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[8.0.11,9)">
8+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.1">
99
<PrivateAssets>all</PrivateAssets>
10-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
10+
<IncludeAssets>runtime; build; native; analyzers; buildtransitive</IncludeAssets>
1111
</PackageReference>
12-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
13-
<PrivateAssets>all</PrivateAssets>
14-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15-
</PackageReference>
16-
<PackageReference Include="VirtoCommerce.Platform.Data.SqlServer" Version="3.919.0" />
12+
13+
<PackageReference Include="VirtoCommerce.Platform.Data.SqlServer" Version="3.1002.0" />
1714
</ItemGroup>
1815
<ItemGroup>
1916
<ProjectReference Include="..\VirtoCommerce.ContentModule.Data\VirtoCommerce.ContentModule.Data.csproj" />

src/VirtoCommerce.ContentModule.Data/VirtoCommerce.ContentModule.Data.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<IsPackable>true</IsPackable>
55
<noWarn>1591</noWarn>
66
<PublishRepositoryUrl>true</PublishRepositoryUrl>
@@ -9,11 +9,11 @@
99
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
13-
<PackageReference Include="VirtoCommerce.Platform.Data" Version="3.919.0" />
14-
<PackageReference Include="VirtoCommerce.Platform.Hangfire" Version="3.919.0" />
15-
<PackageReference Include="VirtoCommerce.StoreModule.Core" Version="3.823.0" />
16-
<PackageReference Include="YamlDotNet" Version="16.1.3" />
12+
13+
<PackageReference Include="VirtoCommerce.Platform.Data" Version="3.1002.0" />
14+
<PackageReference Include="VirtoCommerce.Platform.Hangfire" Version="3.1002.0" />
15+
<PackageReference Include="VirtoCommerce.StoreModule.Core" Version="3.1000.0" />
16+
<PackageReference Include="YamlDotNet" Version="16.3.0" />
1717
</ItemGroup>
1818
<ItemGroup>
1919
<ProjectReference Include="..\VirtoCommerce.ContentModule.Core\VirtoCommerce.ContentModule.Core.csproj" />

0 commit comments

Comments
 (0)