Soenneker.Enums.DeployEnvironment 11.0.262

Prefix Reserved
dotnet add package Soenneker.Enums.DeployEnvironment --version 11.0.262
                    
NuGet\Install-Package Soenneker.Enums.DeployEnvironment -Version 11.0.262
                    
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="11.0.262" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.DeployEnvironment" Version="11.0.262" />
                    
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 11.0.262
                    
#r "nuget: Soenneker.Enums.DeployEnvironment, 11.0.262"
                    
#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@11.0.262
                    
#: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=11.0.262
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.DeployEnvironment&version=11.0.262
                    
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 net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (14)

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.Blob.Sas

A utility library for Azure Blob SAS operations

Soenneker.Extensions.LoggerConfiguration

A set of useful Serilog LoggerConfiguration extension methods

Soenneker.MsTeams.Util

A centralized utility for sending rich, configurable Adaptive Card messages to Microsoft Teams channels via a service bus, with environment-aware filtering and dynamic content generation.

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
11.0.262 14,445 10/26/2026
11.0.261 2,626 10/26/2026
4.0.260 15,632 10/15/2026
4.0.259 1,854 10/14/2026
4.0.258 3,946 10/14/2026
4.0.256 1,634 10/14/2026
4.0.251 1,516 10/13/2026
4.0.250 3,377 10/12/2026
4.0.248 3,111 10/12/2026
4.0.247 11,210 10/11/2026
4.0.246 2,540 10/11/2026
4.0.245 20,291 9/30/2026
4.0.244 15,684 9/25/2026
4.0.243 717 9/24/2026
4.0.242 18,451 9/15/2026
4.0.241 969 9/15/2026
4.0.240 20,565 9/12/2026
4.0.239 874 9/12/2026
4.0.238 28,204 9/7/2026
4.0.237 17,924 9/4/2026
Loading failed

Update dependency Soenneker.Gen.EnumValues to v11 (#342)