<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.3" />

ExeContext

public sealed class ExeContext
Manages the path context for the current application. This class cannot be inherited.
public string ExePath { get; }

Gets the current path for the application.

Gets an object representing the path level of the current application.