Skip to content

Commit 24ecc89

Browse files
authored
Merge pull request #355 from prom-client-net/add-net47
add net47 target framework
2 parents 81c8bf6 + 71d72ad commit 24ecc89

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Prometheus.Client.Abstractions/Prometheus.Client.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<RootNamespace>Prometheus.Client</RootNamespace>
4-
<TargetFrameworks>net462;netstandard2.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net47;netstandard2.0;net6.0</TargetFrameworks>
55
<Description>Abstractions for Prometheus.Client</Description>
66
<RepositoryUrl>https://github.com/prom-client-net/prom-client</RepositoryUrl>
77
</PropertyGroup>

src/Prometheus.Client/Prometheus.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net462;netstandard2.0;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net462;net47;netstandard2.0;net6.0</TargetFrameworks>
44
<Description>.NET client for Prometheus</Description>
55
<RepositoryUrl>https://github.com/prom-client-net/prom-client</RepositoryUrl>
66
</PropertyGroup>
7-
<ItemGroup Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'netstandard2.0'">
7+
<ItemGroup Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'net47' OR '$(TargetFramework)' == 'netstandard2.0'">
88
<PackageReference Include="System.Memory" Version="4.6.3" />
99
</ItemGroup>
1010
<ItemGroup>

tests/Prometheus.Client.Tests/Prometheus.Client.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks Condition="'$(OS)' == 'Unix'">net6.0;net8.0</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(OS)' != 'Unix'">net462;net6.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks Condition="'$(OS)' != 'Unix'">net462;net47;net481;net6.0;net8.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<InvariantGlobalization>true</InvariantGlobalization>
77
<NoWarn>$(NoWarn);CS0618</NoWarn>

0 commit comments

Comments
 (0)