Soenneker.Enums.DeployEnvironment 4.0.236

Prefix Reserved
dotnet add package Soenneker.Enums.DeployEnvironment --version 4.0.236
                    
NuGet\Install-Package Soenneker.Enums.DeployEnvironment -Version 4.0.236
                    
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.Enums.DeployEnvironment" Version="4.0.236" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.DeployEnvironment" Version="4.0.236" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Enums.DeployEnvironment" />
                    
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 Soenneker.Enums.DeployEnvironment --version 4.0.236
                    
#r "nuget: Soenneker.Enums.DeployEnvironment, 4.0.236"
                    
#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.Enums.DeployEnvironment@4.0.236
                    
#: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.Enums.DeployEnvironment&version=4.0.236
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.DeployEnvironment&version=4.0.236
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Enums.DeployEnvironment

A string-backed enum-value type for carrying a deployment-environment identifier through application and API contracts.

Install

dotnet add package Soenneker.Enums.DeployEnvironment

Usage

using Soenneker.Enums.DeployEnvironment;

DeployEnvironment environment = DeployEnvironment.Staging;
string wireValue = environment.Value; // "Staging"

if (DeployEnvironment.TryFromValue(configuredValue, out DeployEnvironment? parsed))
{
    environment = parsed;
}

Available values:

  • Test — unit, integration, or pull-request validation
  • Local — a developer workstation
  • E2E — isolated end-to-end validation
  • Development — a shared development deployment
  • Staging — pre-production validation
  • Production — the live deployment

System.Text.Json serializes the type as the shown string value. FromValue throws for an unknown value; use TryFromValue when reading configuration or requests. FromName and TryFromName are also generated.

This type does not read ASPNETCORE_ENVIRONMENT or DOTNET_ENVIRONMENT, change application configuration, or integrate with IHostEnvironment automatically. Map those values explicitly and decide how unknown environments should be handled. Do not use an environment label as an authorization boundary or as the sole control protecting destructive operations.

Product 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.

NuGet packages (15)

Showing the top 5 NuGet packages that depend on Soenneker.Enums.DeployEnvironment:

Package Downloads
Soenneker.Cosmos.Client

A utility library for Azure Cosmos client accessibility

Soenneker.Utils.Environment

A utility library for useful environment related functionality

Soenneker.Blob.Sas

A utility library for Azure Blob SAS operations

Soenneker.Extensions.LoggerConfiguration

A set of useful Serilog LoggerConfiguration extension methods

Soenneker.Fixtures.Integration

Provides a reusable and generic integration test xunit fixture that dynamically registers and configures WebApplicationFactory instances for multiple ASP.NET Core projects with support for custom app settings, authentication, logging, and test utilities.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.236 8,759 8/30/2026
4.0.235 5,913 8/30/2026
4.0.234 1,011 8/29/2026
4.0.232 29,509 8/21/2026
4.0.231 11,428 8/18/2026
4.0.230 1,543 8/18/2026
4.0.229 34,959 8/7/2026
4.0.228 22,475 7/28/2026
4.0.227 272 7/28/2026
4.0.226 36,204 7/17/2026
4.0.225 9,842 7/16/2026
4.0.224 33,219 7/2/2026
4.0.223 20,390 6/19/2026
4.0.222 6,184 6/18/2026
4.0.221 43,137 6/8/2026
4.0.220 13,501 6/5/2026
4.0.219 839 6/5/2026
4.0.218 2,597 6/5/2026
4.0.217 317 6/5/2026
4.0.216 47,501 5/1/2026
Loading failed

Update dependency Soenneker.Gen.EnumValues to 4.0.46 (#316)