Skip to content

Commit 6e01ea9

Browse files
blankensteinerdjluck
authored andcommitted
Add .NET Standard 2.1 as a target (#22)
Adding .NET standard 2.1 as a target. This enables using prometheus-net.DotNetStats in projects built for .NET core 2.1 but running on .NET core 2.2+.
1 parent 11f94b1 commit 6e01ea9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/prometheus-net.DotNetRuntime/prometheus-net.DotNetRuntime.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@
2424
<PackageLicense>https://github.com/djluck/prometheus-net.DotNetRuntime/blob/master/LICENSE.txt</PackageLicense>
2525
<Configurations>ReleaseV2;DebugV2;DebugV3;ReleaseV3</Configurations>
2626
<Platforms>AnyCPU</Platforms>
27-
<TargetFrameworks>netcoreapp2.2;netcoreapp3.0</TargetFrameworks>
27+
<TargetFrameworks>netcoreapp2.2;netcoreapp3.0;netstandard2.1</TargetFrameworks>
2828
<LangVersion>8</LangVersion>
2929
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3030
<NoWarn>1701;1702;CS1591;</NoWarn>
3131
</PropertyGroup>
3232

33+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
34+
<PackageReference Include="System.Collections.Immutable" Version="1.6.0" />
35+
</ItemGroup>
36+
3337
<PropertyGroup Condition=" $(Configuration.StartsWith('Release')) ">
3438
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
3539
</PropertyGroup>

0 commit comments

Comments
 (0)