Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Upgrade to .netcore5.0 (#28)
Browse files Browse the repository at this point in the history
* Upgrade to .netcore5.0

* updated github action
  • Loading branch information
MindFlavor authored Apr 3, 2021
1 parent 214d49f commit e0eed83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Counters/CustomCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()}";
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions MindFlavor.SQLServerExporter.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>netcoreapp5.0</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<Version>1.1.3.0</Version>
<Version>1.1.4.0</Version>
<Authors>Francesco Cogno</Authors>
<Copyright>Apache License Version 2.0</Copyright>
<PackageLicenseUrl>https://raw.githubusercontent.com/MindFlavor/prometheus_sql_server_exporter/master/LICENSE</PackageLicenseUrl>
Expand All @@ -15,14 +15,14 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Data.SqlClient" Version="4.8.1" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="embed\PerformanceCountersMapping.csv" />
<EmbeddedResource Include="embed\sql\generic\*.sql" />
<EmbeddedResource Include="embed\sql\11\0\*.sql" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
</ItemGroup>

</Project>

0 comments on commit e0eed83

Please sign in to comment.