Use different logging lib version on different dotnet versions.

This commit is contained in:
Eugene Wang
2025-12-26 15:45:45 -05:00
parent 3f0e9eceb8
commit 853ccfd658
2 changed files with 10 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<!--change these in each release-->
<VersionPrefix>4.0.0.0</VersionPrefix>
<VersionSuffix>alpha.27</VersionSuffix>
<VersionSuffix>alpha.28</VersionSuffix>
<!--keep it the same until major # changes-->
<AssemblyVersion>4.0.0.0</AssemblyVersion>

View File

@@ -22,8 +22,16 @@
<ItemGroup Condition=" '$(TargetFramework)' != 'net472'">
<PackageReference Include="System.Text.Encoding.CodePages" Version="10.0.1" />
</ItemGroup>
<ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net8.0-windows' OR '$(TargetFramework)' == 'net472'">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' OR '$(TargetFramework)' == 'net9.0-windows'">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.11" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net10.0' OR '$(TargetFramework)' == 'net10.0-windows'">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.264">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>