AppDomain.CurrentDomain.SetupInformation for .NET application using C#

AppDomain.CurrentDomain.SetupInformation property provides some general information about the currently executing assembly.

This can provide more information about the assembly binding information for current instance of AppDomain used.

Above property results instance of type AppDomainSetup class.

Few properties you may find interesting about the currently executing assembly are as follows:

  • ApplicationBase - ives the path to the directory that contains the application.
  • ApplicationName - Gives name of the application (with extension).
  • ConfigurationFile - Gives path to the configuration file of the application domain.
  • TargetFrameworkName - Give a string that specifies the target version of .NET framework for   the application domain this string follows format defined for FrameworkName.FrameworkName property.

Happy Coding !!