|
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | 4 | <Description>Serilog support for .NET Core logging in hosted services</Description> |
5 | | - <VersionPrefix>5.1.0</VersionPrefix> |
| 5 | + <!-- This must match the major and minor components of the referenced Microsoft.Extensions.Logging package. --> |
| 6 | + <VersionPrefix>7.0.0</VersionPrefix> |
6 | 7 | <Authors>Microsoft;Serilog Contributors</Authors> |
7 | | - <TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks> |
| 8 | + <!-- These must match the Dependencies tab in https://www.nuget.org/packages/microsoft.extensions.hosting at |
| 9 | + the target version. --> |
| 10 | + <TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks> |
8 | 11 | <LangVersion>8</LangVersion> |
9 | 12 | <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
10 | 13 | <GenerateDocumentationFile>true</GenerateDocumentationFile> |
11 | | - <AssemblyName>Serilog.Extensions.Hosting</AssemblyName> |
12 | 14 | <AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile> |
13 | 15 | <SignAssembly>true</SignAssembly> |
14 | 16 | <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> |
15 | | - <PackageId>Serilog.Extensions.Hosting</PackageId> |
16 | 17 | <PackageTags>serilog;aspnet;aspnetcore;hosting</PackageTags> |
17 | 18 | <PackageIcon>icon.png</PackageIcon> |
18 | 19 | <PackageProjectUrl>https://github.com/serilog/serilog-extensions-hosting</PackageProjectUrl> |
|
23 | 24 | <RootNamespace>Serilog</RootNamespace> |
24 | 25 | </PropertyGroup> |
25 | 26 |
|
26 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> |
| 27 | + <PropertyGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0' "> |
27 | 28 | <DefineConstants>$(DefineConstants);NO_RELOADABLE_LOGGER</DefineConstants> |
28 | 29 | </PropertyGroup> |
29 | 30 |
|
30 | 31 | <ItemGroup> |
31 | | - <PackageReference Include="Serilog" Version="2.10.0" /> |
32 | | - <PackageReference Include="Serilog.Extensions.Logging" Version="3.1.0" /> |
33 | | - <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.1.8" /> |
34 | | - <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.8" /> |
35 | | - <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.8" /> |
| 32 | + <None Include="..\..\assets\icon.png" Pack="true" Visible="false" PackagePath="" /> |
| 33 | + <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" /> |
| 34 | + <PackageReference Include="Serilog" Version="2.12.0" /> |
36 | 35 | </ItemGroup> |
37 | 36 |
|
38 | 37 | <ItemGroup> |
39 | | - <None Include="..\..\assets\icon.png" Pack="true" Visible="false" PackagePath="" /> |
40 | | - <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" /> |
| 38 | + <!-- The versions of all references in this group must match the major and minor components of the package version prefix. --> |
| 39 | + <PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0-dev-*" /> |
| 40 | + <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="7.0.0" /> |
| 41 | + <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" /> |
| 42 | + <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" /> |
41 | 43 | </ItemGroup> |
42 | 44 | </Project> |
0 commit comments