Skip to content

Commit

Permalink
chore(deps): centralize ME versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
skwasjer committed Nov 25, 2023
1 parent e1a60b0 commit cbdde6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
7 changes: 7 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>

<PropertyGroup>
<!-- Microsoft.Extensions.* -->
<PackageVersion_Microsoft_Extensions>8.0.0</PackageVersion_Microsoft_Extensions>
<PackageVersion_Microsoft_Extensions Condition="'$(TargetFramework)'=='net6.0'">6.0.0</PackageVersion_Microsoft_Extensions>
<PackageVersion_Microsoft_Extensions Condition="$(TargetFramework.StartsWith('netstandard2')) Or '$(TargetFramework)'=='net5.0'">5.0.0</PackageVersion_Microsoft_Extensions>
</PropertyGroup>

</Project>
16 changes: 3 additions & 13 deletions test/Rebus.Correlate.Tests/Rebus.Correlate.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,9 @@
<PackageReference Include="Rebus" Version="6.6.5" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net8.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net5.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="$(PackageVersion_Microsoft_Extensions)" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(PackageVersion_Microsoft_Extensions)" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit cbdde6a

Please sign in to comment.