Skip to content

Commit

Permalink
Added .NET 6 distinguishing between different frameworks (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Oct 19, 2023
1 parent 868303a commit 117b2c8
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/net/Common/Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Authors>MASES s.r.l.</Authors>
<Company>MASES s.r.l.</Company>
<Version>0.10.0.0</Version>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
3 changes: 2 additions & 1 deletion src/net/KEFCore.SerDes/KEFCore.SerDes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.23" PrivateAssets="none" Condition="'$(TargetFramework)' == 'net6.0'"/>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" PrivateAssets="none" Condition="'$(TargetFramework)' == 'net7.0'"/>
<PackageReference Include="MASES.KNet" Version="2.2.0">
<IncludeAssets>All</IncludeAssets>
<PrivateAssets>None</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" PrivateAssets="none" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ protected override Expression VisitMethodCall(MethodCallExpression methodCallExp

return base.VisitMethodCall(methodCallExpression);
}

#if NET6_0
protected override ShapedQueryExpression CreateShapedQueryExpression(Type elementType)
{
throw new NotImplementedException();
}
#endif
protected override ShapedQueryExpression CreateShapedQueryExpression(IEntityType entityType)
=> CreateShapedQueryExpressionStatic(entityType);

Expand Down
11 changes: 11 additions & 0 deletions test/Common/Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@
<None Include="..\..\src\net\Common\JCOB128x128.png" Pack="true" PackagePath="" />
<None Include="..\..\src\net\Common\efcorekafka.snk" Link="efcorekafka.snk" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.23" PrivateAssets="none" Condition="'$(TargetFramework)' == 'net6.0'"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.23" Condition="'$(TargetFramework)' == 'net6.0'"/>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" PrivateAssets="none" Condition="'$(TargetFramework)' == 'net7.0'"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.12" Condition="'$(TargetFramework)' == 'net7.0'"/>
<ProjectReference Include="..\..\src\net\KEFCore\KEFCore.csproj" />
<ProjectReference Include="..\..\src\net\KEFCore.SerDes.Avro\KEFCore.SerDes.Avro.csproj" />

<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
<Compile Include="..\Common\ProgramConfig.cs" Link="ProgramConfig.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\net\KEFCore.SerDes.Avro\KEFCore.SerDes.Avro.csproj" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.12" />
</ItemGroup>

<ItemGroup>
<None Update="Benchmark.Avro.Test.InMemory.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
1 change: 0 additions & 1 deletion test/KEFCore.Benchmark.Avro.Test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ static void Main(string[] args)
ApplicationId = config.ApplicationId,
DbName = databaseName,
StreamsConfig = streamConfig,

})
{
if (config.UseAvro)
Expand Down
5 changes: 0 additions & 5 deletions test/KEFCore.Benchmark.Test/KEFCore.Benchmark.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
<Compile Include="..\Common\ProgramConfig.cs" Link="ProgramConfig.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.12" />
</ItemGroup>

<ItemGroup>
<None Update="BenchmarkTest.InMemory.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
5 changes: 0 additions & 5 deletions test/KEFCore.Complex.Test/KEFCore.Complex.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
<Compile Include="..\Common\ProgramConfig.cs" Link="ProgramConfig.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.12" />
</ItemGroup>

<ItemGroup>
<None Update="ComplexTest.KNetReplicator.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
6 changes: 0 additions & 6 deletions test/KEFCore.Extractor.Test/KEFCore.Extractor.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
<Compile Include="..\Common\ProgramConfig.cs" Link="ProgramConfig.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\net\KEFCore.SerDes.Avro\KEFCore.SerDes.Avro.csproj" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.12" />
</ItemGroup>

<ItemGroup>
<None Update="Extractor.Test.Blog.Avro.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
9 changes: 0 additions & 9 deletions test/KEFCore.Test/KEFCore.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
<Compile Include="..\Common\ProgramConfig.cs" Link="ProgramConfig.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.12" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\net\KEFCore.SerDes.Avro\KEFCore.SerDes.Avro.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="InMemoryTest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down

0 comments on commit 117b2c8

Please sign in to comment.