From e0eed8338860f504d8eb74243e48863f30eca1cd Mon Sep 17 00:00:00 2001 From: Francesco Cogno Date: Sat, 3 Apr 2021 20:42:38 +0200 Subject: [PATCH] Upgrade to .netcore5.0 (#28) * Upgrade to .netcore5.0 * updated github action --- .github/workflows/dotnet-core.yml | 2 +- Counters/CustomCounter.cs | 2 +- MindFlavor.SQLServerExporter.csproj | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index 347cb80..8fe0b10 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -16,7 +16,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.301 + dotnet-version: 5.0.x - name: Install dependencies run: dotnet restore - name: Build diff --git a/Counters/CustomCounter.cs b/Counters/CustomCounter.cs index a53fa79..594969b 100644 --- a/Counters/CustomCounter.cs +++ b/Counters/CustomCounter.cs @@ -63,7 +63,7 @@ public string QueryAndSerializeData() //sb.Append(GenerateHeader()); sb.Append(sbCustomCounter); - return sb.ToString(); + return $"# HELP {Configuration.HelpText}\n# TYPE {Configuration.Name} {Configuration.CounterType}\n{sb.ToString()}"; } } } diff --git a/MindFlavor.SQLServerExporter.csproj b/MindFlavor.SQLServerExporter.csproj index b61b4cf..8eb8698 100644 --- a/MindFlavor.SQLServerExporter.csproj +++ b/MindFlavor.SQLServerExporter.csproj @@ -1,9 +1,9 @@ - netcoreapp3.1 + netcoreapp5.0 InProcess - 1.1.3.0 + 1.1.4.0 Francesco Cogno Apache License Version 2.0 https://raw.githubusercontent.com/MindFlavor/prometheus_sql_server_exporter/master/LICENSE @@ -15,14 +15,14 @@ enable - - - - + + + +