修改项目文件支持netstandart2.0和EFCORE3.1

This commit is contained in:
falcon 2019-12-13 11:20:53 +08:00
parent a232e57413
commit c8c2e43e7a

View File

@ -15,8 +15,17 @@
<ItemGroup>
<PackageReference Include="Microsoft.Data.SqlClient" Version="1.1.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.2.6" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0" />
</ItemGroup>
</Project>