Skip to content

Commit b8c822e

Browse files
Merge pull request #13 from patrickvecchio/develop
Added nuget details
2 parents c423bdb + b3a901b commit b8c822e

2 files changed

Lines changed: 48 additions & 4 deletions

File tree

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
5-
</PropertyGroup>
3+
<Target Name="PreparePackageReleaseNotesFromFile" BeforeTargets="GenerateNuspec">
4+
<ReadLinesFromFile File="../RELEASE-NOTES.txt" >
5+
<Output TaskParameter="Lines" ItemName="ReleaseNoteLines"/>
6+
</ReadLinesFromFile>
7+
<PropertyGroup>
8+
<PackageDescription>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/PackageDescription.txt"))</PackageDescription>
9+
<Description>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/PackageDescription.txt"))</Description>
10+
</PropertyGroup>
11+
</Target>
612

13+
<PropertyGroup>
14+
<TargetFramework>netcoreapp3.1</TargetFramework>
15+
<OutputType>library</OutputType>
16+
<PackageId>BSG.Configuration.Providers.AwsSecretsManager</PackageId>
17+
<Version>1.0.0</Version>
18+
<Authors>@patrickvecchio</Authors>
19+
<Company>Patrick R. Vecchio</Company>
20+
<RepositoryUrl>https://github.com/patrickvecchio/CustomConfigurationProviders</RepositoryUrl>
21+
<AssemblyName>BSG.$(SolutionName).$(MSBuildProjectName)</AssemblyName>
22+
<PackageProjectUrl>https://github.com/patrickvecchio/CustomConfigurationProviders</PackageProjectUrl>
23+
<PackageTags>dotnet;microsoft-extensions-configuration;aws;aws-secrets-manager</PackageTags>
24+
<PackageReadmeFile>README.md</PackageReadmeFile>
25+
</PropertyGroup>
726
<ItemGroup>
827
<PackageReference Include="AWSSDK.SecretsManager" Version="3.7.2.21" />
928
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.23" />
@@ -13,4 +32,11 @@
1332
<Folder Include="AwsSecretsManager\" />
1433
</ItemGroup>
1534

35+
<ItemGroup>
36+
<None Include="..\..\..\README.md">
37+
<Pack>True</Pack>
38+
<PackagePath>\</PackagePath>
39+
</None>
40+
</ItemGroup>
41+
1642
</Project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
This package is a custom configuration provider that can be used in startup to replace references in appsettings files to AWS Secrets Manager secrets with the secret values in the IConfigurationRoot.
2+
3+
**For example,**
4+
```
5+
"Database:AwsSecret": "/dev/db/options"
6+
```
7+
**where the AWS Secrets Manager value is**
8+
```
9+
{
10+
"timeoutMilliseconds": "5000",
11+
"maxPoolSize": "50"
12+
}
13+
```
14+
**can be turned into**
15+
```
16+
"Database:timeoutMilliseconds" "5000",
17+
"Database:maxPoolSize": "50"
18+
```

0 commit comments

Comments
 (0)