dotenv.net 3.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package dotenv.net --version 3.0.0
                    
NuGet\Install-Package dotenv.net -Version 3.0.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="dotenv.net" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="dotenv.net" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="dotenv.net" />
                    
Project file
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 dotenv.net --version 3.0.0
                    
#r "nuget: dotenv.net, 3.0.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.
#:package dotenv.net@3.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=dotenv.net&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=dotenv.net&version=3.0.0
                    
Install as a Cake Tool

A library to read variables from a .env file and populate the environment variables.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net5.0-windows7.0 is compatible.  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 netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.6 is compatible.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.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 tizen30 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (24)

Showing the top 5 NuGet packages that depend on dotenv.net:

Package Downloads
CodeZero

CodeZero is a set of common implementations to help you implementing Clean Architecture, DDD, CQRS, Specification Patterns and another facilities for new modern web applications is an open-source project written in .NET Core.

MCMS.Base

MCMS Base package

CasAuth

The Comprehensive Authentication Solution (or CasAuth) was developed to provide an opinionated way to handle user and service authentication for APIs.

Injector

Injects values into config files directly or via environment variables. Can inject app settings, connection strings, or WCF client endpoints.

FluentConsole.Templates

提供「现代化的控制台应用的开发体验」脚手架,能像 Web 应用那样很优雅地整合各种组件,包括依赖注入、配置、日志等功能。

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on dotenv.net:

Repository Stars
OpenCoreMMO/OpenCoreMMO
Modern MMORPG server emulator written in C#
redis/NRedisStack
Redis Stack .Net client
Azure/azure-sdk-tools
Tools repository leveraged by the Azure SDK team.
Version Downloads Last Updated
4.0.0 4,927 7/11/2025
3.2.1 723,218 9/21/2024
3.2.0 297,614 6/22/2024
3.1.3 806,211 11/5/2023
3.1.2 2,560,976 11/25/2022
3.1.1 783,280 10/11/2021
3.1.0 119,016 7/11/2021
3.0.0 453,896 3/19/2021
2.1.3 221,887 1/18/2021
2.1.1 186,623 5/26/2020
2.1.0 132,315 4/1/2020
2.0.1 2,002 3/27/2020
2.0.0 1,633 3/25/2020
1.0.6 412,073 6/29/2019
1.0.5 1,406 6/27/2019
1.0.4 121,407 10/21/2018
1.0.3 26,910 2/17/2018
1.0.2 1,845 1/15/2018
1.0.1 2,035 12/31/2017
1.0.0 9,878 11/22/2017

- remove deprecated methods
- add a new fluent API
- add new updated static methods
- add option to retrieve the env values as a dictionary