mirror of
https://github.com/rgl/nexus-vagrant.git
synced 2026-09-30 00:31:11 +02:00
upgrade to serilog 3.0.1
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user