upgrade to serilog 3.0.1

This commit is contained in:
Rui Lopes 2023-07-29 06:59:16 +01:00
parent 533393eb9e
commit 15a4046fa5
1 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,7 @@ dotnet nuget list source
# create the example project. # create the example project.
# see https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-using-a-nuspec # see https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-using-a-nuspec
# see https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target # see https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target
# see https://www.nuget.org/packages/serilog/
cat >example-hello-world.csproj <<'EOF' cat >example-hello-world.csproj <<'EOF'
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
@ -59,7 +60,7 @@ cat >example-hello-world.csproj <<'EOF'
</NuspecProperties> </NuspecProperties>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Serilog" Version="2.12.0" /> <PackageReference Include="Serilog" Version="3.0.1" />
</ItemGroup> </ItemGroup>
</Project> </Project>
EOF EOF
@ -135,6 +136,7 @@ namespace Example
EOF EOF
dotnet nuget list source dotnet nuget list source
dotnet add package example-hello-world dotnet add package example-hello-world
# see https://www.nuget.org/packages/Serilog.Sinks.Console/
dotnet add package Serilog.Sinks.Console --version 4.1.0 dotnet add package Serilog.Sinks.Console --version 4.1.0
dotnet build -v=n -c=Release dotnet build -v=n -c=Release
dotnet publish -v=n -c=Release --no-build --output dist dotnet publish -v=n -c=Release --no-build --output dist