Skip to content
Snippets Groups Projects
Commit e4be350e authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Fix: EF version based on target framework (coscine/issues#2087)

parent d90d4e24
No related branches found
No related tags found
1 merge request!162Fix: EF compatibility with net6.0
......@@ -9,7 +9,7 @@
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
<Company>IT Center, RWTH Aachen University</Company>
<Copyright>2021 IT Center, RWTH Aachen University</Copyright>
<Copyright>2022 IT Center, RWTH Aachen University</Copyright>
<Description>Database is a part of the Coscine group.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://git.rwth-aachen.de/coscine/backend/libraries/database</PackageProjectUrl>
......@@ -32,9 +32,12 @@
<PackageReference Include="Coscine.Configuration" Version="2.*-*" />
<PackageReference Include="LinqKit" Version="1.1.23" />
<PackageReference Include="Inflector.NetStandard" Version="1.2.2" />
<!-- Note: use newest Microsoft.EntityFrameworkCore Version for net6.0 -->
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.4" PrivateAssets="all" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.4" />
<!-- Note: use Microsoft.EntityFrameworkCore Version 3.x.x for compatibility with net461 -->
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.12" PrivateAssets="all" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.12" Condition="'$(TargetFramework)' == 'net461'" PrivateAssets="all" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.12" Condition="'$(TargetFramework)' == 'net461'" />
</ItemGroup>
<PropertyGroup>
<LangVersion>Preview</LangVersion>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment