|
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | 4 | <Description>Write Serilog events to text files in plain or JSON format.</Description> |
5 | | - <VersionPrefix>5.0.1</VersionPrefix> |
| 5 | + <VersionPrefix>6.0.0</VersionPrefix> |
6 | 6 | <Authors>Serilog Contributors</Authors> |
7 | | - <TargetFrameworks>net45;netstandard1.3;netstandard2.0;netstandard2.1;net5.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 | <GenerateDocumentationFile>true</GenerateDocumentationFile> |
9 | 14 | <PackageTags>serilog;file</PackageTags> |
10 | | - <PackageIcon>images\icon.png</PackageIcon> |
| 15 | + <PackageIcon>serilog-sink-nuget.png</PackageIcon> |
11 | 16 | <PackageIconUrl>https://serilog.net/images/serilog-sink-nuget.png</PackageIconUrl> |
12 | 17 | <PackageProjectUrl>https://github.com/serilog/serilog-sinks-file</PackageProjectUrl> |
13 | 18 | <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> |
14 | 19 | <RepositoryUrl>https://github.com/serilog/serilog-sinks-file</RepositoryUrl> |
15 | 20 | <RepositoryType>git</RepositoryType> |
16 | 21 | <RootNamespace>Serilog</RootNamespace> |
17 | | - <DisableImplicitFrameworkReferences Condition=" '$(TargetFramework)' == 'netstandard1.3' ">true</DisableImplicitFrameworkReferences> |
18 | | - <EnableSourceLink Condition="'$(EnableSourceLink)' == ''">false</EnableSourceLink> |
19 | 22 | <PublishRepositoryUrl>true</PublishRepositoryUrl> |
20 | | - <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> |
21 | 23 | <IncludeSymbols>True</IncludeSymbols> |
22 | 24 | <SymbolPackageFormat>snupkg</SymbolPackageFormat> |
| 25 | + <PackageReadmeFile>README.md</PackageReadmeFile> |
23 | 26 | </PropertyGroup> |
24 | 27 |
|
25 | 28 | <ItemGroup> |
26 | | - <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" /> |
27 | | - <PackageReference Include="Serilog" Version="2.10.0" /> |
| 29 | + <PackageReference Include="Serilog" Version="4.0.0" /> |
28 | 30 | <PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="All" /> |
29 | 31 | </ItemGroup> |
30 | 32 |
|
31 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'net45' "> |
| 33 | + <PropertyGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' "> |
32 | 34 | <DefineConstants>$(DefineConstants);ATOMIC_APPEND;HRESULTS</DefineConstants> |
33 | 35 | </PropertyGroup> |
34 | 36 |
|
35 | | - <PropertyGroup Condition=" '$(TargetFramework)' != 'net45' "> |
| 37 | + <PropertyGroup Condition=" '$(TargetFrameworkIdentifier)' != '.NETFramework' "> |
36 | 38 | <DefineConstants>$(DefineConstants);OS_MUTEX</DefineConstants> |
37 | 39 | </PropertyGroup> |
38 | 40 |
|
| 41 | + <PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' "> |
| 42 | + <DefineConstants>$(DefineConstants);ENUMERABLE_MAXBY</DefineConstants> |
| 43 | + </PropertyGroup> |
| 44 | + |
| 45 | + <PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' "> |
| 46 | + <DefineConstants>$(DefineConstants);ENUMERABLE_MAXBY</DefineConstants> |
| 47 | + </PropertyGroup> |
| 48 | + |
39 | 49 | <ItemGroup> |
40 | | - <None Include="..\..\assets\serilog-sink-nuget.png" Pack="true" Visible="false" PackagePath="images\icon.png" /> |
| 50 | + <None Include="..\..\assets\serilog-sink-nuget.png" Pack="true" Visible="false" PackagePath="/" /> |
| 51 | + <None Include="..\..\README.md" Pack="true" Visible="false" PackagePath="/" /> |
41 | 52 | </ItemGroup> |
42 | 53 |
|
43 | 54 | </Project> |
0 commit comments