Skip to content

Commit ff7643e

Browse files
committed
Added package group for net7.0 in projects
1 parent 20a628b commit ff7643e

File tree

4 files changed

+43
-5
lines changed

4 files changed

+43
-5
lines changed

BenchmarkPostgreSql/BenchmarkPostgreSql.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="BenchmarkDotNet" Version="0.13.2" />
1212
<PackageReference Include="BenchmarkDotNet.Annotations" Version="0.13.2" />
13-
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.0" />
13+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.0" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

DataLayer/DataLayer.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net6.0;net7.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1'">
@@ -20,4 +20,12 @@
2020
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2121
</ItemGroup>
2222

23+
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0'">
24+
<PackageReference Include="GenericServices.StatusGeneric" Version="1.2.0" />
25+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.0" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
27+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.0" />
28+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
29+
</ItemGroup>
30+
2331
</Project>

Test/Test.csproj

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
@@ -30,6 +30,18 @@
3030
</PackageReference>
3131
</ItemGroup>
3232

33+
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0'">
34+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.0" />
35+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.0" />
36+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
37+
<PackageReference Include="RandomNameGeneratorLibrary" Version="1.2.2" />
38+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
39+
<PackageReference Include="xunit" Version="2.4.2" />
40+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
41+
<PrivateAssets>all</PrivateAssets>
42+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
43+
</PackageReference>
44+
</ItemGroup>
3345

3446
<ItemGroup>
3547
<ProjectReference Include="..\DataLayer\DataLayer.csproj" />

TestSupport/TestSupport.csproj

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net6.0;net7.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
</PropertyGroup>
77

@@ -41,6 +41,24 @@
4141
<PackageReference Include="xunit.core" Version="2.4.2" />
4242
</ItemGroup>
4343

44+
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0'">
45+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.0" />
46+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.0" />
47+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.0" />
48+
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos" Version="7.0.0">
49+
<PrivateAssets>all</PrivateAssets>
50+
</PackageReference>
51+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.0" />
52+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
53+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
54+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
55+
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.1" />
56+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.0" />
57+
<PackageReference Include="Respawn" Version="4.0.0" />
58+
<PackageReference Include="xunit.assert" Version="2.4.2" />
59+
<PackageReference Include="xunit.core" Version="2.4.2" />
60+
</ItemGroup>
61+
4462
<PropertyGroup>
4563
<PackageId>EfCore.TestSupport</PackageId>
4664
<PackageVersion>5.2.2</PackageVersion>

0 commit comments

Comments
 (0)