|
4 | 4 | logs and sends them to an OTLP (gRPC or HTTP) endpoint.</Description> |
5 | 5 | <VersionPrefix>3.0.0</VersionPrefix> |
6 | 6 | <Authors>Serilog Contributors</Authors> |
7 | | - <TargetFrameworks>net462;netstandard2.0;net6.0</TargetFrameworks> |
| 7 | + <!-- .NET Framework version targeting is frozen at these two TFMs. --> |
| 8 | + <TargetFrameworks Condition=" '$(OS)' == 'Windows_NT'">net471;net462</TargetFrameworks> |
| 9 | + <!-- Policy is to trim TFM-specific builds to `netstandard2.0`, `net6.0`, |
| 10 | + all active LTS versions, and optionally the latest RTM version, when releasing new |
| 11 | + major Serilog versions. --> |
| 12 | + <TargetFrameworks>$(TargetFrameworks);net8.0;net6.0;netstandard2.0</TargetFrameworks> |
8 | 13 | <PackageTags>serilog;sink;opentelemetry</PackageTags> |
9 | 14 | <PackageIcon>serilog-sink-nuget.png</PackageIcon> |
10 | 15 | <PackageProjectUrl>https://github.com/serilog/serilog-sinks-opentelemetry</PackageProjectUrl> |
|
15 | 20 | <RootNamespace>Serilog</RootNamespace> |
16 | 21 | <PackageReadmeFile>README.md</PackageReadmeFile> |
17 | 22 | <LangVersion>12</LangVersion> |
| 23 | + <NoWarn>CS8981</NoWarn> |
18 | 24 | </PropertyGroup> |
19 | | - |
| 25 | + |
20 | 26 | <PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' "> |
21 | 27 | <DefineConstants>$(DefineConstants);FEATURE_CWT_ADDORUPDATE;FEATURE_ACTIVITY;FEATURE_HALF;FEATURE_DATE_AND_TIME_ONLY;FEATURE_SYNC_HTTP_SEND;FEATURE_SOCKETS_HTTP_HANDLER</DefineConstants> |
22 | 28 | </PropertyGroup> |
| 29 | + |
| 30 | + <PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' "> |
| 31 | + <DefineConstants>$(DefineConstants);FEATURE_CWT_ADDORUPDATE;FEATURE_ACTIVITY;FEATURE_HALF;FEATURE_DATE_AND_TIME_ONLY;FEATURE_SYNC_HTTP_SEND;FEATURE_SOCKETS_HTTP_HANDLER</DefineConstants> |
| 32 | + </PropertyGroup> |
23 | 33 |
|
24 | 34 | <ItemGroup> |
25 | 35 | <None Include="../../assets/serilog-sink-nuget.png" Pack="true" Visible="false" PackagePath="/" /> |
26 | 36 | <None Include="../../README.md" Pack="true" Visible="false" PackagePath="/" /> |
27 | 37 | <PackageReference Include="Google.Protobuf" Version="3.26.1" /> |
28 | 38 | <PackageReference Include="Grpc.Net.Client" Version="2.62.0" /> |
29 | | - <PackageReference Include="Serilog" Version="4.0.0-*" /> |
| 39 | + <PackageReference Include="Serilog" Version="4.0.0" /> |
30 | 40 | </ItemGroup> |
31 | 41 | </Project> |
0 commit comments