Skip to content

Commit

Permalink
Also target .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Jan 8, 2024
1 parent 0712c7d commit 7be1b6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>Microsoft.Extensions.Logging decorator for ASP.NET Core and elmah.io</Description>
<Authors>elmah.io</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
<AssemblyName>Elmah.Io.AspNetCore.ExtensionsLogging</AssemblyName>
<PackageId>Elmah.Io.AspNetCore.ExtensionsLogging</PackageId>
<PackageTags>Error;Exception;Reporing;Management;Logging;ELMAH;Diagnostics;Tracing;aspnetcore</PackageTags>
Expand Down Expand Up @@ -32,11 +32,15 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.32" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>An elmah.io provider for Microsoft.Extensions.Logging</Description>
<Authors>elmah.io</Authors>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
<AssemblyName>Elmah.Io.Extensions.Logging</AssemblyName>
<PackageId>Elmah.Io.Extensions.Logging</PackageId>
<PackageTags>Error;Exception;Reporting;Management;Logging;ELMAH;Diagnostics;Tracing;aspnetcore</PackageTags>
Expand Down Expand Up @@ -35,9 +35,16 @@

<ItemGroup>
<PackageReference Include="Elmah.Io.Client" Version="[5.1.71-pre,6)" />
</ItemGroup>

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

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

<ItemGroup>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
Expand Down

0 comments on commit 7be1b6d

Please sign in to comment.