+
Skip to content

zgirod/dotnet-env

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows build status License: MIT NuGet version

dotnet-env

A .NET library to load environment variables from .env files. Supports .NET Core and .NET Framework

Installation

Available on NuGet

Visual Studio:

PM> Install-Package DotNetEnv

.NET Core CLI:

dotnet add package DotNetEnv

Usage

Load env file

Will automatically look for a .env file in the current directory

DotNetEnv.Env.Load();

You can also specify the path to the .env file

DotNetEnv.Env.Load("./path/to/.env");

The variables in the .env can then be accessed through the System.Environment class

System.Environment.GetEnvironmentVariable("IP")

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section.

License

This project is licensed under the MIT license. See the LICENSE file for more info.

About

A .NET library to load environment variables from .env files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载