Skip to content

Provides active configuration value in Visual Studio or the configuration variable

License

Notifications You must be signed in to change notification settings

DekCode/Decepticon.ActiveConfiguration

Repository files navigation

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

About

Provides active configuration value in Visual Studio or the configuration variable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages