Skip to content

Commit f0f17ce

Browse files
Fixing Merge Issues
1 parent be7e4b7 commit f0f17ce

5 files changed

Lines changed: 49 additions & 34 deletions

File tree

Directory.Build.props

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<Project>
2-
<!-- Shared package refs -->
2+
<PropertyGroup>
3+
<!-- Suppress NU1507 (multiple package sources with CPM) -->
4+
<NoWarn>$(NoWarn);NU1507;MSTEST0001</NoWarn>
5+
<WarningsNotAsErrors>$(WarningsNotAsErrors);MSTEST0001</WarningsNotAsErrors>
6+
</PropertyGroup>
37
<ItemGroup>
4-
<!-- NBGV drives versions; PrivateAssets=all keeps it out of consumers -->
58
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" />
6-
<!-- SourceLink for GitHub -->
79
<PackageReference Include="Microsoft.SourceLink.GitHub"/>
810
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" />
911
</ItemGroup>
@@ -46,9 +48,4 @@
4648
<!-- Primary target: .NET 10 (next LTS), with .NET 9 for current support, .NET 8 for compatibility -->
4749
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
4850
</PropertyGroup>
49-
50-
<!-- Suppress common warnings -->
51-
<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
52-
<NoWarn>$(NoWarn);MSTEST0001</NoWarn>
53-
</PropertyGroup>
5451
</Project>

Directory.Packages.props

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project>
2-
<!-- Enable Central Package Management -->
3-
<PropertyGroup>
4-
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5-
<!-- Suppress NuGet version constraint warnings -->
6-
<NoWarn>$(NoWarn);NU1608</NoWarn>
7-
</PropertyGroup>
8-
2+
<!-- Enable Central Package Management -->
3+
<PropertyGroup>
4+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5+
<!-- Suppress NuGet version constraint warnings -->
6+
<NoWarn>$(NoWarn);NU1608</NoWarn>
7+
</PropertyGroup>
8+
99
<!-- Common packages for all frameworks -->
1010
<ItemGroup>
1111
<!-- Core Application Dependencies -->
@@ -33,19 +33,21 @@
3333
<!-- Benchmarking -->
3434
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
3535
</ItemGroup>
36-
36+
3737
<!-- .NET 8 specific packages (compatibility) -->
3838
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
39-
<!-- JsonCraft.JsonPath doesn't support .NET 8 -->
39+
<PackageVersion Include="Microsoft.AspNetCore.JsonPatch" Version="8.0.23" />
4040
</ItemGroup>
41-
41+
4242
<!-- .NET 9+ specific packages -->
4343
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0' OR '$(TargetFramework)' == 'net10.0'">
4444
<PackageVersion Include="JsonCraft.JsonPath" Version="1.0.0" />
45+
<PackageVersion Include="Microsoft.AspNetCore.JsonPatch" Version="9.0.12" />
4546
</ItemGroup>
46-
47+
4748
<!-- .NET 10 specific packages (primary target) -->
4849
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
49-
<!-- Add .NET 10 specific package versions here if needed -->
50+
<PackageVersion Include="Microsoft.AspNetCore.JsonPatch" Version="10.0.2" />
51+
<PackageVersion Include="JsonCraft.JsonPath" Version="1.1.0" />
5052
</ItemGroup>
5153
</Project>

test/Hyperbee.Json.Benchmark/Helpers/Config.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using BenchmarkDotNet.Columns;
22
using BenchmarkDotNet.Configs;
33
using BenchmarkDotNet.Diagnosers;
4+
using BenchmarkDotNet.Environments;
45
using BenchmarkDotNet.Jobs;
56
using BenchmarkDotNet.Loggers;
67
using BenchmarkDotNet.Reports;
@@ -12,7 +13,18 @@ public class Config : ManualConfig
1213
{
1314
public Config()
1415
{
15-
AddJob( Job.ShortRun );
16+
AddJob( Job.ShortRun
17+
.WithRuntime( CoreRuntime.Core90 )
18+
.WithId( ".NET 8" ) );
19+
20+
AddJob( Job.ShortRun
21+
.WithRuntime( CoreRuntime.Core90 )
22+
.WithId( ".NET 9" ) );
23+
24+
AddJob( Job.ShortRun
25+
.WithRuntime( CoreRuntime.Core10_0 )
26+
.WithId( ".NET 10" ) );
27+
1628
AddValidator( JitOptimizationsValidator.DontFailOnError );
1729
AddLogger( ConsoleLogger.Default );
1830
AddColumnProvider(

test/Hyperbee.Json.Benchmark/Hyperbee.Json.Benchmark.csproj

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

3-
<PropertyGroup>
4-
<!-- Override to single target for executables -->
5-
<TargetFramework>net10.0</TargetFramework>
6-
<OutputType>Exe</OutputType>
7-
<IsPackable>false</IsPackable>
8-
</PropertyGroup>
3+
<PropertyGroup>
4+
<!-- Override to single target for executables -->
5+
<TargetFramework>net10.0</TargetFramework>
6+
<OutputType>Exe</OutputType>
7+
<IsPackable>false</IsPackable>
8+
</PropertyGroup>
99

1010
<ItemGroup>
1111
<Compile Remove="benchmark\**" />
@@ -16,7 +16,7 @@
1616
<ItemGroup>
1717
<PackageReference Include="BenchmarkDotNet" />
1818
<PackageReference Include="JsonCons.JsonPath" />
19-
<PackageReference Include="JsonCraft.JsonPath" Condition="'$(TargetFramework)' == 'net10.0'" />
19+
<PackageReference Include="JsonCraft.JsonPath"/>
2020
<PackageReference Include="JsonPatch.Net" />
2121
<PackageReference Include="JsonPath.Net" />
2222
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" />
@@ -25,6 +25,11 @@
2525
<PackageReference Update="Nerdbank.GitVersioning" />
2626
</ItemGroup>
2727

28+
<!-- JsonCraft.JsonPath is only available for .NET 9.0 and later -->
29+
<ItemGroup Condition="'$(TargetFramework)' != 'net8.0'">
30+
<PackageReference Include="JsonCraft.JsonPath" />
31+
</ItemGroup>
32+
2833
<ItemGroup>
2934
<ProjectReference Include="..\..\src\Hyperbee.Json\Hyperbee.Json.csproj" />
3035
</ItemGroup>

test/Hyperbee.Json.Tests/Hyperbee.Json.Tests.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<!-- Inherits net10.0;net9.0;net8.0 from Directory.Build.props -->
4-
<IsPackable>false</IsPackable>
5-
<IsTestProject>true</IsTestProject>
6-
<RootNamespace>Hyperbee.Json.Tests</RootNamespace>
7-
</PropertyGroup>
2+
<PropertyGroup>
3+
<IsPackable>false</IsPackable>
4+
<IsTestProject>true</IsTestProject>
5+
<RootNamespace>Hyperbee.Json.Tests</RootNamespace>
6+
</PropertyGroup>
87
<ItemGroup>
98
<EmbeddedResource Include="TestSupport\Json\BookStore.json" />
109
</ItemGroup>

0 commit comments

Comments
 (0)