DotNetEnv 1.1.0
See the version list below for details.
dotnet add package DotNetEnv --version 1.1.0
NuGet\Install-Package DotNetEnv -Version 1.1.0
<PackageReference Include="DotNetEnv" Version="1.1.0" />
<PackageVersion Include="DotNetEnv" Version="1.1.0" />
<PackageReference Include="DotNetEnv" />
paket add DotNetEnv --version 1.1.0
#r "nuget: DotNetEnv, 1.1.0"
#:package DotNetEnv@1.1.0
#addin nuget:?package=DotNetEnv&version=1.1.0
#tool nuget:?package=DotNetEnv&version=1.1.0
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (49)
Showing the top 5 NuGet packages that depend on DotNetEnv:
| Package | Downloads |
|---|---|
|
hexasync.infrastructure.dotnetenv
Package Description |
|
|
CLUtilitarios
access to redis for obtain user data |
|
|
Corgibytes.Freshli.Lib
Core library for collecting historical metrics about a project's dependencies |
|
|
CatConsult.EnvConfigurationProvider
A .NET Configuration Provider that offers a fluent API for loading and transforming environment variables from the OS and .env files |
|
|
pagglo_sdk
Package Description |
GitHub repositories (13)
Showing the top 13 popular GitHub repositories that depend on DotNetEnv:
| Repository | Stars |
|---|---|
|
Azure/data-api-builder
Data API builder provides modern REST and GraphQL endpoints to your Azure Databases and on-prem stores.
|
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
|
TheAxelander/OpenBudgeteer
OpenBudgeteer is a budgeting app based on the Bucket Budgeting Principle
|
|
|
streetwriters/notesnook-sync-server
Sync server for Notesnook (self-hosting in alpha)
|
|
|
spark-dotnet/framework
Build production ready, full-stack web applications fast without sweating the small stuff.
|
|
|
cxfksword/jellyfin-plugin-danmu
jellyfin弹幕自动下载插件
|
|
|
mehdihadeli/food-delivery-modular-monolith
🌭 A practical and imaginary food and grocery delivery modular monolith, built with .Net 8, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
|
mehdihadeli/vertical-slice-api-template
🍰 An asp.net core template based on .Net 9, Vertical Slice Architecture, CQRS, Minimal APIs, OpenTelemetry, API Versioning and OpenAPI.
|
|
|
sayedihashimi/template-sample
|
|
|
lminlone/repliqate
A modular Docker container/volume backup solution
|
|
|
Brick-Abode/pldotnet
Build PostgreSQL functions, procedures, and triggers in C# and F#
|
|
|
jongio/memealyzer
Memealyzer is an app built to demonstrate some the latest and greatest Azure tech to dev, debug, and deploy microservice applications.
|
|
|
MerrionComputing/EventsSourcing-on-Azure-Functions
A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.1.1 | 4,881,197 | 8/20/2024 |
| 3.1.0 | 251,958 | 7/30/2024 |
| 3.0.0 | 2,224,648 | 1/6/2024 |
| 2.5.0 | 2,678,652 | 2/3/2023 |
| 2.3.0 | 2,141,069 | 1/15/2022 |
| 2.2.0 | 479,179 | 9/18/2021 |
| 2.1.1 | 776,762 | 3/2/2021 |
| 2.1.0 | 10,587 | 2/22/2021 |
| 2.0.0 | 155,680 | 12/16/2020 |
| 1.4.0 | 963,214 | 12/9/2019 |
| 1.3.1 | 1,122 | 12/5/2019 |
| 1.2.0 | 509,715 | 4/5/2018 |
| 1.1.0 | 11,893 | 11/2/2017 |
| 1.0.1 | 4,575 | 6/18/2017 |
| 1.0.0 | 15,798 | 7/7/2016 |
Features and Enhancements
* Handles presence of `=` in value in env file
E.g.
```bash
CONNECTION=user=test;password=secret
```
Thanks
@lazytesting