Skip to content

Commit

Permalink
use 7.0.0 Microsoft.Extensions* when targeting net7.0, so .NET 6 vs 7…
Browse files Browse the repository at this point in the history
… diff shows the actual difference for Extensions benchmarks, fixes dotnet/runtime#77900
  • Loading branch information
adamsitnik committed Nov 8, 2022
1 parent 6ffda8d commit 35eefc6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/benchmarks/micro/MicroBenchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,18 @@
<SystemVersion>5.0.0</SystemVersion>
</PropertyGroup>
</When>
<Otherwise>
<!-- when comparing against Full .NET Framework we are usually interested in CLR differences, so net461 belongs to this block -->
<When Condition="'$(TargetFramework)' == 'net6.0'">
<PropertyGroup>
<ExtensionsVersion>6.0.0</ExtensionsVersion>
<SystemVersion>6.0.0</SystemVersion>
</PropertyGroup>
</When>
<Otherwise>
<!-- when comparing against Full .NET Framework we are usually interested in CLR differences, so net461 belongs to this block -->
<PropertyGroup>
<ExtensionsVersion>7.0.0</ExtensionsVersion>
<SystemVersion>7.0.0</SystemVersion>
</PropertyGroup>
</Otherwise>
</Choose>
<ItemGroup>
Expand All @@ -62,7 +68,7 @@
<PackageReference Include="System.Drawing.Common" Version="$(SystemVersion)" />
<PackageReference Include="System.Formats.Cbor" Version="$(SystemVersion)" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' >= '5.0'" />
<PackageReference Include="System.IO.Pipelines" Version="$(SystemVersion)" />
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
<PackageReference Include="System.Runtime.Serialization.Json" Version="4.3.0" />
Expand Down

0 comments on commit 35eefc6

Please sign in to comment.