Decepticon.ActiveConfiguration 1.1.0

Provides current configuration value at build time right in Visual Studio as well as application runtime. This can be utilized to identify test environment for automation testing.

Install-Package Decepticon.ActiveConfiguration -Version 1.1.0
dotnet add package Decepticon.ActiveConfiguration --version 1.1.0
<PackageReference Include="Decepticon.ActiveConfiguration" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Decepticon.ActiveConfiguration --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Decepticon.ActiveConfiguration, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Decepticon.ActiveConfiguration as a Cake Addin
#addin nuget:?package=Decepticon.ActiveConfiguration&version=1.1.0

// Install Decepticon.ActiveConfiguration as a Cake Tool
#tool nuget:?package=Decepticon.ActiveConfiguration&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Introduction

Provides current configuration value at build time that can be utilized for changing test environment for automation testing. The value is the current configuration dropdown value or the configuration variable.

Requirements

Requires .NetFramework 4.5 or higher or any version of .NetCore

Usage

If you have Debug, Release, Staging in the configuration dropdown, then select Staging. Then build the project. Then do

string stagingConfigName = ActiveConfiguration.Value;

Notes

If you're on .NetFramework, make sure your custom configuration is available for the project.
See Configuration Manager

Introduction

Provides current configuration value at build time that can be utilized for changing test environment for automation testing. The value is the current configuration dropdown value or the configuration variable.

Requirements

Requires .NetFramework 4.5 or higher or any version of .NetCore

Usage

If you have Debug, Release, Staging in the configuration dropdown, then select Staging. Then build the project. Then do

string stagingConfigName = ActiveConfiguration.Value;

Notes

If you're on .NetFramework, make sure your custom configuration is available for the project.
See Configuration Manager

Release Notes

Bug fix: issue with .NetFramework. Now compatible with .NetFramework 4.5 and any version of .NetCore.

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 275 6/14/2019
1.0.3 229 6/13/2019
1.0.0 254 6/9/2019