Skip to content

Commit

Permalink
Also target .NET 8 to use a framework reference over a package refere…
Browse files Browse the repository at this point in the history
…nce for ASP.NET Core
  • Loading branch information
ThomasArdal committed Jun 7, 2024
1 parent ca9c7c9 commit 22cc022
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>Serilog 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.Serilog</AssemblyName>
<PackageId>Elmah.Io.AspNetCore.Serilog</PackageId>
<PackageTags>Error;Exception;Reporing;Management;Logging;ELMAH;Diagnostics;Tracing;Serilog;aspnetcore</PackageTags>
Expand Down Expand Up @@ -34,10 +34,17 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.1.34" />
<PackageReference Include="Serilog" Version="3.0.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.1.34" />
</ItemGroup>

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

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

0 comments on commit 22cc022

Please sign in to comment.