Skip to content

Commit a05924a

Browse files
committed
updated the sample to target both net5, net6
1 parent fab8ca1 commit a05924a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

samples/AesSample/AesSample.csproj

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
66
</PropertyGroup>
77

8-
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.1" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.1" />
11-
</ItemGroup>
8+
<ItemGroup Condition="('$(TargetFramework)' == 'net5.0')">
9+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[5,)" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="[5,)" />
11+
</ItemGroup>
12+
<ItemGroup Condition="('$(TargetFramework)' == 'net6.0')">
13+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[6,)" />
14+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="[6,)" />
15+
</ItemGroup>
1216

1317
<ItemGroup>
1418
<ProjectReference Include="..\..\src\EntityFrameworkCore.DataEncryption\EntityFrameworkCore.DataEncryption.csproj" />

0 commit comments

Comments
 (0)