<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0-preview.4.23259.5" />

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.