var assemblyConfigurationAttribute = typeof(CLASS_NAME).Assembly.GetCustomAttribute<AssemblyConfigurationAttribute>(); var buildConfigurationName = assemblyConfigurationAttribute?.Configuration;