c# determine configration at runtime code example
Example: c# determine configration at runtime
var assemblyConfigurationAttribute = typeof(CLASS_NAME).Assembly.GetCustomAttribute();
var buildConfigurationName = assemblyConfigurationAttribute?.Configuration;