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" />
paket add Decepticon.ActiveConfiguration --version 1.1.0
#r "nuget: Decepticon.ActiveConfiguration, 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
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.
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.