From ee95edfea54257a1221be6a875274833c3ed08fd Mon Sep 17 00:00:00 2001 From: dudu Date: Sun, 12 Feb 2023 14:38:51 +0800 Subject: [PATCH] build: add pack.sh --- pack.sh | 9 +++++++++ .../Serilog.Extensions.Hosting.csproj | 12 +++++------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 pack.sh diff --git a/pack.sh b/pack.sh new file mode 100644 index 0000000..c577002 --- /dev/null +++ b/pack.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +[ -z $1 ] && echo "Missing version" && exit 1 + +version=$1 +project=src/Serilog.Extensions.Hosting +dotnet build -p:Version=${version-*} -c Release $project +dotnet pack $project -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --include-source -p:PackageVersion=$version -p:Version=${version-*} -o ./artifacts diff --git a/src/Serilog.Extensions.Hosting/Serilog.Extensions.Hosting.csproj b/src/Serilog.Extensions.Hosting/Serilog.Extensions.Hosting.csproj index f95bf72..cbf79ce 100644 --- a/src/Serilog.Extensions.Hosting/Serilog.Extensions.Hosting.csproj +++ b/src/Serilog.Extensions.Hosting/Serilog.Extensions.Hosting.csproj @@ -1,20 +1,18 @@  - Serilog support for .NET Core logging in hosted services - 5.0.1 - Microsoft;Serilog Contributors + Extensions for Serilog + Serilog Contributors netstandard2.0;netstandard2.1;net6.0;net7.0 latest true true - Serilog.Extensions.Hosting + Cnblogs.Serilog.Extensions ../../assets/Serilog.snk true true - Serilog.Extensions.Hosting - serilog;aspnet;aspnetcore;hosting - icon.png + Cnblogs.Serilog.Extensions + serilog https://github.com/cnblogs/cnblogs-serilog-extensions Apache-2.0 https://github.com/cnblogs/cnblogs-serilog-extensions