NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #1384 most downloaded on NuGet
A .NET library to load environment variables from .env files
Latest stable
3.2.0
Last release 7 months ago
26 Apr 2026
Ships fairly regularly
a new release about every 7 months
Most releases are documented
notes for 14 of 16 stable releases
1 version withdrawn
withdrawn after publishing
127 years old
17 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Switch parsing to Superpower (from Sprache)
Use ConcurrentDictionary for FakeEnvVars for thread safety
ConcurrentDictionary for FakeEnvVars for thread safetyRetain interpolation when NoEnvVars() is set (setEnvVars == false)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Get rid of the warnings about vulnerabilities in System.Net.Http 4.3.0 (which was unused)
Revert the change from Directory.GetCurrentDirectory() to AppContext,BaseDirectory as it broke existing applications
Revert the change from Directory.GetCurrentDirectory() to AppContext,BaseDirectory as it broke existing applications
DO NOT USE -- the change in directory did in fact break behavior for at least one existing application. Move to 2.5.0
DO NOT USE -- the change in directory did in fact break behavior for at least one existing application. Move to 2.5.0
Directory.GetCurrentDirectory() with just AppContext.BaseDirectory -- which should do the same thing, except make things better for some cases, per #69Adds a new EnvReader helper class #65
Adds a new EnvReader helper class #65
Allow dash and period in env var identifiers
Allow dash and period in env var identifiers
Properly handle dollar signs in values
Properly handle dollar signs in values
Technically this includes 2 breaking changes, but it is highly unlikely anyone is using them, and the changes are clear improvements.
https://www.nuget.org/packages/DotNetEnv/2.1.0
Technically this includes 2 breaking changes, but it is highly unlikely anyone is using them, and the changes are clear improvements.
Again, note that this changes the behavior of unquoted values in a noticeable way -- but before this would have been a parse error, so this simply makes it more flexible than it used to be.
This version has many breaking changes! Most of them will probably not bite you, but you should test.
This version has many breaking changes! Most of them will probably not bite you, but you should test.
${ENVVAR} form in addition to $ENVVARexport (and other such env var setting commands) to allow for .env files to be directly source-d in a terminalRemove requireEnvFile arg from LoadOptions and make env file permanently not required
requireEnvFile arg from LoadOptions and make env file permanently not requiredLoad overloads with parameterized arguments (instead of LoadOptions object)Updated the way that the license is referenced in the csproj so as to appease new nuget rules for such things...
Updated the way that the license is referenced in the csproj so as to appease new nuget rules for such things...
Now supports back to .NET Standard 1.3 / .NET Framework 4.6
Now supports back to .NET Standard 1.3 / .NET Framework 4.6 ( https://github.com/dotnet/standard/blob/master/docs/versions.md )
Flag arguments to enable:
Uses OS specific rules for env var clobbering (Windows is case insensitive, Linux is case sensitive)
Some new helper methods for getting env var values as bool, int or double.
Loading env vars from a Stream
Handles presence of = in value in env file
= in value in env fileE.g.
CONNECTION=user=test;password=secret
@lazytesting
Nothing published for this version
Nothing published for this version
One column per quarter.