Decepticon.ActiveConfiguration 1.1.0

dotnet add package Decepticon.ActiveConfiguration --version 1.1.0                
NuGet\Install-Package Decepticon.ActiveConfiguration -Version 1.1.0                
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="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                
#r "nuget: Decepticon.ActiveConfiguration, 1.1.0"                
#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.
// 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                

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

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 is compatible.  netcoreapp1.1 is compatible.  netcoreapp2.0 is compatible.  netcoreapp2.1 is compatible.  netcoreapp2.2 is compatible.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Framework net45 is compatible.  net451 is compatible.  net452 is compatible.  net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 Downloads Last updated
1.1.0 1,037 6/14/2019
1.0.3 929 6/13/2019
1.0.0 937 6/9/2019

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