KageKirin.Extensions.Configuration.GitConfig
0.1.0
dotnet add package KageKirin.Extensions.Configuration.GitConfig --version 0.1.0
NuGet\Install-Package KageKirin.Extensions.Configuration.GitConfig -Version 0.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KageKirin.Extensions.Configuration.GitConfig" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KageKirin.Extensions.Configuration.GitConfig" Version="0.1.0" />
<PackageReference Include="KageKirin.Extensions.Configuration.GitConfig" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KageKirin.Extensions.Configuration.GitConfig --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KageKirin.Extensions.Configuration.GitConfig, 0.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=KageKirin.Extensions.Configuration.GitConfig&version=0.1.0
#tool nuget:?package=KageKirin.Extensions.Configuration.GitConfig&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Git Configuration Provider
A ConfigurationProvider
(Microsoft.Extensions.Configuration) for .gitconfig
files,
relying on libGitSharp for the git part.
📦 NuGet
Directory.Packages.props
<Project>
<ItemGroup Label="configuration dependencies">
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="9.0.2" />
<PackageVersion Include="KageKirin.Extensions.Configuration.GitConfig" Version="1.0.0" />
</ItemGroup>
</Project>
project.csproj
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup Label="configuration dependencies">
<PackageReference Include="Microsoft.Extensions.Configuration" />
<PackageReference Include="KageKirin.Extensions.Configuration.GitConfig" />
</ItemGroup>
</Project>
⚙️ Usage
Somewhere in your application startup code:
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using KageKirin.Extensions.Configuration.GitConfig;
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
builder.Configuration.Sources.Clear();
builder.Configuration
.AddGitConfig(optional: true, reloadOnChange: true);
using IHost host = builder.Build();
await host.RunAsync();
🔧 Building and Running
🔨 Building
dotnet build
▶ Running the Unit tests
dotnet test
▶ Running the Test project
dotnet run --project GitConfigurationReader
🤝 Collaborate with My Project
Please refer to COLLABORATION.md.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- LibGit2Sharp (>= 0.31.0)
- Microsoft.Extensions.Configuration (>= 9.0.4)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.4)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.4)
- Microsoft.Extensions.FileProviders.Composite (>= 9.0.4)
- Microsoft.Extensions.FileProviders.Physical (>= 9.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
CHANGELOG.md