Skip to content

nemi-chand/Nemi.Extensions.Configuration.Yaml

Repository files navigation

Nemi.Extensions.Configuration.Yaml

YAML extension for ASP.NET Core Configuration

NuGet Package

Nuget Package : https://www.nuget.org/packages/Nemi.Extensions.Configuration.Yaml

Install-Package Nemi.Extensions.Configuration.Yaml

.NET CLI

dotnet add package Nemi.Extensions.Configuration.Yaml

Usages

add AddYamlFile method in startup class

   public Startup(IHostingEnvironment env)
	{
		var builder =new ConfigurationBuilder();
		builder.SetBasePath(env.ContentRootPath);
		builder.AddYamlFile("config.yaml",optional: false);

		Configuration = builder.Build();
	}

About

YAML file provider for accessing configuration files. YAML extension for https://github.com/aspnet/configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages