Skip to content

Commit 00f712d

Browse files
authored
Merge pull request #196 from prom-client-net/upd-tfm
Update target frameworks
2 parents 0a1d56b + 52debbf commit 00f712d

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

.github/workflows/build-win.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
dotnet-version: |
2424
6.0.x
2525
8.0.x
26+
10.0.x
2627
2728
- name: Run tests
2829
run: dotnet test -c Release -p:CollectCoverage=false

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
dotnet-version: |
2323
6.0.x
2424
8.0.x
25+
10.0.x
2526
2627
- name: Build
2728
run: dotnet build -c Release
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net462;netstandard2.0;net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net462;netstandard2.0;net8.0;net10.0</TargetFrameworks>
44
<Description>Dependency Injection extensions for Prometheus.Client</Description>
55
<RepositoryUrl>https://github.com/prom-client-net/prom-client-dependencyinjection</RepositoryUrl>
66
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@@ -9,9 +9,9 @@
99
<PackageReference Include="Prometheus.Client" Version="6.1.0" />
1010
<PackageReference Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'netstandard2.0'"
1111
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.32" />
12-
<PackageReference Condition="'$(TargetFramework)' == 'net6.0'"
13-
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
1412
<PackageReference Condition="'$(TargetFramework)' == 'net8.0'"
1513
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
14+
<PackageReference Condition="'$(TargetFramework)' == 'net10.0'"
15+
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.0" />
1616
</ItemGroup>
1717
</Project>

tests/Prometheus.Client.DependencyInjection.Tests.csproj

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(OS)' == 'Unix'">net6.0;net8.0</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(OS)' != 'Unix'">net462;net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks Condition="'$(OS)' == 'Unix'">net8.0;net10.0</TargetFrameworks>
4+
<TargetFrameworks Condition="'$(OS)' != 'Unix'">net462;net8.0;net10.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<NoWarn>$(NoWarn);CS0618</NoWarn>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
10-
<PackageReference Include="xunit" Version="2.9.3" />
11-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.*">
12-
<PrivateAssets>all</PrivateAssets>
13-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
14-
</PackageReference>
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1510
<PackageReference Include="coverlet.collector" Version="6.0.4">
1611
<PrivateAssets>all</PrivateAssets>
1712
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@@ -20,7 +15,21 @@
2015
<PrivateAssets>all</PrivateAssets>
2116
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2217
</PackageReference>
23-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
18+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
19+
</ItemGroup>
20+
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
21+
<PackageReference Include="xunit" Version="2.9.3" />
22+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.*">
23+
<PrivateAssets>all</PrivateAssets>
24+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
25+
</PackageReference>
26+
</ItemGroup>
27+
<ItemGroup Condition="'$(TargetFramework)' != 'net462'">
28+
<PackageReference Include="xunit.v3" Version="3.2.0" />
29+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
30+
<PrivateAssets>all</PrivateAssets>
31+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
32+
</PackageReference>
2433
</ItemGroup>
2534
<ItemGroup>
2635
<ProjectReference Include="..\src\Prometheus.Client.DependencyInjection.csproj" />

0 commit comments

Comments
 (0)