Click or drag to resize

ConfigurationSettingName Property

Build configuration: DEBUG, TEST and RELEASE (project build constant)

Namespace:  SIC.Settings
Assembly:  SIC (in SIC.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static string SettingName { get; }

Return Value

Type: String
Setting name: Debug, Test or Release of configuration
Remarks
Check is setting name (assembly configuration name) a value of Debug, Test or Release (see SettingNames). If value not exists of enumeration then writes a protocol entry.

Requirement: at least one assembly must has a EntryAssembly attribute in AssemblyInfo.cs

example
using SIC;

[assembly: EntryAssembly()]
And in AssemblyInfoVersion.cs declaration the configuration
//* Puts assembly configuration *
//* This value can read by property SIC.Settings.Configuration.SettingName (uses for sconfig file) *

#if DEBUG
    [assembly: AssemblyConfiguration("Debug")]
#endif

#if TEST
    [assembly: AssemblyConfiguration("Test")]
#endif

#if RELEASE
    [assembly: AssemblyConfiguration("Release")]
#endif
See Also