Soenneker.Utils.Environment
4.0.715
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.715
NuGet\Install-Package Soenneker.Utils.Environment -Version 4.0.715
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.715" />
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.715" />
<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.715
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.Environment, 4.0.715"
#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.715
#: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.715
#tool nuget:?package=Soenneker.Utils.Environment&version=4.0.715
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.33)
- Soenneker.Enums.DeployEnvironment (>= 4.0.234)
- Soenneker.Extensions.String (>= 4.0.728)
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 | 0 | 9/7/2026 |
| 4.0.730 | 0 | 9/7/2026 |
| 4.0.729 | 5,859 | 9/5/2026 |
| 4.0.728 | 879 | 9/4/2026 |
| 4.0.727 | 4,609 | 9/4/2026 |
| 4.0.726 | 288 | 9/4/2026 |
| 4.0.725 | 14,584 | 8/31/2026 |
| 4.0.724 | 1,961 | 8/31/2026 |
| 4.0.723 | 2,747 | 8/31/2026 |
| 4.0.722 | 258 | 8/30/2026 |
| 4.0.721 | 645 | 8/30/2026 |
| 4.0.720 | 1,524 | 8/30/2026 |
| 4.0.719 | 783 | 8/30/2026 |
| 4.0.717 | 733 | 8/30/2026 |
| 4.0.716 | 321 | 8/30/2026 |
| 4.0.715 | 83 | 8/30/2026 |
| 4.0.714 | 568 | 8/30/2026 |
| 4.0.712 | 127 | 8/29/2026 |
Loading failed
Update dependency Soenneker.Enums.DeployEnvironment to 4.0.234 (#876)