Skip to content

Commit f4c294e

Browse files
k0st1xMrZoidberg
andauthored
net9 support (#67)
Co-authored-by: Mikhail Merkulov <[email protected]>
1 parent 6fb72fe commit f4c294e

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
6.0.x
3232
7.0.x
3333
8.0.x
34+
9.0.x
3435
- name: 'Fix permissions'
3536
run: chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle.sh && chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle_nolist.sh
3637
shell: bash

.github/workflows/master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
6.0.x
3131
7.0.x
3232
8.0.x
33+
9.0.x
3334
- name: 'Fix permissions'
3435
run: chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle.sh && chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle_nolist.sh
3536
shell: bash

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
6.0.x
2626
7.0.x
2727
8.0.x
28+
9.0.x
2829
- name: 'Fix permissions'
2930
run: chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle.sh && chmod +x ./Tests/VaultSharp.Extensions.Configuration.Test/approle_nolist.sh
3031
shell: bash

Source/VaultSharp.Extensions.Configuration/VaultSharp.Extensions.Configuration.csproj

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PackageId>VaultSharp.Extensions.Configuration</PackageId>
88
<PackageLicenseExpression>MIT</PackageLicenseExpression>
99
<Nullable>enable</Nullable>
10-
<TargetFrameworks>net6.0;net7.0;net8.0;netstandard2.0;netstandard2.1</TargetFrameworks>
10+
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;netstandard2.0;netstandard2.1</TargetFrameworks>
1111
<IncludeSymbols>true</IncludeSymbols>
1212
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1313
<Copyright>Copyright 2025 © Mykhaylo Merkulov. All rights Reserved</Copyright>
@@ -17,7 +17,7 @@
1717
<Product>VaultSharp.Extensions.Configuration</Product>
1818
<Description>
1919
Configuration extension that allows you to use Hashicorp Vault as a configuration backend.
20-
This library is built with .NET Standard 2.0, 2.1, .NET 6, .NET 7, .NET 8
20+
This library is built with .NET Standard 2.0, 2.1, .NET 6, .NET 7, .NET 8, .NET 9
2121
</Description>
2222
<PackageTags>Vault;Configuration;Data protection;Hashicorp</PackageTags>
2323
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -105,6 +105,17 @@
105105
</PackageReference>
106106
</ItemGroup>
107107

108+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
109+
<PackageReference Include="System.Text.Json" Version="9.0.4" />
110+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.4" />
111+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.4" />
112+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.4" />
113+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0">
114+
<PrivateAssets>all</PrivateAssets>
115+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
116+
</PackageReference>
117+
</ItemGroup>
118+
108119
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
109120
<AssemblyTitle>VaultSharp configuration extensions .NET Standard 2.0</AssemblyTitle>
110121
</PropertyGroup>
@@ -125,6 +136,10 @@
125136
<AssemblyTitle>VaultSharp configuration extensions .NET 8</AssemblyTitle>
126137
</PropertyGroup>
127138

139+
<PropertyGroup Condition="'$(TargetFramework)'=='net9.0'">
140+
<AssemblyTitle>VaultSharp configuration extensions .NET 9</AssemblyTitle>
141+
</PropertyGroup>
142+
128143
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0|AnyCPU'">
129144
<WarningLevel>5</WarningLevel>
130145
</PropertyGroup>

Tests/VaultSharp.Extensions.Configuration.Test/VaultSharp.Extensions.Configuration.Test.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@
105105
</PackageReference>
106106
</ItemGroup>
107107

108+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
109+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.4" />
110+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0">
111+
<PrivateAssets>all</PrivateAssets>
112+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
113+
</PackageReference>
114+
</ItemGroup>
115+
108116
<ItemGroup>
109117
<None Update="approle.sh">
110118
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)