-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract json source to separate project
a separate nuget to reduce dependencies in the core project
- Loading branch information
Showing
11 changed files
with
69 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Fig | ||
{ | ||
public static class Extensions | ||
{ | ||
public static SettingsBuilder UseAppSettingsJson(this SettingsBuilder builder, string fileNameTemplate, bool required) | ||
{ | ||
builder.AddFileBasedSource(file => new AppSettingsJsonSource(file), fileNameTemplate, required); | ||
return builder; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<PackageVersion>1.2.0</PackageVersion> | ||
<Authors>Robert Friberg et al</Authors> | ||
<Copyright>Robert Friberg et al</Copyright> | ||
<Title>Fig.AppSettingsJson</Title> | ||
<Description>Fig configuration source provider for appSettins.json files</Description> | ||
<PackageProjectUrl>https://github.com/rofr/fig</PackageProjectUrl> | ||
<PackageLicenseUrl>https://github.com/rofr/fig</PackageLicenseUrl> | ||
<RepositoryUrl>https://github.com/rofr/fig</RepositoryUrl> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Fig.Core\Fig.Core.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Json" Version="4.6.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: InternalsVisibleTo("Fig.Test")] | ||
[assembly: InternalsVisibleTo("Fig.AppSettingsJson")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
nuget push Fig.Core/bin/Debug/*.nupkg -Source https://api.nuget.org/v3/index.json | ||
nuget push Fig.AppSettingsxml/bin/Debug/*.nupkg -Source https://api.nuget.org/v3/index.json | ||
|
||
configuration=$1 | ||
version=$2 | ||
|
||
echo $configuration | ||
echo $version | ||
|
||
nuget push Fig.Core/bin/$configuration/Fig.$version.nupkg -Source https://api.nuget.org/v3/index.json | ||
nuget push Fig.AppSettingsxml/bin/$configuration/Fig.AppSettingsXml.$version.nupkg -Source https://api.nuget.org/v3/index.json | ||
nuget push Fig.AppSettingsJson/bin/$configuration/Fig.AppSettingsJson.$version.nupkg -Source https://api.nuget.org/v3/index.json |