Soenneker.Utils.Environment
4.0.710
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Utils.Environment --version 4.0.710
NuGet\Install-Package Soenneker.Utils.Environment -Version 4.0.710
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="Soenneker.Utils.Environment" Version="4.0.710" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.Environment" Version="4.0.710" />
<PackageReference Include="Soenneker.Utils.Environment" />
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 Soenneker.Utils.Environment --version 4.0.710
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.Environment, 4.0.710"
#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 Soenneker.Utils.Environment@4.0.710
#: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=Soenneker.Utils.Environment&version=4.0.710
#tool nuget:?package=Soenneker.Utils.Environment&version=4.0.710
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Utils.Environment
A utility library for useful environment related functionality.
Installation
dotnet add package Soenneker.Utils.Environment
Quick start
using Soenneker.Utils.Environment;
Call the static EnvironmentUtil methods directly; no dependency-injection registration is required.
Common operations
PipelineDelay()- If we're in a pipeline environment, Task.Delay (and log).GetMachineName()- Exception safe Returns "Unknown" if exception.GetVariableStrict()- Throws if the environment variable is null or empty.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Serilog (>= 4.4.0)
- Soenneker.Atomics.Strings (>= 4.0.16)
- Soenneker.Atomics.ValueNullableBools (>= 4.0.30)
- Soenneker.Enums.DeployEnvironment (>= 4.0.232)
- Soenneker.Extensions.String (>= 4.0.723)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Soenneker.Utils.Environment:
| Package | Downloads |
|---|---|
|
Soenneker.Messages.Base
A fundamental Azure Service Bus message class |
|
|
Soenneker.Managers.Runners
Handles Runner operations and coordination |
|
|
Soenneker.AdaptiveCard.Util
A utility library for Adaptive Card construction |
|
|
Soenneker.Tests.Attributes.Local
Run locally, skip in pipelines. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.733 | 0 | 9/8/2026 |
| 4.0.732 | 0 | 9/7/2026 |
| 4.0.731 | 112 | 9/7/2026 |
| 4.0.730 | 40 | 9/7/2026 |
| 4.0.729 | 7,549 | 9/5/2026 |
| 4.0.728 | 925 | 9/4/2026 |
| 4.0.727 | 4,637 | 9/4/2026 |
| 4.0.726 | 336 | 9/4/2026 |
| 4.0.725 | 14,767 | 8/31/2026 |
| 4.0.724 | 1,973 | 8/31/2026 |
| 4.0.723 | 2,765 | 8/31/2026 |
| 4.0.722 | 259 | 8/30/2026 |
| 4.0.721 | 646 | 8/30/2026 |
| 4.0.720 | 1,526 | 8/30/2026 |
| 4.0.719 | 786 | 8/30/2026 |
| 4.0.717 | 735 | 8/30/2026 |
| 4.0.716 | 323 | 8/30/2026 |
| 4.0.715 | 85 | 8/30/2026 |
| 4.0.714 | 572 | 8/30/2026 |
| 4.0.710 | 3,008 | 8/29/2026 |
Loading failed
Improve README documentation